telnyx 5.176.0 → 5.177.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
- data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
- data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
- data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
- data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
- data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
- data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
- data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
- data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
- data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
- data/lib/telnyx/models/email_event_list_response.rb +11 -12
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
- data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
- data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
- data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
- data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
- data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
- data/lib/telnyx/models/iam/iam_action.rb +4 -4
- data/lib/telnyx/models/iam/iam_settings.rb +60 -0
- data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
- data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
- data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
- data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
- data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
- data/lib/telnyx/models/iam_decision.rb +5 -3
- data/lib/telnyx/models/iam_explain_params.rb +13 -1
- data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
- data/lib/telnyx/models/iam_simulate_params.rb +13 -1
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
- data/lib/telnyx/models/mobile_phone_number.rb +25 -4
- data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
- data/lib/telnyx/models/model_metadata.rb +28 -1
- data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
- data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
- data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
- data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
- data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
- data/lib/telnyx/models/texml_application_list_params.rb +6 -6
- data/lib/telnyx/models/user_profile.rb +11 -1
- data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
- data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/customer_service_records.rb +4 -4
- data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
- data/lib/telnyx/resources/iam/guardrail.rb +45 -0
- data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
- data/lib/telnyx/resources/iam.rb +21 -8
- data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
- data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
- data/lib/telnyx/resources/user_profile.rb +1 -3
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
- data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
- data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
- data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
- data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
- data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
- data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
- data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
- data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
- data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
- data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
- data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
- data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
- data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
- data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
- data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
- data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
- data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
- data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
- data/rbi/telnyx/models/iam_decision.rbi +10 -6
- data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
- data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
- data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
- data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
- data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
- data/rbi/telnyx/models/model_metadata.rbi +90 -0
- data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
- data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
- data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
- data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
- data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
- data/rbi/telnyx/models/user_profile.rbi +11 -0
- data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
- data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
- data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
- data/rbi/telnyx/resources/iam.rbi +18 -7
- data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
- data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
- data/rbi/telnyx/resources/user_profile.rbi +0 -3
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
- data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
- data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
- data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
- data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
- data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
- data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
- data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
- data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
- data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
- data/sig/telnyx/models/email_event_list_response.rbs +13 -3
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
- data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
- data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
- data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
- data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
- data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
- data/sig/telnyx/models/iam/iam_action.rbs +4 -4
- data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
- data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
- data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
- data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
- data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
- data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
- data/sig/telnyx/models/iam_explain_params.rbs +6 -1
- data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
- data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
- data/sig/telnyx/models/model_metadata.rbs +26 -0
- data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
- data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
- data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
- data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
- data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
- data/sig/telnyx/models/user_profile.rbs +7 -0
- data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
- data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
- data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
- data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
- data/sig/telnyx/resources/iam.rbs +3 -0
- data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
- data/sig/telnyx/resources/user_profile.rbs +0 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +62 -2
|
@@ -15,386 +15,19 @@ module Telnyx
|
|
|
15
15
|
variant :"deepgram/nova-3", -> { Telnyx::Calls::DeepgramNova3Config }
|
|
16
16
|
|
|
17
17
|
# Deepgram Nova-3 medical model, tuned for medical vocabulary. English only.
|
|
18
|
-
variant :"deepgram/nova-3-medical",
|
|
19
|
-
-> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3Medical }
|
|
18
|
+
variant :"deepgram/nova-3-medical", -> { Telnyx::Calls::DeepgramNova3MedicalConfig }
|
|
20
19
|
|
|
21
20
|
# Deepgram Flux (English), a conversational speech recognition model with built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and `keywords_boosting` do not apply to Flux.
|
|
22
|
-
variant :"deepgram/flux", -> { Telnyx::Calls::
|
|
21
|
+
variant :"deepgram/flux", -> { Telnyx::Calls::DeepgramFluxConfig }
|
|
23
22
|
|
|
24
23
|
# Deepgram Flux multilingual, a conversational speech recognition model with built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and `keywords_boosting` do not apply to Flux.
|
|
25
|
-
variant :"deepgram/flux-multi", -> { Telnyx::Calls::
|
|
24
|
+
variant :"deepgram/flux-multi", -> { Telnyx::Calls::DeepgramFluxMultiConfig }
|
|
26
25
|
|
|
27
26
|
# Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary) and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
|
|
28
|
-
variant -> { Telnyx::Calls::
|
|
29
|
-
|
|
30
|
-
class DeepgramNova2SpecialtyConfig < Telnyx::Internal::Type::BaseModel
|
|
31
|
-
# @!attribute transcription_engine
|
|
32
|
-
#
|
|
33
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine]
|
|
34
|
-
required :transcription_engine,
|
|
35
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine }
|
|
36
|
-
|
|
37
|
-
# @!attribute transcription_model
|
|
38
|
-
#
|
|
39
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel]
|
|
40
|
-
required :transcription_model,
|
|
41
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel }
|
|
42
|
-
|
|
43
|
-
# @!attribute hints
|
|
44
|
-
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
45
|
-
# toward. For weighted biasing, use `keywords_boosting` instead. Supported on
|
|
46
|
-
# Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
|
|
47
|
-
# `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
|
|
48
|
-
#
|
|
49
|
-
# @return [Array<String>, nil]
|
|
50
|
-
optional :hints, Telnyx::Internal::Type::ArrayOf[String]
|
|
51
|
-
|
|
52
|
-
# @!attribute interim_results
|
|
53
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
54
|
-
# be sent.
|
|
55
|
-
#
|
|
56
|
-
# @return [Boolean, nil]
|
|
57
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
58
|
-
|
|
59
|
-
# @!attribute keywords_boosting
|
|
60
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
61
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
62
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
63
|
-
#
|
|
64
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
65
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
66
|
-
|
|
67
|
-
# @!attribute language
|
|
68
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
69
|
-
# only.
|
|
70
|
-
#
|
|
71
|
-
# @return [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage, nil]
|
|
72
|
-
optional :language, enum: -> { Telnyx::Calls::DeepgramEnglishTranscriptionLanguage }
|
|
73
|
-
|
|
74
|
-
# @!attribute smart_format
|
|
75
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
76
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
77
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
78
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
79
|
-
# punctuation.
|
|
80
|
-
#
|
|
81
|
-
# @return [Boolean, nil]
|
|
82
|
-
optional :smart_format, Telnyx::Internal::Type::Boolean
|
|
83
|
-
|
|
84
|
-
# @!attribute utterance_end_ms
|
|
85
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
86
|
-
# to 5000 ms.
|
|
87
|
-
#
|
|
88
|
-
# @return [Integer, nil]
|
|
89
|
-
optional :utterance_end_ms, Integer
|
|
90
|
-
|
|
91
|
-
# @!method initialize(transcription_engine:, transcription_model:, hints: nil, interim_results: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil)
|
|
92
|
-
# Some parameter documentations has been truncated, see
|
|
93
|
-
# {Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig}
|
|
94
|
-
# for more details.
|
|
95
|
-
#
|
|
96
|
-
# Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary)
|
|
97
|
-
# and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
|
|
98
|
-
#
|
|
99
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine]
|
|
100
|
-
#
|
|
101
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel]
|
|
102
|
-
#
|
|
103
|
-
# @param hints [Array<String>] Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
104
|
-
#
|
|
105
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
106
|
-
#
|
|
107
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
108
|
-
#
|
|
109
|
-
# @param language [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage] Language to transcribe. Deepgram's medical and phonecall models support English
|
|
110
|
-
#
|
|
111
|
-
# @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
|
|
112
|
-
#
|
|
113
|
-
# @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
114
|
-
|
|
115
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig#transcription_engine
|
|
116
|
-
module TranscriptionEngine
|
|
117
|
-
extend Telnyx::Internal::Type::Enum
|
|
118
|
-
|
|
119
|
-
DEEPGRAM = :Deepgram
|
|
120
|
-
|
|
121
|
-
# @!method self.values
|
|
122
|
-
# @return [Array<Symbol>]
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova2SpecialtyConfig#transcription_model
|
|
126
|
-
module TranscriptionModel
|
|
127
|
-
extend Telnyx::Internal::Type::Enum
|
|
128
|
-
|
|
129
|
-
DEEPGRAM_NOVA_2_MEDICAL = :"deepgram/nova-2-medical"
|
|
130
|
-
DEEPGRAM_NOVA_2_PHONECALL = :"deepgram/nova-2-phonecall"
|
|
131
|
-
|
|
132
|
-
# @!method self.values
|
|
133
|
-
# @return [Array<Symbol>]
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
class DeepgramNova3Medical < Telnyx::Internal::Type::BaseModel
|
|
138
|
-
# @!attribute transcription_engine
|
|
139
|
-
#
|
|
140
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3Medical::TranscriptionEngine]
|
|
141
|
-
required :transcription_engine,
|
|
142
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3Medical::TranscriptionEngine }
|
|
143
|
-
|
|
144
|
-
# @!attribute transcription_model
|
|
145
|
-
#
|
|
146
|
-
# @return [Symbol, :"deepgram/nova-3-medical"]
|
|
147
|
-
required :transcription_model, const: :"deepgram/nova-3-medical"
|
|
148
|
-
|
|
149
|
-
# @!attribute interim_results
|
|
150
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
151
|
-
# be sent.
|
|
152
|
-
#
|
|
153
|
-
# @return [Boolean, nil]
|
|
154
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
155
|
-
|
|
156
|
-
# @!attribute keyterms
|
|
157
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
158
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
159
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
160
|
-
# on Nova-2.
|
|
161
|
-
#
|
|
162
|
-
# @return [Array<String>, nil]
|
|
163
|
-
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
164
|
-
|
|
165
|
-
# @!attribute keywords_boosting
|
|
166
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
167
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
168
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
169
|
-
#
|
|
170
|
-
# @return [Hash{Symbol=>Float}, nil]
|
|
171
|
-
optional :keywords_boosting, Telnyx::Internal::Type::HashOf[Float]
|
|
172
|
-
|
|
173
|
-
# @!attribute language
|
|
174
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
175
|
-
# only.
|
|
176
|
-
#
|
|
177
|
-
# @return [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage, nil]
|
|
178
|
-
optional :language, enum: -> { Telnyx::Calls::DeepgramEnglishTranscriptionLanguage }
|
|
179
|
-
|
|
180
|
-
# @!attribute smart_format
|
|
181
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
182
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
183
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
184
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
185
|
-
# punctuation.
|
|
186
|
-
#
|
|
187
|
-
# @return [Boolean, nil]
|
|
188
|
-
optional :smart_format, Telnyx::Internal::Type::Boolean
|
|
189
|
-
|
|
190
|
-
# @!attribute utterance_end_ms
|
|
191
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
192
|
-
# to 5000 ms.
|
|
193
|
-
#
|
|
194
|
-
# @return [Integer, nil]
|
|
195
|
-
optional :utterance_end_ms, Integer
|
|
196
|
-
|
|
197
|
-
# @!method initialize(transcription_engine:, interim_results: nil, keyterms: nil, keywords_boosting: nil, language: nil, smart_format: nil, utterance_end_ms: nil, transcription_model: :"deepgram/nova-3-medical")
|
|
198
|
-
# Some parameter documentations has been truncated, see
|
|
199
|
-
# {Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3Medical}
|
|
200
|
-
# for more details.
|
|
201
|
-
#
|
|
202
|
-
# Deepgram Nova-3 medical model, tuned for medical vocabulary. English only.
|
|
203
|
-
#
|
|
204
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3Medical::TranscriptionEngine]
|
|
205
|
-
#
|
|
206
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
207
|
-
#
|
|
208
|
-
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
209
|
-
#
|
|
210
|
-
# @param keywords_boosting [Hash{Symbol=>Float}] Keywords and their respective intensifiers (boosting values) to improve transcri
|
|
211
|
-
#
|
|
212
|
-
# @param language [Symbol, Telnyx::Models::Calls::DeepgramEnglishTranscriptionLanguage] Language to transcribe. Deepgram's medical and phonecall models support English
|
|
213
|
-
#
|
|
214
|
-
# @param smart_format [Boolean] Enable Deepgram's smart formatting (capitalization, punctuation, and digit norma
|
|
215
|
-
#
|
|
216
|
-
# @param utterance_end_ms [Integer] Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
217
|
-
#
|
|
218
|
-
# @param transcription_model [Symbol, :"deepgram/nova-3-medical"]
|
|
219
|
-
|
|
220
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramNova3Medical#transcription_engine
|
|
221
|
-
module TranscriptionEngine
|
|
222
|
-
extend Telnyx::Internal::Type::Enum
|
|
223
|
-
|
|
224
|
-
DEEPGRAM = :Deepgram
|
|
225
|
-
|
|
226
|
-
# @!method self.values
|
|
227
|
-
# @return [Array<Symbol>]
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
class DeepgramFlux < Telnyx::Internal::Type::BaseModel
|
|
232
|
-
# @!attribute transcription_engine
|
|
233
|
-
#
|
|
234
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux::TranscriptionEngine]
|
|
235
|
-
required :transcription_engine,
|
|
236
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux::TranscriptionEngine }
|
|
237
|
-
|
|
238
|
-
# @!attribute transcription_model
|
|
239
|
-
#
|
|
240
|
-
# @return [Symbol, :"deepgram/flux"]
|
|
241
|
-
required :transcription_model, const: :"deepgram/flux"
|
|
242
|
-
|
|
243
|
-
# @!attribute interim_results
|
|
244
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
245
|
-
# be sent.
|
|
246
|
-
#
|
|
247
|
-
# @return [Boolean, nil]
|
|
248
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
249
|
-
|
|
250
|
-
# @!attribute keyterms
|
|
251
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
252
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
253
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
254
|
-
# on Nova-2.
|
|
255
|
-
#
|
|
256
|
-
# @return [Array<String>, nil]
|
|
257
|
-
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
258
|
-
|
|
259
|
-
# @!attribute language
|
|
260
|
-
# Language to transcribe. `deepgram/flux` supports English only.
|
|
261
|
-
#
|
|
262
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux::Language, nil]
|
|
263
|
-
optional :language, enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux::Language }
|
|
264
|
-
|
|
265
|
-
# @!method initialize(transcription_engine:, interim_results: nil, keyterms: nil, language: nil, transcription_model: :"deepgram/flux")
|
|
266
|
-
# Some parameter documentations has been truncated, see
|
|
267
|
-
# {Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux} for
|
|
268
|
-
# more details.
|
|
269
|
-
#
|
|
270
|
-
# Deepgram Flux (English), a conversational speech recognition model with built-in
|
|
271
|
-
# end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
272
|
-
# `keywords_boosting` do not apply to Flux.
|
|
273
|
-
#
|
|
274
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux::TranscriptionEngine]
|
|
275
|
-
#
|
|
276
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
277
|
-
#
|
|
278
|
-
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
279
|
-
#
|
|
280
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux::Language] Language to transcribe. `deepgram/flux` supports English only.
|
|
281
|
-
#
|
|
282
|
-
# @param transcription_model [Symbol, :"deepgram/flux"]
|
|
283
|
-
|
|
284
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux#transcription_engine
|
|
285
|
-
module TranscriptionEngine
|
|
286
|
-
extend Telnyx::Internal::Type::Enum
|
|
287
|
-
|
|
288
|
-
DEEPGRAM = :Deepgram
|
|
289
|
-
|
|
290
|
-
# @!method self.values
|
|
291
|
-
# @return [Array<Symbol>]
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
# Language to transcribe. `deepgram/flux` supports English only.
|
|
295
|
-
#
|
|
296
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFlux#language
|
|
297
|
-
module Language
|
|
298
|
-
extend Telnyx::Internal::Type::Enum
|
|
299
|
-
|
|
300
|
-
EN = :en
|
|
301
|
-
|
|
302
|
-
# @!method self.values
|
|
303
|
-
# @return [Array<Symbol>]
|
|
304
|
-
end
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
class DeepgramFluxMulti < Telnyx::Internal::Type::BaseModel
|
|
308
|
-
# @!attribute transcription_engine
|
|
309
|
-
#
|
|
310
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti::TranscriptionEngine]
|
|
311
|
-
required :transcription_engine,
|
|
312
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti::TranscriptionEngine }
|
|
313
|
-
|
|
314
|
-
# @!attribute transcription_model
|
|
315
|
-
#
|
|
316
|
-
# @return [Symbol, :"deepgram/flux-multi"]
|
|
317
|
-
required :transcription_model, const: :"deepgram/flux-multi"
|
|
318
|
-
|
|
319
|
-
# @!attribute interim_results
|
|
320
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
321
|
-
# be sent.
|
|
322
|
-
#
|
|
323
|
-
# @return [Boolean, nil]
|
|
324
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
325
|
-
|
|
326
|
-
# @!attribute keyterms
|
|
327
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
328
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
329
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
330
|
-
# on Nova-2.
|
|
331
|
-
#
|
|
332
|
-
# @return [Array<String>, nil]
|
|
333
|
-
optional :keyterms, Telnyx::Internal::Type::ArrayOf[String]
|
|
334
|
-
|
|
335
|
-
# @!attribute language
|
|
336
|
-
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
337
|
-
# detect the language.
|
|
338
|
-
#
|
|
339
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti::Language, nil]
|
|
340
|
-
optional :language,
|
|
341
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti::Language }
|
|
342
|
-
|
|
343
|
-
# @!method initialize(transcription_engine:, interim_results: nil, keyterms: nil, language: nil, transcription_model: :"deepgram/flux-multi")
|
|
344
|
-
# Some parameter documentations has been truncated, see
|
|
345
|
-
# {Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti}
|
|
346
|
-
# for more details.
|
|
347
|
-
#
|
|
348
|
-
# Deepgram Flux multilingual, a conversational speech recognition model with
|
|
349
|
-
# built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
350
|
-
# `keywords_boosting` do not apply to Flux.
|
|
351
|
-
#
|
|
352
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti::TranscriptionEngine]
|
|
353
|
-
#
|
|
354
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
355
|
-
#
|
|
356
|
-
# @param keyterms [Array<String>] Keyterm prompting. Up to 100 domain-specific terms or brand names to bias recogn
|
|
357
|
-
#
|
|
358
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti::Language] Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
359
|
-
#
|
|
360
|
-
# @param transcription_model [Symbol, :"deepgram/flux-multi"]
|
|
361
|
-
|
|
362
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti#transcription_engine
|
|
363
|
-
module TranscriptionEngine
|
|
364
|
-
extend Telnyx::Internal::Type::Enum
|
|
365
|
-
|
|
366
|
-
DEEPGRAM = :Deepgram
|
|
367
|
-
|
|
368
|
-
# @!method self.values
|
|
369
|
-
# @return [Array<Symbol>]
|
|
370
|
-
end
|
|
371
|
-
|
|
372
|
-
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
373
|
-
# detect the language.
|
|
374
|
-
#
|
|
375
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineDeepgramConfig::DeepgramFluxMulti#language
|
|
376
|
-
module Language
|
|
377
|
-
extend Telnyx::Internal::Type::Enum
|
|
378
|
-
|
|
379
|
-
EN = :en
|
|
380
|
-
ES = :es
|
|
381
|
-
FR = :fr
|
|
382
|
-
DE = :de
|
|
383
|
-
HI = :hi
|
|
384
|
-
RU = :ru
|
|
385
|
-
PT = :pt
|
|
386
|
-
JA = :ja
|
|
387
|
-
IT = :it
|
|
388
|
-
NL = :nl
|
|
389
|
-
AUTO = :auto
|
|
390
|
-
|
|
391
|
-
# @!method self.values
|
|
392
|
-
# @return [Array<Symbol>]
|
|
393
|
-
end
|
|
394
|
-
end
|
|
27
|
+
variant -> { Telnyx::Calls::DeepgramNova2SpecialtyConfig }
|
|
395
28
|
|
|
396
29
|
# @!method self.variants
|
|
397
|
-
# @return [Array(Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, Telnyx::Models::Calls::
|
|
30
|
+
# @return [Array(Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, Telnyx::Models::Calls::DeepgramNova3MedicalConfig, Telnyx::Models::Calls::DeepgramFluxConfig, Telnyx::Models::Calls::DeepgramFluxMultiConfig, Telnyx::Models::Calls::DeepgramNova2SpecialtyConfig)]
|
|
398
31
|
end
|
|
399
32
|
end
|
|
400
33
|
end
|