telnyx 5.103.0 → 5.104.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 +21 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -170
- data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -170
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
- data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
- data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
- data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
- data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -171
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -169
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
- data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -31
- data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
- data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
- data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -31
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -167
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
- data/lib/telnyx/models/model_metadata.rb +33 -0
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection.rb +412 -0
- data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
- data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
- data/lib/telnyx/models/uac_external_settings.rb +101 -0
- data/lib/telnyx/models/uac_inbound.rb +210 -0
- data/lib/telnyx/models/uac_internal_settings.rb +25 -0
- data/lib/telnyx/models/uac_outbound.rb +131 -0
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
- data/lib/telnyx/models/xai_voice_settings.rb +36 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +5 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +22 -4
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -341
- data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -341
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
- data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -355
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -340
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -56
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -51
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -480
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/model_metadata.rbi +44 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection.rbi +684 -0
- data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
- data/rbi/telnyx/models/uac_inbound.rbi +410 -0
- data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
- data/rbi/telnyx/models/uac_outbound.rbi +224 -0
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
- data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/calls/actions.rbi +6 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +7 -13
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -142
- data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -142
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
- data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -145
- data/sig/telnyx/models/ai/inference_embedding.rbs +18 -142
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -39
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -39
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +2 -184
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/model_metadata.rbs +32 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection.rbs +338 -0
- data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
- data/sig/telnyx/models/uac_external_settings.rbs +73 -0
- data/sig/telnyx/models/uac_inbound.rbs +190 -0
- data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
- data/sig/telnyx/models/uac_outbound.rbs +113 -0
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +68 -14
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
- data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
- data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
- data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
- data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
|
@@ -6,8 +6,8 @@ module Telnyx
|
|
|
6
6
|
class AIRetrieveModelsResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Array<Telnyx::Models::
|
|
10
|
-
required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::
|
|
9
|
+
# @return [Array<Telnyx::Models::ModelMetadata>]
|
|
10
|
+
required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::ModelMetadata] }
|
|
11
11
|
|
|
12
12
|
# @!attribute object
|
|
13
13
|
#
|
|
@@ -15,36 +15,8 @@ module Telnyx
|
|
|
15
15
|
optional :object, String
|
|
16
16
|
|
|
17
17
|
# @!method initialize(data:, object: nil)
|
|
18
|
-
# @param data [Array<Telnyx::Models::
|
|
18
|
+
# @param data [Array<Telnyx::Models::ModelMetadata>]
|
|
19
19
|
# @param object [String]
|
|
20
|
-
|
|
21
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
22
|
-
# @!attribute id
|
|
23
|
-
#
|
|
24
|
-
# @return [String]
|
|
25
|
-
required :id, String
|
|
26
|
-
|
|
27
|
-
# @!attribute created
|
|
28
|
-
#
|
|
29
|
-
# @return [Integer]
|
|
30
|
-
required :created, Integer
|
|
31
|
-
|
|
32
|
-
# @!attribute owned_by
|
|
33
|
-
#
|
|
34
|
-
# @return [String]
|
|
35
|
-
required :owned_by, String
|
|
36
|
-
|
|
37
|
-
# @!attribute object
|
|
38
|
-
#
|
|
39
|
-
# @return [String, nil]
|
|
40
|
-
optional :object, String
|
|
41
|
-
|
|
42
|
-
# @!method initialize(id:, created:, owned_by:, object: nil)
|
|
43
|
-
# @param id [String]
|
|
44
|
-
# @param created [Integer]
|
|
45
|
-
# @param owned_by [String]
|
|
46
|
-
# @param object [String]
|
|
47
|
-
end
|
|
48
20
|
end
|
|
49
21
|
end
|
|
50
22
|
end
|
|
@@ -144,7 +144,7 @@ module Telnyx
|
|
|
144
144
|
# @!attribute voice_settings
|
|
145
145
|
# The settings associated with the voice selected
|
|
146
146
|
#
|
|
147
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
147
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
|
|
148
148
|
optional :voice_settings, union: -> { Telnyx::Calls::ActionGatherUsingAIParams::VoiceSettings }
|
|
149
149
|
|
|
150
150
|
# @!method initialize(call_control_id:, parameters:, assistant: nil, client_state: nil, command_id: nil, gather_ended_speech: nil, greeting: nil, interruption_settings: nil, language: nil, message_history: nil, send_message_history_updates: nil, send_partial_results: nil, transcription: nil, user_response_timeout_ms: nil, voice: nil, voice_settings: nil, request_options: {})
|
|
@@ -181,7 +181,7 @@ module Telnyx
|
|
|
181
181
|
#
|
|
182
182
|
# @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
|
|
183
183
|
#
|
|
184
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
184
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
185
185
|
#
|
|
186
186
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
187
187
|
|
|
@@ -235,29 +235,10 @@ module Telnyx
|
|
|
235
235
|
|
|
236
236
|
variant :resemble, -> { Telnyx::ResembleVoiceSettings }
|
|
237
237
|
|
|
238
|
-
variant :xai, -> { Telnyx::
|
|
239
|
-
|
|
240
|
-
class Xai < Telnyx::Internal::Type::BaseModel
|
|
241
|
-
# @!attribute type
|
|
242
|
-
# Voice settings provider type
|
|
243
|
-
#
|
|
244
|
-
# @return [Symbol, :xai]
|
|
245
|
-
required :type, const: :xai
|
|
246
|
-
|
|
247
|
-
# @!attribute language
|
|
248
|
-
# Language code, or `auto` to detect automatically.
|
|
249
|
-
#
|
|
250
|
-
# @return [String, nil]
|
|
251
|
-
optional :language, String
|
|
252
|
-
|
|
253
|
-
# @!method initialize(language: nil, type: :xai)
|
|
254
|
-
# @param language [String] Language code, or `auto` to detect automatically.
|
|
255
|
-
#
|
|
256
|
-
# @param type [Symbol, :xai] Voice settings provider type
|
|
257
|
-
end
|
|
238
|
+
variant :xai, -> { Telnyx::XaiVoiceSettings }
|
|
258
239
|
|
|
259
240
|
# @!method self.variants
|
|
260
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
241
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
|
|
261
242
|
end
|
|
262
243
|
end
|
|
263
244
|
end
|
|
@@ -160,7 +160,7 @@ module Telnyx
|
|
|
160
160
|
# @!attribute voice_settings
|
|
161
161
|
# The settings associated with the voice selected
|
|
162
162
|
#
|
|
163
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
163
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
|
|
164
164
|
optional :voice_settings, union: -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings }
|
|
165
165
|
|
|
166
166
|
# @!method initialize(call_control_id:, payload:, voice:, client_state: nil, command_id: nil, inter_digit_timeout_millis: nil, invalid_payload: nil, language: nil, maximum_digits: nil, maximum_tries: nil, minimum_digits: nil, payload_type: nil, service_level: nil, terminating_digit: nil, timeout_millis: nil, valid_digits: nil, voice_settings: nil, request_options: {})
|
|
@@ -200,7 +200,7 @@ module Telnyx
|
|
|
200
200
|
#
|
|
201
201
|
# @param valid_digits [String] A list of all digits accepted as valid.
|
|
202
202
|
#
|
|
203
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
203
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
204
204
|
#
|
|
205
205
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
206
206
|
|
|
@@ -289,7 +289,7 @@ module Telnyx
|
|
|
289
289
|
|
|
290
290
|
variant :inworld, -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld }
|
|
291
291
|
|
|
292
|
-
variant :xai, -> { Telnyx::
|
|
292
|
+
variant :xai, -> { Telnyx::XaiVoiceSettings }
|
|
293
293
|
|
|
294
294
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
295
295
|
# @!attribute type
|
|
@@ -302,27 +302,8 @@ module Telnyx
|
|
|
302
302
|
# @param type [Symbol, :inworld] Voice settings provider type
|
|
303
303
|
end
|
|
304
304
|
|
|
305
|
-
class Xai < Telnyx::Internal::Type::BaseModel
|
|
306
|
-
# @!attribute type
|
|
307
|
-
# Voice settings provider type
|
|
308
|
-
#
|
|
309
|
-
# @return [Symbol, :xai]
|
|
310
|
-
required :type, const: :xai
|
|
311
|
-
|
|
312
|
-
# @!attribute language
|
|
313
|
-
# Language code, or `auto` to detect automatically.
|
|
314
|
-
#
|
|
315
|
-
# @return [String, nil]
|
|
316
|
-
optional :language, String
|
|
317
|
-
|
|
318
|
-
# @!method initialize(language: nil, type: :xai)
|
|
319
|
-
# @param language [String] Language code, or `auto` to detect automatically.
|
|
320
|
-
#
|
|
321
|
-
# @param type [Symbol, :xai] Voice settings provider type
|
|
322
|
-
end
|
|
323
|
-
|
|
324
305
|
# @!method self.variants
|
|
325
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
306
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
|
|
326
307
|
end
|
|
327
308
|
end
|
|
328
309
|
end
|
|
@@ -128,7 +128,7 @@ module Telnyx
|
|
|
128
128
|
# @!attribute voice_settings
|
|
129
129
|
# The settings associated with the voice selected
|
|
130
130
|
#
|
|
131
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
131
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
|
|
132
132
|
optional :voice_settings, union: -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings }
|
|
133
133
|
|
|
134
134
|
# @!method initialize(call_control_id:, payload:, voice:, client_state: nil, command_id: nil, language: nil, loop_: nil, payload_type: nil, service_level: nil, stop: nil, target_legs: nil, voice_settings: nil, request_options: {})
|
|
@@ -157,7 +157,7 @@ module Telnyx
|
|
|
157
157
|
#
|
|
158
158
|
# @param target_legs [Symbol, Telnyx::Models::Calls::ActionSpeakParams::TargetLegs] Specifies which legs of the call should receive the spoken audio.
|
|
159
159
|
#
|
|
160
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
160
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
161
161
|
#
|
|
162
162
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
163
163
|
|
|
@@ -258,7 +258,7 @@ module Telnyx
|
|
|
258
258
|
|
|
259
259
|
variant :inworld, -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld }
|
|
260
260
|
|
|
261
|
-
variant :xai, -> { Telnyx::
|
|
261
|
+
variant :xai, -> { Telnyx::XaiVoiceSettings }
|
|
262
262
|
|
|
263
263
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
264
264
|
# @!attribute type
|
|
@@ -271,27 +271,8 @@ module Telnyx
|
|
|
271
271
|
# @param type [Symbol, :inworld] Voice settings provider type
|
|
272
272
|
end
|
|
273
273
|
|
|
274
|
-
class Xai < Telnyx::Internal::Type::BaseModel
|
|
275
|
-
# @!attribute type
|
|
276
|
-
# Voice settings provider type
|
|
277
|
-
#
|
|
278
|
-
# @return [Symbol, :xai]
|
|
279
|
-
required :type, const: :xai
|
|
280
|
-
|
|
281
|
-
# @!attribute language
|
|
282
|
-
# Language code, or `auto` to detect automatically.
|
|
283
|
-
#
|
|
284
|
-
# @return [String, nil]
|
|
285
|
-
optional :language, String
|
|
286
|
-
|
|
287
|
-
# @!method initialize(language: nil, type: :xai)
|
|
288
|
-
# @param language [String] Language code, or `auto` to detect automatically.
|
|
289
|
-
#
|
|
290
|
-
# @param type [Symbol, :xai] Voice settings provider type
|
|
291
|
-
end
|
|
292
|
-
|
|
293
274
|
# @!method self.variants
|
|
294
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
275
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
|
|
295
276
|
end
|
|
296
277
|
end
|
|
297
278
|
end
|
|
@@ -114,7 +114,7 @@ module Telnyx
|
|
|
114
114
|
# @!attribute voice_settings
|
|
115
115
|
# The settings associated with the voice selected
|
|
116
116
|
#
|
|
117
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
117
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
|
|
118
118
|
optional :voice_settings, union: -> { Telnyx::Calls::ActionStartAIAssistantParams::VoiceSettings }
|
|
119
119
|
|
|
120
120
|
# @!method initialize(call_control_id:, assistant: nil, client_state: nil, command_id: nil, greeting: nil, interruption_settings: nil, message_history: nil, participants: nil, send_message_history_updates: nil, transcription: nil, voice: nil, voice_settings: nil, request_options: {})
|
|
@@ -143,7 +143,7 @@ module Telnyx
|
|
|
143
143
|
#
|
|
144
144
|
# @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
|
|
145
145
|
#
|
|
146
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
146
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
147
147
|
#
|
|
148
148
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
149
149
|
|
|
@@ -468,29 +468,10 @@ module Telnyx
|
|
|
468
468
|
|
|
469
469
|
variant :resemble, -> { Telnyx::ResembleVoiceSettings }
|
|
470
470
|
|
|
471
|
-
variant :xai, -> { Telnyx::
|
|
472
|
-
|
|
473
|
-
class Xai < Telnyx::Internal::Type::BaseModel
|
|
474
|
-
# @!attribute type
|
|
475
|
-
# Voice settings provider type
|
|
476
|
-
#
|
|
477
|
-
# @return [Symbol, :xai]
|
|
478
|
-
required :type, const: :xai
|
|
479
|
-
|
|
480
|
-
# @!attribute language
|
|
481
|
-
# Language code, or `auto` to detect automatically.
|
|
482
|
-
#
|
|
483
|
-
# @return [String, nil]
|
|
484
|
-
optional :language, String
|
|
485
|
-
|
|
486
|
-
# @!method initialize(language: nil, type: :xai)
|
|
487
|
-
# @param language [String] Language code, or `auto` to detect automatically.
|
|
488
|
-
#
|
|
489
|
-
# @param type [Symbol, :xai] Voice settings provider type
|
|
490
|
-
end
|
|
471
|
+
variant :xai, -> { Telnyx::XaiVoiceSettings }
|
|
491
472
|
|
|
492
473
|
# @!method self.variants
|
|
493
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
474
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
|
|
494
475
|
end
|
|
495
476
|
end
|
|
496
477
|
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class TranscriptionEngineAssemblyaiConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute interim_results
|
|
8
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
9
|
+
# be sent.
|
|
10
|
+
#
|
|
11
|
+
# @return [Boolean, nil]
|
|
12
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
13
|
+
|
|
14
|
+
# @!attribute transcription_engine
|
|
15
|
+
# Engine identifier for AssemblyAI transcription service
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine, nil]
|
|
18
|
+
optional :transcription_engine,
|
|
19
|
+
enum: -> { Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine }
|
|
20
|
+
|
|
21
|
+
# @!attribute transcription_model
|
|
22
|
+
# The model to use for transcription.
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel, nil]
|
|
25
|
+
optional :transcription_model,
|
|
26
|
+
enum: -> { Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel }
|
|
27
|
+
|
|
28
|
+
# @!method initialize(interim_results: nil, transcription_engine: nil, transcription_model: nil)
|
|
29
|
+
# Some parameter documentations has been truncated, see
|
|
30
|
+
# {Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig} for more details.
|
|
31
|
+
#
|
|
32
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
33
|
+
#
|
|
34
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine] Engine identifier for AssemblyAI transcription service
|
|
35
|
+
#
|
|
36
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel] The model to use for transcription.
|
|
37
|
+
|
|
38
|
+
# Engine identifier for AssemblyAI transcription service
|
|
39
|
+
#
|
|
40
|
+
# @see Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig#transcription_engine
|
|
41
|
+
module TranscriptionEngine
|
|
42
|
+
extend Telnyx::Internal::Type::Enum
|
|
43
|
+
|
|
44
|
+
ASSEMBLY_AI = :AssemblyAI
|
|
45
|
+
|
|
46
|
+
# @!method self.values
|
|
47
|
+
# @return [Array<Symbol>]
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# The model to use for transcription.
|
|
51
|
+
#
|
|
52
|
+
# @see Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig#transcription_model
|
|
53
|
+
module TranscriptionModel
|
|
54
|
+
extend Telnyx::Internal::Type::Enum
|
|
55
|
+
|
|
56
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Calls
|
|
6
|
+
class TranscriptionEngineXaiConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute interim_results
|
|
8
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
9
|
+
# be sent.
|
|
10
|
+
#
|
|
11
|
+
# @return [Boolean, nil]
|
|
12
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
13
|
+
|
|
14
|
+
# @!attribute language
|
|
15
|
+
# Language to use for speech recognition
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::Language, nil]
|
|
18
|
+
optional :language, enum: -> { Telnyx::Calls::TranscriptionEngineXaiConfig::Language }
|
|
19
|
+
|
|
20
|
+
# @!attribute transcription_engine
|
|
21
|
+
# Engine identifier for xAI transcription service
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine, nil]
|
|
24
|
+
optional :transcription_engine,
|
|
25
|
+
enum: -> { Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine }
|
|
26
|
+
|
|
27
|
+
# @!attribute transcription_model
|
|
28
|
+
# The model to use for transcription.
|
|
29
|
+
#
|
|
30
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionModel, nil]
|
|
31
|
+
optional :transcription_model,
|
|
32
|
+
enum: -> { Telnyx::Calls::TranscriptionEngineXaiConfig::TranscriptionModel }
|
|
33
|
+
|
|
34
|
+
# @!method initialize(interim_results: nil, language: nil, transcription_engine: nil, transcription_model: nil)
|
|
35
|
+
# Some parameter documentations has been truncated, see
|
|
36
|
+
# {Telnyx::Models::Calls::TranscriptionEngineXaiConfig} for more details.
|
|
37
|
+
#
|
|
38
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
39
|
+
#
|
|
40
|
+
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::Language] Language to use for speech recognition
|
|
41
|
+
#
|
|
42
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionEngine] Engine identifier for xAI transcription service
|
|
43
|
+
#
|
|
44
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineXaiConfig::TranscriptionModel] The model to use for transcription.
|
|
45
|
+
|
|
46
|
+
# Language to use for speech recognition
|
|
47
|
+
#
|
|
48
|
+
# @see Telnyx::Models::Calls::TranscriptionEngineXaiConfig#language
|
|
49
|
+
module Language
|
|
50
|
+
extend Telnyx::Internal::Type::Enum
|
|
51
|
+
|
|
52
|
+
AR = :ar
|
|
53
|
+
CS = :cs
|
|
54
|
+
DA = :da
|
|
55
|
+
DE = :de
|
|
56
|
+
EN = :en
|
|
57
|
+
ES = :es
|
|
58
|
+
FA = :fa
|
|
59
|
+
FIL = :fil
|
|
60
|
+
FR = :fr
|
|
61
|
+
HI = :hi
|
|
62
|
+
ID = :id
|
|
63
|
+
IT = :it
|
|
64
|
+
JA = :ja
|
|
65
|
+
KO = :ko
|
|
66
|
+
MK = :mk
|
|
67
|
+
MS = :ms
|
|
68
|
+
NL = :nl
|
|
69
|
+
PL = :pl
|
|
70
|
+
PT = :pt
|
|
71
|
+
RO = :ro
|
|
72
|
+
RU = :ru
|
|
73
|
+
SV = :sv
|
|
74
|
+
TH = :th
|
|
75
|
+
TR = :tr
|
|
76
|
+
VI = :vi
|
|
77
|
+
|
|
78
|
+
# @!method self.values
|
|
79
|
+
# @return [Array<Symbol>]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Engine identifier for xAI transcription service
|
|
83
|
+
#
|
|
84
|
+
# @see Telnyx::Models::Calls::TranscriptionEngineXaiConfig#transcription_engine
|
|
85
|
+
module TranscriptionEngine
|
|
86
|
+
extend Telnyx::Internal::Type::Enum
|
|
87
|
+
|
|
88
|
+
X_AI = :xAI
|
|
89
|
+
|
|
90
|
+
# @!method self.values
|
|
91
|
+
# @return [Array<Symbol>]
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# The model to use for transcription.
|
|
95
|
+
#
|
|
96
|
+
# @see Telnyx::Models::Calls::TranscriptionEngineXaiConfig#transcription_model
|
|
97
|
+
module TranscriptionModel
|
|
98
|
+
extend Telnyx::Internal::Type::Enum
|
|
99
|
+
|
|
100
|
+
XAI_GROK_STT = :"xai/grok-stt"
|
|
101
|
+
|
|
102
|
+
# @!method self.values
|
|
103
|
+
# @return [Array<Symbol>]
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -27,7 +27,7 @@ module Telnyx
|
|
|
27
27
|
|
|
28
28
|
# @!attribute transcription_engine_config
|
|
29
29
|
#
|
|
30
|
-
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::
|
|
30
|
+
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, nil]
|
|
31
31
|
optional :transcription_engine_config,
|
|
32
32
|
union: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig }
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ module Telnyx
|
|
|
49
49
|
#
|
|
50
50
|
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
51
51
|
#
|
|
52
|
-
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::
|
|
52
|
+
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
53
53
|
#
|
|
54
54
|
# @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
|
|
55
55
|
|
|
@@ -85,10 +85,9 @@ module Telnyx
|
|
|
85
85
|
|
|
86
86
|
variant :Azure, -> { Telnyx::Calls::TranscriptionEngineAzureConfig }
|
|
87
87
|
|
|
88
|
-
variant :xAI, -> { Telnyx::Calls::
|
|
88
|
+
variant :xAI, -> { Telnyx::Calls::TranscriptionEngineXaiConfig }
|
|
89
89
|
|
|
90
|
-
variant :AssemblyAI,
|
|
91
|
-
-> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI }
|
|
90
|
+
variant :AssemblyAI, -> { Telnyx::Calls::TranscriptionEngineAssemblyaiConfig }
|
|
92
91
|
|
|
93
92
|
variant :A, -> { Telnyx::Calls::TranscriptionEngineAConfig }
|
|
94
93
|
|
|
@@ -98,169 +97,8 @@ module Telnyx
|
|
|
98
97
|
|
|
99
98
|
variant :"deepgram/nova-3", -> { Telnyx::Calls::DeepgramNova3Config }
|
|
100
99
|
|
|
101
|
-
class XAI < Telnyx::Internal::Type::BaseModel
|
|
102
|
-
# @!attribute interim_results
|
|
103
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
104
|
-
# be sent.
|
|
105
|
-
#
|
|
106
|
-
# @return [Boolean, nil]
|
|
107
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
108
|
-
|
|
109
|
-
# @!attribute language
|
|
110
|
-
# Language to use for speech recognition
|
|
111
|
-
#
|
|
112
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language, nil]
|
|
113
|
-
optional :language,
|
|
114
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language }
|
|
115
|
-
|
|
116
|
-
# @!attribute transcription_engine
|
|
117
|
-
# Engine identifier for xAI transcription service
|
|
118
|
-
#
|
|
119
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine, nil]
|
|
120
|
-
optional :transcription_engine,
|
|
121
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine }
|
|
122
|
-
|
|
123
|
-
# @!attribute transcription_model
|
|
124
|
-
# The model to use for transcription.
|
|
125
|
-
#
|
|
126
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel, nil]
|
|
127
|
-
optional :transcription_model,
|
|
128
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel }
|
|
129
|
-
|
|
130
|
-
# @!method initialize(interim_results: nil, language: nil, transcription_engine: nil, transcription_model: nil)
|
|
131
|
-
# Some parameter documentations has been truncated, see
|
|
132
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI}
|
|
133
|
-
# for more details.
|
|
134
|
-
#
|
|
135
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
136
|
-
#
|
|
137
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language] Language to use for speech recognition
|
|
138
|
-
#
|
|
139
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine] Engine identifier for xAI transcription service
|
|
140
|
-
#
|
|
141
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel] The model to use for transcription.
|
|
142
|
-
|
|
143
|
-
# Language to use for speech recognition
|
|
144
|
-
#
|
|
145
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#language
|
|
146
|
-
module Language
|
|
147
|
-
extend Telnyx::Internal::Type::Enum
|
|
148
|
-
|
|
149
|
-
AR = :ar
|
|
150
|
-
CS = :cs
|
|
151
|
-
DA = :da
|
|
152
|
-
DE = :de
|
|
153
|
-
EN = :en
|
|
154
|
-
ES = :es
|
|
155
|
-
FA = :fa
|
|
156
|
-
FIL = :fil
|
|
157
|
-
FR = :fr
|
|
158
|
-
HI = :hi
|
|
159
|
-
ID = :id
|
|
160
|
-
IT = :it
|
|
161
|
-
JA = :ja
|
|
162
|
-
KO = :ko
|
|
163
|
-
MK = :mk
|
|
164
|
-
MS = :ms
|
|
165
|
-
NL = :nl
|
|
166
|
-
PL = :pl
|
|
167
|
-
PT = :pt
|
|
168
|
-
RO = :ro
|
|
169
|
-
RU = :ru
|
|
170
|
-
SV = :sv
|
|
171
|
-
TH = :th
|
|
172
|
-
TR = :tr
|
|
173
|
-
VI = :vi
|
|
174
|
-
|
|
175
|
-
# @!method self.values
|
|
176
|
-
# @return [Array<Symbol>]
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
# Engine identifier for xAI transcription service
|
|
180
|
-
#
|
|
181
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#transcription_engine
|
|
182
|
-
module TranscriptionEngine
|
|
183
|
-
extend Telnyx::Internal::Type::Enum
|
|
184
|
-
|
|
185
|
-
X_AI = :xAI
|
|
186
|
-
|
|
187
|
-
# @!method self.values
|
|
188
|
-
# @return [Array<Symbol>]
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
# The model to use for transcription.
|
|
192
|
-
#
|
|
193
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#transcription_model
|
|
194
|
-
module TranscriptionModel
|
|
195
|
-
extend Telnyx::Internal::Type::Enum
|
|
196
|
-
|
|
197
|
-
XAI_GROK_STT = :"xai/grok-stt"
|
|
198
|
-
|
|
199
|
-
# @!method self.values
|
|
200
|
-
# @return [Array<Symbol>]
|
|
201
|
-
end
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
class AssemblyAI < Telnyx::Internal::Type::BaseModel
|
|
205
|
-
# @!attribute interim_results
|
|
206
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
207
|
-
# be sent.
|
|
208
|
-
#
|
|
209
|
-
# @return [Boolean, nil]
|
|
210
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
211
|
-
|
|
212
|
-
# @!attribute transcription_engine
|
|
213
|
-
# Engine identifier for AssemblyAI transcription service
|
|
214
|
-
#
|
|
215
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine, nil]
|
|
216
|
-
optional :transcription_engine,
|
|
217
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine }
|
|
218
|
-
|
|
219
|
-
# @!attribute transcription_model
|
|
220
|
-
# The model to use for transcription.
|
|
221
|
-
#
|
|
222
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel, nil]
|
|
223
|
-
optional :transcription_model,
|
|
224
|
-
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel }
|
|
225
|
-
|
|
226
|
-
# @!method initialize(interim_results: nil, transcription_engine: nil, transcription_model: nil)
|
|
227
|
-
# Some parameter documentations has been truncated, see
|
|
228
|
-
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI}
|
|
229
|
-
# for more details.
|
|
230
|
-
#
|
|
231
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
232
|
-
#
|
|
233
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine] Engine identifier for AssemblyAI transcription service
|
|
234
|
-
#
|
|
235
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel] The model to use for transcription.
|
|
236
|
-
|
|
237
|
-
# Engine identifier for AssemblyAI transcription service
|
|
238
|
-
#
|
|
239
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI#transcription_engine
|
|
240
|
-
module TranscriptionEngine
|
|
241
|
-
extend Telnyx::Internal::Type::Enum
|
|
242
|
-
|
|
243
|
-
ASSEMBLY_AI = :AssemblyAI
|
|
244
|
-
|
|
245
|
-
# @!method self.values
|
|
246
|
-
# @return [Array<Symbol>]
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# The model to use for transcription.
|
|
250
|
-
#
|
|
251
|
-
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI#transcription_model
|
|
252
|
-
module TranscriptionModel
|
|
253
|
-
extend Telnyx::Internal::Type::Enum
|
|
254
|
-
|
|
255
|
-
ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
|
|
256
|
-
|
|
257
|
-
# @!method self.values
|
|
258
|
-
# @return [Array<Symbol>]
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
|
|
262
100
|
# @!method self.variants
|
|
263
|
-
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::
|
|
101
|
+
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
|
|
264
102
|
end
|
|
265
103
|
end
|
|
266
104
|
end
|