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
|
@@ -13,14 +13,25 @@ module Telnyx
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
# The voice to be used by the voice assistant. Check the full list of
|
|
16
|
-
# [available voices](https://developers.telnyx.com/docs/tts
|
|
16
|
+
# [available voices](https://developers.telnyx.com/docs/voice/tts/available-voices)
|
|
17
17
|
# via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
|
|
18
18
|
# key as an integration secret under the `api_key_ref` field. See
|
|
19
19
|
# [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
20
20
|
# for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
|
|
21
21
|
# Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
|
|
22
22
|
# (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
|
|
23
|
-
#
|
|
23
|
+
# For ElevenLabs voices, use `ElevenLabs.<model_id>.<voice_id>` (e.g.
|
|
24
|
+
# `ElevenLabs.eleven_flash_v2_5.cgSgspJ2msm6clMCkdW9`), with the `ElevenLabs`
|
|
25
|
+
# prefix written exactly as shown. The voice must exist in the ElevenLabs account
|
|
26
|
+
# behind `api_key_ref`, and `<model_id>` must be a model that voice supports: list
|
|
27
|
+
# the exact identifiers with the
|
|
28
|
+
# [Voices API](https://developers.telnyx.com/api-reference/text-to-speech-commands/list-available-voices)
|
|
29
|
+
# by passing `provider=elevenlabs` and your ElevenLabs API key. Voices that list
|
|
30
|
+
# no models, such as instant clones and designed voices, also accept
|
|
31
|
+
# `ElevenLabs.<voice_id>`, which uses ElevenLabs' default model. With `eleven_v3`
|
|
32
|
+
# and `eleven_v4` models only `temperature` is applied; `similarity_boost`,
|
|
33
|
+
# `style`, `use_speaker_boost` and `voice_speed` have no effect. The voice portion
|
|
34
|
+
# of the identifier supports
|
|
24
35
|
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
25
36
|
# using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
|
|
26
37
|
# resolved at call time from your dynamic variables webhook, allowing you to
|
|
@@ -45,9 +56,9 @@ module Telnyx
|
|
|
45
56
|
returns(
|
|
46
57
|
T.nilable(
|
|
47
58
|
T.any(
|
|
48
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
49
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
50
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
59
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
|
|
60
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
|
|
61
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName
|
|
51
62
|
)
|
|
52
63
|
)
|
|
53
64
|
)
|
|
@@ -58,9 +69,9 @@ module Telnyx
|
|
|
58
69
|
params(
|
|
59
70
|
background_audio:
|
|
60
71
|
T.any(
|
|
61
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
62
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
63
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
72
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::OrHash,
|
|
73
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::OrHash,
|
|
74
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::OrHash
|
|
64
75
|
)
|
|
65
76
|
).void
|
|
66
77
|
end
|
|
@@ -101,14 +112,6 @@ module Telnyx
|
|
|
101
112
|
sig { params(similarity_boost: Float).void }
|
|
102
113
|
attr_writer :similarity_boost
|
|
103
114
|
|
|
104
|
-
# Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
|
|
105
|
-
# values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
|
|
106
|
-
sig { returns(T.nilable(Float)) }
|
|
107
|
-
attr_reader :speed
|
|
108
|
-
|
|
109
|
-
sig { params(speed: Float).void }
|
|
110
|
-
attr_writer :speed
|
|
111
|
-
|
|
112
115
|
# Determines the style exaggeration of the voice. Amplifies speaker style but
|
|
113
116
|
# consumes additional resources when set above 0. Only applicable when using
|
|
114
117
|
# ElevenLabs.
|
|
@@ -120,7 +123,9 @@ module Telnyx
|
|
|
120
123
|
|
|
121
124
|
# Determines how stable the voice is and the randomness between each generation.
|
|
122
125
|
# Lower values create a broader emotional range; higher values produce more
|
|
123
|
-
# consistent, monotonous output. Only applicable when using ElevenLabs
|
|
126
|
+
# consistent, monotonous output. Only applicable when using ElevenLabs, where it
|
|
127
|
+
# sets the voice's stability. When unset, the stability saved on the voice in your
|
|
128
|
+
# ElevenLabs account applies.
|
|
124
129
|
sig { returns(T.nilable(Float)) }
|
|
125
130
|
attr_reader :temperature
|
|
126
131
|
|
|
@@ -135,8 +140,8 @@ module Telnyx
|
|
|
135
140
|
returns(
|
|
136
141
|
T.nilable(
|
|
137
142
|
T.any(
|
|
138
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
139
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
143
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
|
|
144
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL
|
|
140
145
|
)
|
|
141
146
|
)
|
|
142
147
|
)
|
|
@@ -154,7 +159,9 @@ module Telnyx
|
|
|
154
159
|
# The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
|
|
155
160
|
# numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
|
|
156
161
|
# `Ultra` voices; values outside this range are rejected by the synthesis engine.
|
|
157
|
-
# Soniox voices support a speed range of 0.7 to 1.3.
|
|
162
|
+
# Soniox voices support a speed range of 0.7 to 1.3. For ElevenLabs voices this
|
|
163
|
+
# sets the ElevenLabs speed, limited to 0.7 to 1.2: values outside that range are
|
|
164
|
+
# clamped to the nearest bound.
|
|
158
165
|
sig { returns(T.nilable(Float)) }
|
|
159
166
|
attr_reader :voice_speed
|
|
160
167
|
|
|
@@ -167,9 +174,9 @@ module Telnyx
|
|
|
167
174
|
api_key_ref: String,
|
|
168
175
|
background_audio:
|
|
169
176
|
T.any(
|
|
170
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
171
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
172
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
177
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::OrHash,
|
|
178
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::OrHash,
|
|
179
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::OrHash
|
|
173
180
|
),
|
|
174
181
|
expressive_mode: T::Boolean,
|
|
175
182
|
language: T.nilable(String),
|
|
@@ -178,14 +185,13 @@ module Telnyx
|
|
|
178
185
|
Telnyx::AI::InferenceEmbeddingVoiceSettings::LanguageBoost::OrSymbol
|
|
179
186
|
),
|
|
180
187
|
similarity_boost: Float,
|
|
181
|
-
speed: Float,
|
|
182
188
|
style: Float,
|
|
183
189
|
temperature: Float,
|
|
184
190
|
tool_call_audio:
|
|
185
191
|
T.nilable(
|
|
186
192
|
T.any(
|
|
187
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
188
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
193
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::OrHash,
|
|
194
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::OrHash
|
|
189
195
|
)
|
|
190
196
|
),
|
|
191
197
|
use_speaker_boost: T::Boolean,
|
|
@@ -194,14 +200,25 @@ module Telnyx
|
|
|
194
200
|
end
|
|
195
201
|
def self.new(
|
|
196
202
|
# The voice to be used by the voice assistant. Check the full list of
|
|
197
|
-
# [available voices](https://developers.telnyx.com/docs/tts
|
|
203
|
+
# [available voices](https://developers.telnyx.com/docs/voice/tts/available-voices)
|
|
198
204
|
# via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
|
|
199
205
|
# key as an integration secret under the `api_key_ref` field. See
|
|
200
206
|
# [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
201
207
|
# for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
|
|
202
208
|
# Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
|
|
203
209
|
# (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
|
|
204
|
-
#
|
|
210
|
+
# For ElevenLabs voices, use `ElevenLabs.<model_id>.<voice_id>` (e.g.
|
|
211
|
+
# `ElevenLabs.eleven_flash_v2_5.cgSgspJ2msm6clMCkdW9`), with the `ElevenLabs`
|
|
212
|
+
# prefix written exactly as shown. The voice must exist in the ElevenLabs account
|
|
213
|
+
# behind `api_key_ref`, and `<model_id>` must be a model that voice supports: list
|
|
214
|
+
# the exact identifiers with the
|
|
215
|
+
# [Voices API](https://developers.telnyx.com/api-reference/text-to-speech-commands/list-available-voices)
|
|
216
|
+
# by passing `provider=elevenlabs` and your ElevenLabs API key. Voices that list
|
|
217
|
+
# no models, such as instant clones and designed voices, also accept
|
|
218
|
+
# `ElevenLabs.<voice_id>`, which uses ElevenLabs' default model. With `eleven_v3`
|
|
219
|
+
# and `eleven_v4` models only `temperature` is applied; `similarity_boost`,
|
|
220
|
+
# `style`, `use_speaker_boost` and `voice_speed` have no effect. The voice portion
|
|
221
|
+
# of the identifier supports
|
|
205
222
|
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
206
223
|
# using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
|
|
207
224
|
# resolved at call time from your dynamic variables webhook, allowing you to
|
|
@@ -231,16 +248,15 @@ module Telnyx
|
|
|
231
248
|
# Determines how closely the AI should adhere to the original voice when
|
|
232
249
|
# attempting to replicate it. Only applicable when using ElevenLabs.
|
|
233
250
|
similarity_boost: nil,
|
|
234
|
-
# Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
|
|
235
|
-
# values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
|
|
236
|
-
speed: nil,
|
|
237
251
|
# Determines the style exaggeration of the voice. Amplifies speaker style but
|
|
238
252
|
# consumes additional resources when set above 0. Only applicable when using
|
|
239
253
|
# ElevenLabs.
|
|
240
254
|
style: nil,
|
|
241
255
|
# Determines how stable the voice is and the randomness between each generation.
|
|
242
256
|
# Lower values create a broader emotional range; higher values produce more
|
|
243
|
-
# consistent, monotonous output. Only applicable when using ElevenLabs
|
|
257
|
+
# consistent, monotonous output. Only applicable when using ElevenLabs, where it
|
|
258
|
+
# sets the voice's stability. When unset, the stability saved on the voice in your
|
|
259
|
+
# ElevenLabs account applies.
|
|
244
260
|
temperature: nil,
|
|
245
261
|
# Optional sound played to the caller while the assistant runs a tool (for example
|
|
246
262
|
# a webhook or MCP tool). It replaces the background audio until the tool
|
|
@@ -253,7 +269,9 @@ module Telnyx
|
|
|
253
269
|
# The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
|
|
254
270
|
# numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
|
|
255
271
|
# `Ultra` voices; values outside this range are rejected by the synthesis engine.
|
|
256
|
-
# Soniox voices support a speed range of 0.7 to 1.3.
|
|
272
|
+
# Soniox voices support a speed range of 0.7 to 1.3. For ElevenLabs voices this
|
|
273
|
+
# sets the ElevenLabs speed, limited to 0.7 to 1.2: values outside that range are
|
|
274
|
+
# clamped to the nearest bound.
|
|
257
275
|
voice_speed: nil
|
|
258
276
|
)
|
|
259
277
|
end
|
|
@@ -265,9 +283,9 @@ module Telnyx
|
|
|
265
283
|
api_key_ref: String,
|
|
266
284
|
background_audio:
|
|
267
285
|
T.any(
|
|
268
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
269
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
270
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
286
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
|
|
287
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
|
|
288
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName
|
|
271
289
|
),
|
|
272
290
|
expressive_mode: T::Boolean,
|
|
273
291
|
language: T.nilable(String),
|
|
@@ -276,14 +294,13 @@ module Telnyx
|
|
|
276
294
|
Telnyx::AI::InferenceEmbeddingVoiceSettings::LanguageBoost::OrSymbol
|
|
277
295
|
),
|
|
278
296
|
similarity_boost: Float,
|
|
279
|
-
speed: Float,
|
|
280
297
|
style: Float,
|
|
281
298
|
temperature: Float,
|
|
282
299
|
tool_call_audio:
|
|
283
300
|
T.nilable(
|
|
284
301
|
T.any(
|
|
285
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
286
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
302
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
|
|
303
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL
|
|
287
304
|
)
|
|
288
305
|
),
|
|
289
306
|
use_speaker_boost: T::Boolean,
|
|
@@ -303,17 +320,17 @@ module Telnyx
|
|
|
303
320
|
Variants =
|
|
304
321
|
T.type_alias do
|
|
305
322
|
T.any(
|
|
306
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
307
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
308
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
323
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
|
|
324
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
|
|
325
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName
|
|
309
326
|
)
|
|
310
327
|
end
|
|
311
328
|
|
|
312
|
-
class
|
|
329
|
+
class PredefinedMedia < Telnyx::Internal::Type::BaseModel
|
|
313
330
|
OrHash =
|
|
314
331
|
T.type_alias do
|
|
315
332
|
T.any(
|
|
316
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
333
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia,
|
|
317
334
|
Telnyx::Internal::AnyHash
|
|
318
335
|
)
|
|
319
336
|
end
|
|
@@ -321,7 +338,7 @@ module Telnyx
|
|
|
321
338
|
# Select from predefined media options.
|
|
322
339
|
sig do
|
|
323
340
|
returns(
|
|
324
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
341
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::OrSymbol
|
|
325
342
|
)
|
|
326
343
|
end
|
|
327
344
|
attr_accessor :type
|
|
@@ -329,7 +346,7 @@ module Telnyx
|
|
|
329
346
|
# The predefined media to use. `silence` disables background audio.
|
|
330
347
|
sig do
|
|
331
348
|
returns(
|
|
332
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
349
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::OrSymbol
|
|
333
350
|
)
|
|
334
351
|
end
|
|
335
352
|
attr_accessor :value
|
|
@@ -345,9 +362,9 @@ module Telnyx
|
|
|
345
362
|
sig do
|
|
346
363
|
params(
|
|
347
364
|
type:
|
|
348
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
365
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::OrSymbol,
|
|
349
366
|
value:
|
|
350
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
367
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::OrSymbol,
|
|
351
368
|
volume: Float
|
|
352
369
|
).returns(T.attached_class)
|
|
353
370
|
end
|
|
@@ -366,9 +383,9 @@ module Telnyx
|
|
|
366
383
|
override.returns(
|
|
367
384
|
{
|
|
368
385
|
type:
|
|
369
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
386
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::OrSymbol,
|
|
370
387
|
value:
|
|
371
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
388
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::OrSymbol,
|
|
372
389
|
volume: Float
|
|
373
390
|
}
|
|
374
391
|
)
|
|
@@ -384,7 +401,7 @@ module Telnyx
|
|
|
384
401
|
T.type_alias do
|
|
385
402
|
T.all(
|
|
386
403
|
Symbol,
|
|
387
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
404
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type
|
|
388
405
|
)
|
|
389
406
|
end
|
|
390
407
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -392,13 +409,13 @@ module Telnyx
|
|
|
392
409
|
PREDEFINED_MEDIA =
|
|
393
410
|
T.let(
|
|
394
411
|
:predefined_media,
|
|
395
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
412
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::TaggedSymbol
|
|
396
413
|
)
|
|
397
414
|
|
|
398
415
|
sig do
|
|
399
416
|
override.returns(
|
|
400
417
|
T::Array[
|
|
401
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
418
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Type::TaggedSymbol
|
|
402
419
|
]
|
|
403
420
|
)
|
|
404
421
|
end
|
|
@@ -414,7 +431,7 @@ module Telnyx
|
|
|
414
431
|
T.type_alias do
|
|
415
432
|
T.all(
|
|
416
433
|
Symbol,
|
|
417
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
434
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value
|
|
418
435
|
)
|
|
419
436
|
end
|
|
420
437
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -422,18 +439,18 @@ module Telnyx
|
|
|
422
439
|
SILENCE =
|
|
423
440
|
T.let(
|
|
424
441
|
:silence,
|
|
425
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
442
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::TaggedSymbol
|
|
426
443
|
)
|
|
427
444
|
OFFICE =
|
|
428
445
|
T.let(
|
|
429
446
|
:office,
|
|
430
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
447
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::TaggedSymbol
|
|
431
448
|
)
|
|
432
449
|
|
|
433
450
|
sig do
|
|
434
451
|
override.returns(
|
|
435
452
|
T::Array[
|
|
436
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
453
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::PredefinedMedia::Value::TaggedSymbol
|
|
437
454
|
]
|
|
438
455
|
)
|
|
439
456
|
end
|
|
@@ -442,11 +459,11 @@ module Telnyx
|
|
|
442
459
|
end
|
|
443
460
|
end
|
|
444
461
|
|
|
445
|
-
class
|
|
462
|
+
class MediaURL < Telnyx::Internal::Type::BaseModel
|
|
446
463
|
OrHash =
|
|
447
464
|
T.type_alias do
|
|
448
465
|
T.any(
|
|
449
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
466
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL,
|
|
450
467
|
Telnyx::Internal::AnyHash
|
|
451
468
|
)
|
|
452
469
|
end
|
|
@@ -454,7 +471,7 @@ module Telnyx
|
|
|
454
471
|
# Provide a direct URL to an MP3 file. The audio will loop during the call.
|
|
455
472
|
sig do
|
|
456
473
|
returns(
|
|
457
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
474
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::OrSymbol
|
|
458
475
|
)
|
|
459
476
|
end
|
|
460
477
|
attr_accessor :type
|
|
@@ -466,7 +483,7 @@ module Telnyx
|
|
|
466
483
|
sig do
|
|
467
484
|
params(
|
|
468
485
|
type:
|
|
469
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
486
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::OrSymbol,
|
|
470
487
|
value: String
|
|
471
488
|
).returns(T.attached_class)
|
|
472
489
|
end
|
|
@@ -482,7 +499,7 @@ module Telnyx
|
|
|
482
499
|
override.returns(
|
|
483
500
|
{
|
|
484
501
|
type:
|
|
485
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
502
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::OrSymbol,
|
|
486
503
|
value: String
|
|
487
504
|
}
|
|
488
505
|
)
|
|
@@ -498,7 +515,7 @@ module Telnyx
|
|
|
498
515
|
T.type_alias do
|
|
499
516
|
T.all(
|
|
500
517
|
Symbol,
|
|
501
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
518
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type
|
|
502
519
|
)
|
|
503
520
|
end
|
|
504
521
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -506,13 +523,13 @@ module Telnyx
|
|
|
506
523
|
MEDIA_URL =
|
|
507
524
|
T.let(
|
|
508
525
|
:media_url,
|
|
509
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
526
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::TaggedSymbol
|
|
510
527
|
)
|
|
511
528
|
|
|
512
529
|
sig do
|
|
513
530
|
override.returns(
|
|
514
531
|
T::Array[
|
|
515
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
532
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaURL::Type::TaggedSymbol
|
|
516
533
|
]
|
|
517
534
|
)
|
|
518
535
|
end
|
|
@@ -521,11 +538,11 @@ module Telnyx
|
|
|
521
538
|
end
|
|
522
539
|
end
|
|
523
540
|
|
|
524
|
-
class
|
|
541
|
+
class MediaName < Telnyx::Internal::Type::BaseModel
|
|
525
542
|
OrHash =
|
|
526
543
|
T.type_alias do
|
|
527
544
|
T.any(
|
|
528
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
545
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName,
|
|
529
546
|
Telnyx::Internal::AnyHash
|
|
530
547
|
)
|
|
531
548
|
end
|
|
@@ -533,7 +550,7 @@ module Telnyx
|
|
|
533
550
|
# Reference a previously uploaded media by its name from Telnyx Media Storage.
|
|
534
551
|
sig do
|
|
535
552
|
returns(
|
|
536
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
553
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::OrSymbol
|
|
537
554
|
)
|
|
538
555
|
end
|
|
539
556
|
attr_accessor :type
|
|
@@ -547,7 +564,7 @@ module Telnyx
|
|
|
547
564
|
sig do
|
|
548
565
|
params(
|
|
549
566
|
type:
|
|
550
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
567
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::OrSymbol,
|
|
551
568
|
value: String
|
|
552
569
|
).returns(T.attached_class)
|
|
553
570
|
end
|
|
@@ -565,7 +582,7 @@ module Telnyx
|
|
|
565
582
|
override.returns(
|
|
566
583
|
{
|
|
567
584
|
type:
|
|
568
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
585
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::OrSymbol,
|
|
569
586
|
value: String
|
|
570
587
|
}
|
|
571
588
|
)
|
|
@@ -581,7 +598,7 @@ module Telnyx
|
|
|
581
598
|
T.type_alias do
|
|
582
599
|
T.all(
|
|
583
600
|
Symbol,
|
|
584
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
601
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type
|
|
585
602
|
)
|
|
586
603
|
end
|
|
587
604
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -589,13 +606,13 @@ module Telnyx
|
|
|
589
606
|
MEDIA_NAME =
|
|
590
607
|
T.let(
|
|
591
608
|
:media_name,
|
|
592
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
609
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::TaggedSymbol
|
|
593
610
|
)
|
|
594
611
|
|
|
595
612
|
sig do
|
|
596
613
|
override.returns(
|
|
597
614
|
T::Array[
|
|
598
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::
|
|
615
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::BackgroundAudio::MediaName::Type::TaggedSymbol
|
|
599
616
|
]
|
|
600
617
|
)
|
|
601
618
|
end
|
|
@@ -857,16 +874,16 @@ module Telnyx
|
|
|
857
874
|
Variants =
|
|
858
875
|
T.type_alias do
|
|
859
876
|
T.any(
|
|
860
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
861
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
877
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
|
|
878
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL
|
|
862
879
|
)
|
|
863
880
|
end
|
|
864
881
|
|
|
865
|
-
class
|
|
882
|
+
class PredefinedMedia < Telnyx::Internal::Type::BaseModel
|
|
866
883
|
OrHash =
|
|
867
884
|
T.type_alias do
|
|
868
885
|
T.any(
|
|
869
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
886
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia,
|
|
870
887
|
Telnyx::Internal::AnyHash
|
|
871
888
|
)
|
|
872
889
|
end
|
|
@@ -874,7 +891,7 @@ module Telnyx
|
|
|
874
891
|
# Select from predefined media options.
|
|
875
892
|
sig do
|
|
876
893
|
returns(
|
|
877
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
894
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::OrSymbol
|
|
878
895
|
)
|
|
879
896
|
end
|
|
880
897
|
attr_accessor :type
|
|
@@ -882,7 +899,7 @@ module Telnyx
|
|
|
882
899
|
# The predefined media to use. `typing` plays a keyboard typing sound.
|
|
883
900
|
sig do
|
|
884
901
|
returns(
|
|
885
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
902
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::OrSymbol
|
|
886
903
|
)
|
|
887
904
|
end
|
|
888
905
|
attr_accessor :value
|
|
@@ -898,9 +915,9 @@ module Telnyx
|
|
|
898
915
|
sig do
|
|
899
916
|
params(
|
|
900
917
|
type:
|
|
901
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
918
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::OrSymbol,
|
|
902
919
|
value:
|
|
903
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
920
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::OrSymbol,
|
|
904
921
|
volume: Float
|
|
905
922
|
).returns(T.attached_class)
|
|
906
923
|
end
|
|
@@ -919,9 +936,9 @@ module Telnyx
|
|
|
919
936
|
override.returns(
|
|
920
937
|
{
|
|
921
938
|
type:
|
|
922
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
939
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::OrSymbol,
|
|
923
940
|
value:
|
|
924
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
941
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::OrSymbol,
|
|
925
942
|
volume: Float
|
|
926
943
|
}
|
|
927
944
|
)
|
|
@@ -937,7 +954,7 @@ module Telnyx
|
|
|
937
954
|
T.type_alias do
|
|
938
955
|
T.all(
|
|
939
956
|
Symbol,
|
|
940
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
957
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type
|
|
941
958
|
)
|
|
942
959
|
end
|
|
943
960
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -945,13 +962,13 @@ module Telnyx
|
|
|
945
962
|
PREDEFINED_MEDIA =
|
|
946
963
|
T.let(
|
|
947
964
|
:predefined_media,
|
|
948
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
965
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::TaggedSymbol
|
|
949
966
|
)
|
|
950
967
|
|
|
951
968
|
sig do
|
|
952
969
|
override.returns(
|
|
953
970
|
T::Array[
|
|
954
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
971
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Type::TaggedSymbol
|
|
955
972
|
]
|
|
956
973
|
)
|
|
957
974
|
end
|
|
@@ -967,7 +984,7 @@ module Telnyx
|
|
|
967
984
|
T.type_alias do
|
|
968
985
|
T.all(
|
|
969
986
|
Symbol,
|
|
970
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
987
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value
|
|
971
988
|
)
|
|
972
989
|
end
|
|
973
990
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -975,13 +992,13 @@ module Telnyx
|
|
|
975
992
|
TYPING =
|
|
976
993
|
T.let(
|
|
977
994
|
:typing,
|
|
978
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
995
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::TaggedSymbol
|
|
979
996
|
)
|
|
980
997
|
|
|
981
998
|
sig do
|
|
982
999
|
override.returns(
|
|
983
1000
|
T::Array[
|
|
984
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1001
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::PredefinedMedia::Value::TaggedSymbol
|
|
985
1002
|
]
|
|
986
1003
|
)
|
|
987
1004
|
end
|
|
@@ -990,11 +1007,11 @@ module Telnyx
|
|
|
990
1007
|
end
|
|
991
1008
|
end
|
|
992
1009
|
|
|
993
|
-
class
|
|
1010
|
+
class MediaURL < Telnyx::Internal::Type::BaseModel
|
|
994
1011
|
OrHash =
|
|
995
1012
|
T.type_alias do
|
|
996
1013
|
T.any(
|
|
997
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1014
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL,
|
|
998
1015
|
Telnyx::Internal::AnyHash
|
|
999
1016
|
)
|
|
1000
1017
|
end
|
|
@@ -1002,7 +1019,7 @@ module Telnyx
|
|
|
1002
1019
|
# Provide a direct URL to an MP3 file. The audio loops while the tool runs.
|
|
1003
1020
|
sig do
|
|
1004
1021
|
returns(
|
|
1005
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1022
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::OrSymbol
|
|
1006
1023
|
)
|
|
1007
1024
|
end
|
|
1008
1025
|
attr_accessor :type
|
|
@@ -1014,7 +1031,7 @@ module Telnyx
|
|
|
1014
1031
|
sig do
|
|
1015
1032
|
params(
|
|
1016
1033
|
type:
|
|
1017
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1034
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::OrSymbol,
|
|
1018
1035
|
value: String
|
|
1019
1036
|
).returns(T.attached_class)
|
|
1020
1037
|
end
|
|
@@ -1030,7 +1047,7 @@ module Telnyx
|
|
|
1030
1047
|
override.returns(
|
|
1031
1048
|
{
|
|
1032
1049
|
type:
|
|
1033
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1050
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::OrSymbol,
|
|
1034
1051
|
value: String
|
|
1035
1052
|
}
|
|
1036
1053
|
)
|
|
@@ -1046,7 +1063,7 @@ module Telnyx
|
|
|
1046
1063
|
T.type_alias do
|
|
1047
1064
|
T.all(
|
|
1048
1065
|
Symbol,
|
|
1049
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1066
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type
|
|
1050
1067
|
)
|
|
1051
1068
|
end
|
|
1052
1069
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1054,13 +1071,13 @@ module Telnyx
|
|
|
1054
1071
|
MEDIA_URL =
|
|
1055
1072
|
T.let(
|
|
1056
1073
|
:media_url,
|
|
1057
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1074
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::TaggedSymbol
|
|
1058
1075
|
)
|
|
1059
1076
|
|
|
1060
1077
|
sig do
|
|
1061
1078
|
override.returns(
|
|
1062
1079
|
T::Array[
|
|
1063
|
-
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::
|
|
1080
|
+
Telnyx::AI::InferenceEmbeddingVoiceSettings::ToolCallAudio::MediaURL::Type::TaggedSymbol
|
|
1064
1081
|
]
|
|
1065
1082
|
)
|
|
1066
1083
|
end
|