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
|
@@ -67,11 +67,11 @@ module Telnyx
|
|
|
67
67
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
68
68
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
69
69
|
Telnyx::Calls::DeepgramNova2Config,
|
|
70
|
-
Telnyx::Calls::
|
|
70
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig,
|
|
71
71
|
Telnyx::Calls::DeepgramNova3Config,
|
|
72
|
-
Telnyx::Calls::
|
|
73
|
-
Telnyx::Calls::
|
|
74
|
-
Telnyx::Calls::
|
|
72
|
+
Telnyx::Calls::DeepgramNova3MedicalConfig,
|
|
73
|
+
Telnyx::Calls::DeepgramFluxConfig,
|
|
74
|
+
Telnyx::Calls::DeepgramFluxMultiConfig,
|
|
75
75
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
76
76
|
Telnyx::Calls::TranscriptionEngineXaiConfig,
|
|
77
77
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
@@ -83,7 +83,7 @@ module Telnyx
|
|
|
83
83
|
Telnyx::Calls::TranscriptionEngineCohereConfig,
|
|
84
84
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
85
85
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
86
|
-
Telnyx::Calls::
|
|
86
|
+
Telnyx::Calls::TranscriptionEngineCommunityConfig
|
|
87
87
|
)
|
|
88
88
|
)
|
|
89
89
|
)
|
|
@@ -97,11 +97,11 @@ module Telnyx
|
|
|
97
97
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
98
98
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
99
99
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
100
|
-
Telnyx::Calls::
|
|
100
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::OrHash,
|
|
101
101
|
Telnyx::Calls::DeepgramNova3Config::OrHash,
|
|
102
|
-
Telnyx::Calls::
|
|
103
|
-
Telnyx::Calls::
|
|
104
|
-
Telnyx::Calls::
|
|
102
|
+
Telnyx::Calls::DeepgramNova3MedicalConfig::OrHash,
|
|
103
|
+
Telnyx::Calls::DeepgramFluxConfig::OrHash,
|
|
104
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::OrHash,
|
|
105
105
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
106
106
|
Telnyx::Calls::TranscriptionEngineXaiConfig::OrHash,
|
|
107
107
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
|
|
@@ -113,7 +113,7 @@ module Telnyx
|
|
|
113
113
|
Telnyx::Calls::TranscriptionEngineCohereConfig::OrHash,
|
|
114
114
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
115
115
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
116
|
-
Telnyx::Calls::
|
|
116
|
+
Telnyx::Calls::TranscriptionEngineCommunityConfig::OrHash
|
|
117
117
|
)
|
|
118
118
|
).void
|
|
119
119
|
end
|
|
@@ -142,11 +142,11 @@ module Telnyx
|
|
|
142
142
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
143
143
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
144
144
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
145
|
-
Telnyx::Calls::
|
|
145
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig::OrHash,
|
|
146
146
|
Telnyx::Calls::DeepgramNova3Config::OrHash,
|
|
147
|
-
Telnyx::Calls::
|
|
148
|
-
Telnyx::Calls::
|
|
149
|
-
Telnyx::Calls::
|
|
147
|
+
Telnyx::Calls::DeepgramNova3MedicalConfig::OrHash,
|
|
148
|
+
Telnyx::Calls::DeepgramFluxConfig::OrHash,
|
|
149
|
+
Telnyx::Calls::DeepgramFluxMultiConfig::OrHash,
|
|
150
150
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
151
151
|
Telnyx::Calls::TranscriptionEngineXaiConfig::OrHash,
|
|
152
152
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::OrHash,
|
|
@@ -158,7 +158,7 @@ module Telnyx
|
|
|
158
158
|
Telnyx::Calls::TranscriptionEngineCohereConfig::OrHash,
|
|
159
159
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
160
160
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
161
|
-
Telnyx::Calls::
|
|
161
|
+
Telnyx::Calls::TranscriptionEngineCommunityConfig::OrHash
|
|
162
162
|
),
|
|
163
163
|
transcription_tracks: String
|
|
164
164
|
).returns(T.attached_class)
|
|
@@ -203,11 +203,11 @@ module Telnyx
|
|
|
203
203
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
204
204
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
205
205
|
Telnyx::Calls::DeepgramNova2Config,
|
|
206
|
-
Telnyx::Calls::
|
|
206
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig,
|
|
207
207
|
Telnyx::Calls::DeepgramNova3Config,
|
|
208
|
-
Telnyx::Calls::
|
|
209
|
-
Telnyx::Calls::
|
|
210
|
-
Telnyx::Calls::
|
|
208
|
+
Telnyx::Calls::DeepgramNova3MedicalConfig,
|
|
209
|
+
Telnyx::Calls::DeepgramFluxConfig,
|
|
210
|
+
Telnyx::Calls::DeepgramFluxMultiConfig,
|
|
211
211
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
212
212
|
Telnyx::Calls::TranscriptionEngineXaiConfig,
|
|
213
213
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
@@ -219,7 +219,7 @@ module Telnyx
|
|
|
219
219
|
Telnyx::Calls::TranscriptionEngineCohereConfig,
|
|
220
220
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
221
221
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
222
|
-
Telnyx::Calls::
|
|
222
|
+
Telnyx::Calls::TranscriptionEngineCommunityConfig
|
|
223
223
|
),
|
|
224
224
|
transcription_tracks: String
|
|
225
225
|
}
|
|
@@ -348,11 +348,11 @@ module Telnyx
|
|
|
348
348
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
349
349
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
350
350
|
Telnyx::Calls::DeepgramNova2Config,
|
|
351
|
-
Telnyx::Calls::
|
|
351
|
+
Telnyx::Calls::DeepgramNova2SpecialtyConfig,
|
|
352
352
|
Telnyx::Calls::DeepgramNova3Config,
|
|
353
|
-
Telnyx::Calls::
|
|
354
|
-
Telnyx::Calls::
|
|
355
|
-
Telnyx::Calls::
|
|
353
|
+
Telnyx::Calls::DeepgramNova3MedicalConfig,
|
|
354
|
+
Telnyx::Calls::DeepgramFluxConfig,
|
|
355
|
+
Telnyx::Calls::DeepgramFluxMultiConfig,
|
|
356
356
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
357
357
|
Telnyx::Calls::TranscriptionEngineXaiConfig,
|
|
358
358
|
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
@@ -364,974 +364,10 @@ module Telnyx
|
|
|
364
364
|
Telnyx::Calls::TranscriptionEngineCohereConfig,
|
|
365
365
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
366
366
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
367
|
-
Telnyx::Calls::
|
|
367
|
+
Telnyx::Calls::TranscriptionEngineCommunityConfig
|
|
368
368
|
)
|
|
369
369
|
end
|
|
370
370
|
|
|
371
|
-
class DeepgramNova2SpecialtyConfig < Telnyx::Internal::Type::BaseModel
|
|
372
|
-
OrHash =
|
|
373
|
-
T.type_alias do
|
|
374
|
-
T.any(
|
|
375
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig,
|
|
376
|
-
Telnyx::Internal::AnyHash
|
|
377
|
-
)
|
|
378
|
-
end
|
|
379
|
-
|
|
380
|
-
sig do
|
|
381
|
-
returns(
|
|
382
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine::OrSymbol
|
|
383
|
-
)
|
|
384
|
-
end
|
|
385
|
-
attr_accessor :transcription_engine
|
|
386
|
-
|
|
387
|
-
sig do
|
|
388
|
-
returns(
|
|
389
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel::OrSymbol
|
|
390
|
-
)
|
|
391
|
-
end
|
|
392
|
-
attr_accessor :transcription_model
|
|
393
|
-
|
|
394
|
-
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
395
|
-
# toward. For weighted biasing, use `keywords_boosting` instead. Supported on
|
|
396
|
-
# Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
|
|
397
|
-
# `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
|
|
398
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
399
|
-
attr_reader :hints
|
|
400
|
-
|
|
401
|
-
sig { params(hints: T::Array[String]).void }
|
|
402
|
-
attr_writer :hints
|
|
403
|
-
|
|
404
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
405
|
-
# be sent.
|
|
406
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
407
|
-
attr_reader :interim_results
|
|
408
|
-
|
|
409
|
-
sig { params(interim_results: T::Boolean).void }
|
|
410
|
-
attr_writer :interim_results
|
|
411
|
-
|
|
412
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
413
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
414
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
415
|
-
sig { returns(T.nilable(T::Hash[Symbol, Float])) }
|
|
416
|
-
attr_reader :keywords_boosting
|
|
417
|
-
|
|
418
|
-
sig { params(keywords_boosting: T::Hash[Symbol, Float]).void }
|
|
419
|
-
attr_writer :keywords_boosting
|
|
420
|
-
|
|
421
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
422
|
-
# only.
|
|
423
|
-
sig do
|
|
424
|
-
returns(
|
|
425
|
-
T.nilable(
|
|
426
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol
|
|
427
|
-
)
|
|
428
|
-
)
|
|
429
|
-
end
|
|
430
|
-
attr_reader :language
|
|
431
|
-
|
|
432
|
-
sig do
|
|
433
|
-
params(
|
|
434
|
-
language:
|
|
435
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol
|
|
436
|
-
).void
|
|
437
|
-
end
|
|
438
|
-
attr_writer :language
|
|
439
|
-
|
|
440
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
441
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
442
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
443
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
444
|
-
# punctuation.
|
|
445
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
446
|
-
attr_reader :smart_format
|
|
447
|
-
|
|
448
|
-
sig { params(smart_format: T::Boolean).void }
|
|
449
|
-
attr_writer :smart_format
|
|
450
|
-
|
|
451
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
452
|
-
# to 5000 ms.
|
|
453
|
-
sig { returns(T.nilable(Integer)) }
|
|
454
|
-
attr_reader :utterance_end_ms
|
|
455
|
-
|
|
456
|
-
sig { params(utterance_end_ms: Integer).void }
|
|
457
|
-
attr_writer :utterance_end_ms
|
|
458
|
-
|
|
459
|
-
# Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary)
|
|
460
|
-
# and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
|
|
461
|
-
sig do
|
|
462
|
-
params(
|
|
463
|
-
transcription_engine:
|
|
464
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine::OrSymbol,
|
|
465
|
-
transcription_model:
|
|
466
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel::OrSymbol,
|
|
467
|
-
hints: T::Array[String],
|
|
468
|
-
interim_results: T::Boolean,
|
|
469
|
-
keywords_boosting: T::Hash[Symbol, Float],
|
|
470
|
-
language:
|
|
471
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol,
|
|
472
|
-
smart_format: T::Boolean,
|
|
473
|
-
utterance_end_ms: Integer
|
|
474
|
-
).returns(T.attached_class)
|
|
475
|
-
end
|
|
476
|
-
def self.new(
|
|
477
|
-
transcription_engine:,
|
|
478
|
-
transcription_model:,
|
|
479
|
-
# Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
|
|
480
|
-
# toward. For weighted biasing, use `keywords_boosting` instead. Supported on
|
|
481
|
-
# Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
|
|
482
|
-
# `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
|
|
483
|
-
hints: nil,
|
|
484
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
485
|
-
# be sent.
|
|
486
|
-
interim_results: nil,
|
|
487
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
488
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
489
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
490
|
-
keywords_boosting: nil,
|
|
491
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
492
|
-
# only.
|
|
493
|
-
language: nil,
|
|
494
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
495
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
496
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
497
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
498
|
-
# punctuation.
|
|
499
|
-
smart_format: nil,
|
|
500
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
501
|
-
# to 5000 ms.
|
|
502
|
-
utterance_end_ms: nil
|
|
503
|
-
)
|
|
504
|
-
end
|
|
505
|
-
|
|
506
|
-
sig do
|
|
507
|
-
override.returns(
|
|
508
|
-
{
|
|
509
|
-
transcription_engine:
|
|
510
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine::OrSymbol,
|
|
511
|
-
transcription_model:
|
|
512
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel::OrSymbol,
|
|
513
|
-
hints: T::Array[String],
|
|
514
|
-
interim_results: T::Boolean,
|
|
515
|
-
keywords_boosting: T::Hash[Symbol, Float],
|
|
516
|
-
language:
|
|
517
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol,
|
|
518
|
-
smart_format: T::Boolean,
|
|
519
|
-
utterance_end_ms: Integer
|
|
520
|
-
}
|
|
521
|
-
)
|
|
522
|
-
end
|
|
523
|
-
def to_hash
|
|
524
|
-
end
|
|
525
|
-
|
|
526
|
-
module TranscriptionEngine
|
|
527
|
-
extend Telnyx::Internal::Type::Enum
|
|
528
|
-
|
|
529
|
-
TaggedSymbol =
|
|
530
|
-
T.type_alias do
|
|
531
|
-
T.all(
|
|
532
|
-
Symbol,
|
|
533
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine
|
|
534
|
-
)
|
|
535
|
-
end
|
|
536
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
537
|
-
|
|
538
|
-
DEEPGRAM =
|
|
539
|
-
T.let(
|
|
540
|
-
:Deepgram,
|
|
541
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine::TaggedSymbol
|
|
542
|
-
)
|
|
543
|
-
|
|
544
|
-
sig do
|
|
545
|
-
override.returns(
|
|
546
|
-
T::Array[
|
|
547
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionEngine::TaggedSymbol
|
|
548
|
-
]
|
|
549
|
-
)
|
|
550
|
-
end
|
|
551
|
-
def self.values
|
|
552
|
-
end
|
|
553
|
-
end
|
|
554
|
-
|
|
555
|
-
module TranscriptionModel
|
|
556
|
-
extend Telnyx::Internal::Type::Enum
|
|
557
|
-
|
|
558
|
-
TaggedSymbol =
|
|
559
|
-
T.type_alias do
|
|
560
|
-
T.all(
|
|
561
|
-
Symbol,
|
|
562
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel
|
|
563
|
-
)
|
|
564
|
-
end
|
|
565
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
566
|
-
|
|
567
|
-
DEEPGRAM_NOVA_2_MEDICAL =
|
|
568
|
-
T.let(
|
|
569
|
-
:"deepgram/nova-2-medical",
|
|
570
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel::TaggedSymbol
|
|
571
|
-
)
|
|
572
|
-
DEEPGRAM_NOVA_2_PHONECALL =
|
|
573
|
-
T.let(
|
|
574
|
-
:"deepgram/nova-2-phonecall",
|
|
575
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel::TaggedSymbol
|
|
576
|
-
)
|
|
577
|
-
|
|
578
|
-
sig do
|
|
579
|
-
override.returns(
|
|
580
|
-
T::Array[
|
|
581
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova2SpecialtyConfig::TranscriptionModel::TaggedSymbol
|
|
582
|
-
]
|
|
583
|
-
)
|
|
584
|
-
end
|
|
585
|
-
def self.values
|
|
586
|
-
end
|
|
587
|
-
end
|
|
588
|
-
end
|
|
589
|
-
|
|
590
|
-
class DeepgramNova3MedicalConfig < Telnyx::Internal::Type::BaseModel
|
|
591
|
-
OrHash =
|
|
592
|
-
T.type_alias do
|
|
593
|
-
T.any(
|
|
594
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig,
|
|
595
|
-
Telnyx::Internal::AnyHash
|
|
596
|
-
)
|
|
597
|
-
end
|
|
598
|
-
|
|
599
|
-
sig do
|
|
600
|
-
returns(
|
|
601
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine::OrSymbol
|
|
602
|
-
)
|
|
603
|
-
end
|
|
604
|
-
attr_accessor :transcription_engine
|
|
605
|
-
|
|
606
|
-
sig do
|
|
607
|
-
returns(
|
|
608
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel::OrSymbol
|
|
609
|
-
)
|
|
610
|
-
end
|
|
611
|
-
attr_accessor :transcription_model
|
|
612
|
-
|
|
613
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
614
|
-
# be sent.
|
|
615
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
616
|
-
attr_reader :interim_results
|
|
617
|
-
|
|
618
|
-
sig { params(interim_results: T::Boolean).void }
|
|
619
|
-
attr_writer :interim_results
|
|
620
|
-
|
|
621
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
622
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
623
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
624
|
-
# on Nova-2.
|
|
625
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
626
|
-
attr_reader :keyterms
|
|
627
|
-
|
|
628
|
-
sig { params(keyterms: T::Array[String]).void }
|
|
629
|
-
attr_writer :keyterms
|
|
630
|
-
|
|
631
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
632
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
633
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
634
|
-
sig { returns(T.nilable(T::Hash[Symbol, Float])) }
|
|
635
|
-
attr_reader :keywords_boosting
|
|
636
|
-
|
|
637
|
-
sig { params(keywords_boosting: T::Hash[Symbol, Float]).void }
|
|
638
|
-
attr_writer :keywords_boosting
|
|
639
|
-
|
|
640
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
641
|
-
# only.
|
|
642
|
-
sig do
|
|
643
|
-
returns(
|
|
644
|
-
T.nilable(
|
|
645
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol
|
|
646
|
-
)
|
|
647
|
-
)
|
|
648
|
-
end
|
|
649
|
-
attr_reader :language
|
|
650
|
-
|
|
651
|
-
sig do
|
|
652
|
-
params(
|
|
653
|
-
language:
|
|
654
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol
|
|
655
|
-
).void
|
|
656
|
-
end
|
|
657
|
-
attr_writer :language
|
|
658
|
-
|
|
659
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
660
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
661
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
662
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
663
|
-
# punctuation.
|
|
664
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
665
|
-
attr_reader :smart_format
|
|
666
|
-
|
|
667
|
-
sig { params(smart_format: T::Boolean).void }
|
|
668
|
-
attr_writer :smart_format
|
|
669
|
-
|
|
670
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
671
|
-
# to 5000 ms.
|
|
672
|
-
sig { returns(T.nilable(Integer)) }
|
|
673
|
-
attr_reader :utterance_end_ms
|
|
674
|
-
|
|
675
|
-
sig { params(utterance_end_ms: Integer).void }
|
|
676
|
-
attr_writer :utterance_end_ms
|
|
677
|
-
|
|
678
|
-
# Deepgram Nova-3 medical model, tuned for medical vocabulary. English only.
|
|
679
|
-
sig do
|
|
680
|
-
params(
|
|
681
|
-
transcription_engine:
|
|
682
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine::OrSymbol,
|
|
683
|
-
transcription_model:
|
|
684
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel::OrSymbol,
|
|
685
|
-
interim_results: T::Boolean,
|
|
686
|
-
keyterms: T::Array[String],
|
|
687
|
-
keywords_boosting: T::Hash[Symbol, Float],
|
|
688
|
-
language:
|
|
689
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol,
|
|
690
|
-
smart_format: T::Boolean,
|
|
691
|
-
utterance_end_ms: Integer
|
|
692
|
-
).returns(T.attached_class)
|
|
693
|
-
end
|
|
694
|
-
def self.new(
|
|
695
|
-
transcription_engine:,
|
|
696
|
-
transcription_model:,
|
|
697
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
698
|
-
# be sent.
|
|
699
|
-
interim_results: nil,
|
|
700
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
701
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
702
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
703
|
-
# on Nova-2.
|
|
704
|
-
keyterms: nil,
|
|
705
|
-
# Keywords and their respective intensifiers (boosting values) to improve
|
|
706
|
-
# transcription accuracy for specific words or phrases. The intensifier should be
|
|
707
|
-
# a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
|
|
708
|
-
keywords_boosting: nil,
|
|
709
|
-
# Language to transcribe. Deepgram's medical and phonecall models support English
|
|
710
|
-
# only.
|
|
711
|
-
language: nil,
|
|
712
|
-
# Enable Deepgram's smart formatting (capitalization, punctuation, and digit
|
|
713
|
-
# normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
|
|
714
|
-
# underlying default of `false` — omit the field to get a smart-formatted
|
|
715
|
-
# transcript, or set it to `false` to receive the raw lowercase transcript without
|
|
716
|
-
# punctuation.
|
|
717
|
-
smart_format: nil,
|
|
718
|
-
# Number of milliseconds of silence to consider an utterance ended. Ranges from 0
|
|
719
|
-
# to 5000 ms.
|
|
720
|
-
utterance_end_ms: nil
|
|
721
|
-
)
|
|
722
|
-
end
|
|
723
|
-
|
|
724
|
-
sig do
|
|
725
|
-
override.returns(
|
|
726
|
-
{
|
|
727
|
-
transcription_engine:
|
|
728
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine::OrSymbol,
|
|
729
|
-
transcription_model:
|
|
730
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel::OrSymbol,
|
|
731
|
-
interim_results: T::Boolean,
|
|
732
|
-
keyterms: T::Array[String],
|
|
733
|
-
keywords_boosting: T::Hash[Symbol, Float],
|
|
734
|
-
language:
|
|
735
|
-
Telnyx::Calls::DeepgramEnglishTranscriptionLanguage::OrSymbol,
|
|
736
|
-
smart_format: T::Boolean,
|
|
737
|
-
utterance_end_ms: Integer
|
|
738
|
-
}
|
|
739
|
-
)
|
|
740
|
-
end
|
|
741
|
-
def to_hash
|
|
742
|
-
end
|
|
743
|
-
|
|
744
|
-
module TranscriptionEngine
|
|
745
|
-
extend Telnyx::Internal::Type::Enum
|
|
746
|
-
|
|
747
|
-
TaggedSymbol =
|
|
748
|
-
T.type_alias do
|
|
749
|
-
T.all(
|
|
750
|
-
Symbol,
|
|
751
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine
|
|
752
|
-
)
|
|
753
|
-
end
|
|
754
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
755
|
-
|
|
756
|
-
DEEPGRAM =
|
|
757
|
-
T.let(
|
|
758
|
-
:Deepgram,
|
|
759
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine::TaggedSymbol
|
|
760
|
-
)
|
|
761
|
-
|
|
762
|
-
sig do
|
|
763
|
-
override.returns(
|
|
764
|
-
T::Array[
|
|
765
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionEngine::TaggedSymbol
|
|
766
|
-
]
|
|
767
|
-
)
|
|
768
|
-
end
|
|
769
|
-
def self.values
|
|
770
|
-
end
|
|
771
|
-
end
|
|
772
|
-
|
|
773
|
-
module TranscriptionModel
|
|
774
|
-
extend Telnyx::Internal::Type::Enum
|
|
775
|
-
|
|
776
|
-
TaggedSymbol =
|
|
777
|
-
T.type_alias do
|
|
778
|
-
T.all(
|
|
779
|
-
Symbol,
|
|
780
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel
|
|
781
|
-
)
|
|
782
|
-
end
|
|
783
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
784
|
-
|
|
785
|
-
DEEPGRAM_NOVA_3_MEDICAL =
|
|
786
|
-
T.let(
|
|
787
|
-
:"deepgram/nova-3-medical",
|
|
788
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel::TaggedSymbol
|
|
789
|
-
)
|
|
790
|
-
|
|
791
|
-
sig do
|
|
792
|
-
override.returns(
|
|
793
|
-
T::Array[
|
|
794
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramNova3MedicalConfig::TranscriptionModel::TaggedSymbol
|
|
795
|
-
]
|
|
796
|
-
)
|
|
797
|
-
end
|
|
798
|
-
def self.values
|
|
799
|
-
end
|
|
800
|
-
end
|
|
801
|
-
end
|
|
802
|
-
|
|
803
|
-
class DeepgramFluxConfig < Telnyx::Internal::Type::BaseModel
|
|
804
|
-
OrHash =
|
|
805
|
-
T.type_alias do
|
|
806
|
-
T.any(
|
|
807
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig,
|
|
808
|
-
Telnyx::Internal::AnyHash
|
|
809
|
-
)
|
|
810
|
-
end
|
|
811
|
-
|
|
812
|
-
sig do
|
|
813
|
-
returns(
|
|
814
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine::OrSymbol
|
|
815
|
-
)
|
|
816
|
-
end
|
|
817
|
-
attr_accessor :transcription_engine
|
|
818
|
-
|
|
819
|
-
sig do
|
|
820
|
-
returns(
|
|
821
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel::OrSymbol
|
|
822
|
-
)
|
|
823
|
-
end
|
|
824
|
-
attr_accessor :transcription_model
|
|
825
|
-
|
|
826
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
827
|
-
# be sent.
|
|
828
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
829
|
-
attr_reader :interim_results
|
|
830
|
-
|
|
831
|
-
sig { params(interim_results: T::Boolean).void }
|
|
832
|
-
attr_writer :interim_results
|
|
833
|
-
|
|
834
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
835
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
836
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
837
|
-
# on Nova-2.
|
|
838
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
839
|
-
attr_reader :keyterms
|
|
840
|
-
|
|
841
|
-
sig { params(keyterms: T::Array[String]).void }
|
|
842
|
-
attr_writer :keyterms
|
|
843
|
-
|
|
844
|
-
# Language to transcribe. `deepgram/flux` supports English only.
|
|
845
|
-
sig do
|
|
846
|
-
returns(
|
|
847
|
-
T.nilable(
|
|
848
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language::OrSymbol
|
|
849
|
-
)
|
|
850
|
-
)
|
|
851
|
-
end
|
|
852
|
-
attr_reader :language
|
|
853
|
-
|
|
854
|
-
sig do
|
|
855
|
-
params(
|
|
856
|
-
language:
|
|
857
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language::OrSymbol
|
|
858
|
-
).void
|
|
859
|
-
end
|
|
860
|
-
attr_writer :language
|
|
861
|
-
|
|
862
|
-
# Deepgram Flux (English), a conversational speech recognition model with built-in
|
|
863
|
-
# end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
864
|
-
# `keywords_boosting` do not apply to Flux.
|
|
865
|
-
sig do
|
|
866
|
-
params(
|
|
867
|
-
transcription_engine:
|
|
868
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine::OrSymbol,
|
|
869
|
-
transcription_model:
|
|
870
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel::OrSymbol,
|
|
871
|
-
interim_results: T::Boolean,
|
|
872
|
-
keyterms: T::Array[String],
|
|
873
|
-
language:
|
|
874
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language::OrSymbol
|
|
875
|
-
).returns(T.attached_class)
|
|
876
|
-
end
|
|
877
|
-
def self.new(
|
|
878
|
-
transcription_engine:,
|
|
879
|
-
transcription_model:,
|
|
880
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
881
|
-
# be sent.
|
|
882
|
-
interim_results: nil,
|
|
883
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
884
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
885
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
886
|
-
# on Nova-2.
|
|
887
|
-
keyterms: nil,
|
|
888
|
-
# Language to transcribe. `deepgram/flux` supports English only.
|
|
889
|
-
language: nil
|
|
890
|
-
)
|
|
891
|
-
end
|
|
892
|
-
|
|
893
|
-
sig do
|
|
894
|
-
override.returns(
|
|
895
|
-
{
|
|
896
|
-
transcription_engine:
|
|
897
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine::OrSymbol,
|
|
898
|
-
transcription_model:
|
|
899
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel::OrSymbol,
|
|
900
|
-
interim_results: T::Boolean,
|
|
901
|
-
keyterms: T::Array[String],
|
|
902
|
-
language:
|
|
903
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language::OrSymbol
|
|
904
|
-
}
|
|
905
|
-
)
|
|
906
|
-
end
|
|
907
|
-
def to_hash
|
|
908
|
-
end
|
|
909
|
-
|
|
910
|
-
module TranscriptionEngine
|
|
911
|
-
extend Telnyx::Internal::Type::Enum
|
|
912
|
-
|
|
913
|
-
TaggedSymbol =
|
|
914
|
-
T.type_alias do
|
|
915
|
-
T.all(
|
|
916
|
-
Symbol,
|
|
917
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine
|
|
918
|
-
)
|
|
919
|
-
end
|
|
920
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
921
|
-
|
|
922
|
-
DEEPGRAM =
|
|
923
|
-
T.let(
|
|
924
|
-
:Deepgram,
|
|
925
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine::TaggedSymbol
|
|
926
|
-
)
|
|
927
|
-
|
|
928
|
-
sig do
|
|
929
|
-
override.returns(
|
|
930
|
-
T::Array[
|
|
931
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionEngine::TaggedSymbol
|
|
932
|
-
]
|
|
933
|
-
)
|
|
934
|
-
end
|
|
935
|
-
def self.values
|
|
936
|
-
end
|
|
937
|
-
end
|
|
938
|
-
|
|
939
|
-
module TranscriptionModel
|
|
940
|
-
extend Telnyx::Internal::Type::Enum
|
|
941
|
-
|
|
942
|
-
TaggedSymbol =
|
|
943
|
-
T.type_alias do
|
|
944
|
-
T.all(
|
|
945
|
-
Symbol,
|
|
946
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel
|
|
947
|
-
)
|
|
948
|
-
end
|
|
949
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
950
|
-
|
|
951
|
-
DEEPGRAM_FLUX =
|
|
952
|
-
T.let(
|
|
953
|
-
:"deepgram/flux",
|
|
954
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel::TaggedSymbol
|
|
955
|
-
)
|
|
956
|
-
|
|
957
|
-
sig do
|
|
958
|
-
override.returns(
|
|
959
|
-
T::Array[
|
|
960
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::TranscriptionModel::TaggedSymbol
|
|
961
|
-
]
|
|
962
|
-
)
|
|
963
|
-
end
|
|
964
|
-
def self.values
|
|
965
|
-
end
|
|
966
|
-
end
|
|
967
|
-
|
|
968
|
-
# Language to transcribe. `deepgram/flux` supports English only.
|
|
969
|
-
module Language
|
|
970
|
-
extend Telnyx::Internal::Type::Enum
|
|
971
|
-
|
|
972
|
-
TaggedSymbol =
|
|
973
|
-
T.type_alias do
|
|
974
|
-
T.all(
|
|
975
|
-
Symbol,
|
|
976
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language
|
|
977
|
-
)
|
|
978
|
-
end
|
|
979
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
980
|
-
|
|
981
|
-
EN =
|
|
982
|
-
T.let(
|
|
983
|
-
:en,
|
|
984
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language::TaggedSymbol
|
|
985
|
-
)
|
|
986
|
-
|
|
987
|
-
sig do
|
|
988
|
-
override.returns(
|
|
989
|
-
T::Array[
|
|
990
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxConfig::Language::TaggedSymbol
|
|
991
|
-
]
|
|
992
|
-
)
|
|
993
|
-
end
|
|
994
|
-
def self.values
|
|
995
|
-
end
|
|
996
|
-
end
|
|
997
|
-
end
|
|
998
|
-
|
|
999
|
-
class DeepgramFluxMultiConfig < Telnyx::Internal::Type::BaseModel
|
|
1000
|
-
OrHash =
|
|
1001
|
-
T.type_alias do
|
|
1002
|
-
T.any(
|
|
1003
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig,
|
|
1004
|
-
Telnyx::Internal::AnyHash
|
|
1005
|
-
)
|
|
1006
|
-
end
|
|
1007
|
-
|
|
1008
|
-
sig do
|
|
1009
|
-
returns(
|
|
1010
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine::OrSymbol
|
|
1011
|
-
)
|
|
1012
|
-
end
|
|
1013
|
-
attr_accessor :transcription_engine
|
|
1014
|
-
|
|
1015
|
-
sig do
|
|
1016
|
-
returns(
|
|
1017
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel::OrSymbol
|
|
1018
|
-
)
|
|
1019
|
-
end
|
|
1020
|
-
attr_accessor :transcription_model
|
|
1021
|
-
|
|
1022
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
1023
|
-
# be sent.
|
|
1024
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
1025
|
-
attr_reader :interim_results
|
|
1026
|
-
|
|
1027
|
-
sig { params(interim_results: T::Boolean).void }
|
|
1028
|
-
attr_writer :interim_results
|
|
1029
|
-
|
|
1030
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
1031
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
1032
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
1033
|
-
# on Nova-2.
|
|
1034
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
1035
|
-
attr_reader :keyterms
|
|
1036
|
-
|
|
1037
|
-
sig { params(keyterms: T::Array[String]).void }
|
|
1038
|
-
attr_writer :keyterms
|
|
1039
|
-
|
|
1040
|
-
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
1041
|
-
# detect the language.
|
|
1042
|
-
sig do
|
|
1043
|
-
returns(
|
|
1044
|
-
T.nilable(
|
|
1045
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
1046
|
-
)
|
|
1047
|
-
)
|
|
1048
|
-
end
|
|
1049
|
-
attr_reader :language
|
|
1050
|
-
|
|
1051
|
-
sig do
|
|
1052
|
-
params(
|
|
1053
|
-
language:
|
|
1054
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
1055
|
-
).void
|
|
1056
|
-
end
|
|
1057
|
-
attr_writer :language
|
|
1058
|
-
|
|
1059
|
-
# Deepgram Flux multilingual, a conversational speech recognition model with
|
|
1060
|
-
# built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
|
|
1061
|
-
# `keywords_boosting` do not apply to Flux.
|
|
1062
|
-
sig do
|
|
1063
|
-
params(
|
|
1064
|
-
transcription_engine:
|
|
1065
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine::OrSymbol,
|
|
1066
|
-
transcription_model:
|
|
1067
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel::OrSymbol,
|
|
1068
|
-
interim_results: T::Boolean,
|
|
1069
|
-
keyterms: T::Array[String],
|
|
1070
|
-
language:
|
|
1071
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
1072
|
-
).returns(T.attached_class)
|
|
1073
|
-
end
|
|
1074
|
-
def self.new(
|
|
1075
|
-
transcription_engine:,
|
|
1076
|
-
transcription_model:,
|
|
1077
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
1078
|
-
# be sent.
|
|
1079
|
-
interim_results: nil,
|
|
1080
|
-
# Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
|
|
1081
|
-
# recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
|
|
1082
|
-
# `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
|
|
1083
|
-
# on Nova-2.
|
|
1084
|
-
keyterms: nil,
|
|
1085
|
-
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
1086
|
-
# detect the language.
|
|
1087
|
-
language: nil
|
|
1088
|
-
)
|
|
1089
|
-
end
|
|
1090
|
-
|
|
1091
|
-
sig do
|
|
1092
|
-
override.returns(
|
|
1093
|
-
{
|
|
1094
|
-
transcription_engine:
|
|
1095
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine::OrSymbol,
|
|
1096
|
-
transcription_model:
|
|
1097
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel::OrSymbol,
|
|
1098
|
-
interim_results: T::Boolean,
|
|
1099
|
-
keyterms: T::Array[String],
|
|
1100
|
-
language:
|
|
1101
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::OrSymbol
|
|
1102
|
-
}
|
|
1103
|
-
)
|
|
1104
|
-
end
|
|
1105
|
-
def to_hash
|
|
1106
|
-
end
|
|
1107
|
-
|
|
1108
|
-
module TranscriptionEngine
|
|
1109
|
-
extend Telnyx::Internal::Type::Enum
|
|
1110
|
-
|
|
1111
|
-
TaggedSymbol =
|
|
1112
|
-
T.type_alias do
|
|
1113
|
-
T.all(
|
|
1114
|
-
Symbol,
|
|
1115
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine
|
|
1116
|
-
)
|
|
1117
|
-
end
|
|
1118
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1119
|
-
|
|
1120
|
-
DEEPGRAM =
|
|
1121
|
-
T.let(
|
|
1122
|
-
:Deepgram,
|
|
1123
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine::TaggedSymbol
|
|
1124
|
-
)
|
|
1125
|
-
|
|
1126
|
-
sig do
|
|
1127
|
-
override.returns(
|
|
1128
|
-
T::Array[
|
|
1129
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionEngine::TaggedSymbol
|
|
1130
|
-
]
|
|
1131
|
-
)
|
|
1132
|
-
end
|
|
1133
|
-
def self.values
|
|
1134
|
-
end
|
|
1135
|
-
end
|
|
1136
|
-
|
|
1137
|
-
module TranscriptionModel
|
|
1138
|
-
extend Telnyx::Internal::Type::Enum
|
|
1139
|
-
|
|
1140
|
-
TaggedSymbol =
|
|
1141
|
-
T.type_alias do
|
|
1142
|
-
T.all(
|
|
1143
|
-
Symbol,
|
|
1144
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel
|
|
1145
|
-
)
|
|
1146
|
-
end
|
|
1147
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1148
|
-
|
|
1149
|
-
DEEPGRAM_FLUX_MULTI =
|
|
1150
|
-
T.let(
|
|
1151
|
-
:"deepgram/flux-multi",
|
|
1152
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel::TaggedSymbol
|
|
1153
|
-
)
|
|
1154
|
-
|
|
1155
|
-
sig do
|
|
1156
|
-
override.returns(
|
|
1157
|
-
T::Array[
|
|
1158
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::TranscriptionModel::TaggedSymbol
|
|
1159
|
-
]
|
|
1160
|
-
)
|
|
1161
|
-
end
|
|
1162
|
-
def self.values
|
|
1163
|
-
end
|
|
1164
|
-
end
|
|
1165
|
-
|
|
1166
|
-
# Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
|
|
1167
|
-
# detect the language.
|
|
1168
|
-
module Language
|
|
1169
|
-
extend Telnyx::Internal::Type::Enum
|
|
1170
|
-
|
|
1171
|
-
TaggedSymbol =
|
|
1172
|
-
T.type_alias do
|
|
1173
|
-
T.all(
|
|
1174
|
-
Symbol,
|
|
1175
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language
|
|
1176
|
-
)
|
|
1177
|
-
end
|
|
1178
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1179
|
-
|
|
1180
|
-
EN =
|
|
1181
|
-
T.let(
|
|
1182
|
-
:en,
|
|
1183
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1184
|
-
)
|
|
1185
|
-
ES =
|
|
1186
|
-
T.let(
|
|
1187
|
-
:es,
|
|
1188
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1189
|
-
)
|
|
1190
|
-
FR =
|
|
1191
|
-
T.let(
|
|
1192
|
-
:fr,
|
|
1193
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1194
|
-
)
|
|
1195
|
-
DE =
|
|
1196
|
-
T.let(
|
|
1197
|
-
:de,
|
|
1198
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1199
|
-
)
|
|
1200
|
-
HI =
|
|
1201
|
-
T.let(
|
|
1202
|
-
:hi,
|
|
1203
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1204
|
-
)
|
|
1205
|
-
RU =
|
|
1206
|
-
T.let(
|
|
1207
|
-
:ru,
|
|
1208
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1209
|
-
)
|
|
1210
|
-
PT =
|
|
1211
|
-
T.let(
|
|
1212
|
-
:pt,
|
|
1213
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1214
|
-
)
|
|
1215
|
-
JA =
|
|
1216
|
-
T.let(
|
|
1217
|
-
:ja,
|
|
1218
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1219
|
-
)
|
|
1220
|
-
IT =
|
|
1221
|
-
T.let(
|
|
1222
|
-
:it,
|
|
1223
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1224
|
-
)
|
|
1225
|
-
NL =
|
|
1226
|
-
T.let(
|
|
1227
|
-
:nl,
|
|
1228
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1229
|
-
)
|
|
1230
|
-
AUTO =
|
|
1231
|
-
T.let(
|
|
1232
|
-
:auto,
|
|
1233
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1234
|
-
)
|
|
1235
|
-
|
|
1236
|
-
sig do
|
|
1237
|
-
override.returns(
|
|
1238
|
-
T::Array[
|
|
1239
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::DeepgramFluxMultiConfig::Language::TaggedSymbol
|
|
1240
|
-
]
|
|
1241
|
-
)
|
|
1242
|
-
end
|
|
1243
|
-
def self.values
|
|
1244
|
-
end
|
|
1245
|
-
end
|
|
1246
|
-
end
|
|
1247
|
-
|
|
1248
|
-
class TranscriptionEngineCommunityConfig < Telnyx::Internal::Type::BaseModel
|
|
1249
|
-
OrHash =
|
|
1250
|
-
T.type_alias do
|
|
1251
|
-
T.any(
|
|
1252
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::TranscriptionEngineCommunityConfig,
|
|
1253
|
-
Telnyx::Internal::AnyHash
|
|
1254
|
-
)
|
|
1255
|
-
end
|
|
1256
|
-
|
|
1257
|
-
# The identifier of the
|
|
1258
|
-
# [integration secret](/api-reference/integration-secrets/create-a-secret) in your
|
|
1259
|
-
# organization that holds the key the engine expects. The engine is called with
|
|
1260
|
-
# your own key: Telnyx holds none for it.
|
|
1261
|
-
sig { returns(String) }
|
|
1262
|
-
attr_accessor :api_key_ref
|
|
1263
|
-
|
|
1264
|
-
# Whether to send interim (non-final) transcription results in addition to final
|
|
1265
|
-
# ones.
|
|
1266
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
1267
|
-
attr_reader :interim_results
|
|
1268
|
-
|
|
1269
|
-
sig { params(interim_results: T::Boolean).void }
|
|
1270
|
-
attr_writer :interim_results
|
|
1271
|
-
|
|
1272
|
-
# The language of the audio to be transcribed. Unlike the built-in engines, this
|
|
1273
|
-
# isn't checked against a fixed list: it is passed through to the registered
|
|
1274
|
-
# engine, which accepts the languages its selected model lists. `auto` resolves to
|
|
1275
|
-
# that model's language when it lists only one.
|
|
1276
|
-
sig { returns(T.nilable(String)) }
|
|
1277
|
-
attr_reader :language
|
|
1278
|
-
|
|
1279
|
-
sig { params(language: String).void }
|
|
1280
|
-
attr_writer :language
|
|
1281
|
-
|
|
1282
|
-
# One of the community engine's own models, as listed in its `models`. Without it,
|
|
1283
|
-
# the engine's default model is used.
|
|
1284
|
-
sig { returns(T.nilable(String)) }
|
|
1285
|
-
attr_reader :transcription_model
|
|
1286
|
-
|
|
1287
|
-
sig { params(transcription_model: String).void }
|
|
1288
|
-
attr_writer :transcription_model
|
|
1289
|
-
|
|
1290
|
-
# Settings for a community STT engine, used with the engine's name in
|
|
1291
|
-
# `transcription_engine` (any name that is not a built-in engine). See
|
|
1292
|
-
# [Community STT engines](/docs/voice/stt/community-engines).
|
|
1293
|
-
sig do
|
|
1294
|
-
params(
|
|
1295
|
-
api_key_ref: String,
|
|
1296
|
-
interim_results: T::Boolean,
|
|
1297
|
-
language: String,
|
|
1298
|
-
transcription_model: String
|
|
1299
|
-
).returns(T.attached_class)
|
|
1300
|
-
end
|
|
1301
|
-
def self.new(
|
|
1302
|
-
# The identifier of the
|
|
1303
|
-
# [integration secret](/api-reference/integration-secrets/create-a-secret) in your
|
|
1304
|
-
# organization that holds the key the engine expects. The engine is called with
|
|
1305
|
-
# your own key: Telnyx holds none for it.
|
|
1306
|
-
api_key_ref:,
|
|
1307
|
-
# Whether to send interim (non-final) transcription results in addition to final
|
|
1308
|
-
# ones.
|
|
1309
|
-
interim_results: nil,
|
|
1310
|
-
# The language of the audio to be transcribed. Unlike the built-in engines, this
|
|
1311
|
-
# isn't checked against a fixed list: it is passed through to the registered
|
|
1312
|
-
# engine, which accepts the languages its selected model lists. `auto` resolves to
|
|
1313
|
-
# that model's language when it lists only one.
|
|
1314
|
-
language: nil,
|
|
1315
|
-
# One of the community engine's own models, as listed in its `models`. Without it,
|
|
1316
|
-
# the engine's default model is used.
|
|
1317
|
-
transcription_model: nil
|
|
1318
|
-
)
|
|
1319
|
-
end
|
|
1320
|
-
|
|
1321
|
-
sig do
|
|
1322
|
-
override.returns(
|
|
1323
|
-
{
|
|
1324
|
-
api_key_ref: String,
|
|
1325
|
-
interim_results: T::Boolean,
|
|
1326
|
-
language: String,
|
|
1327
|
-
transcription_model: String
|
|
1328
|
-
}
|
|
1329
|
-
)
|
|
1330
|
-
end
|
|
1331
|
-
def to_hash
|
|
1332
|
-
end
|
|
1333
|
-
end
|
|
1334
|
-
|
|
1335
371
|
sig do
|
|
1336
372
|
override.returns(
|
|
1337
373
|
T::Array[
|