telnyx 5.122.0 → 5.123.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 +9 -0
- data/README.md +1 -1
- data/lib/telnyx/models/call_dial_params.rb +10 -276
- data/lib/telnyx/models/calls/action_answer_params.rb +10 -278
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -15
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -15
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +13 -431
- data/lib/telnyx/models/calls/transcription_engine_soniox_config.rb +91 -0
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -173
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -15
- data/lib/telnyx/models/conversation_relay_interruption_settings.rb +105 -0
- data/lib/telnyx/models/conversation_relay_language.rb +141 -0
- data/lib/telnyx/models/inworld_voice_settings.rb +28 -0
- data/lib/telnyx/models/voice_sdk_call_report_list_response.rb +9 -114
- data/lib/telnyx/models/voice_sdk_call_report_log_entry.rb +57 -0
- data/lib/telnyx/models/voice_sdk_call_report_retrieve_response.rb +9 -116
- data/lib/telnyx/models/whatsapp/user_data_retrieve_response.rb +3 -44
- data/lib/telnyx/models/whatsapp/user_data_update_response.rb +3 -44
- data/lib/telnyx/models/whatsapp/whatsapp_user_data.rb +49 -0
- data/lib/telnyx/models.rb +8 -0
- data/lib/telnyx/resources/calls/actions.rb +6 -6
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +7 -0
- data/rbi/telnyx/models/call_dial_params.rbi +13 -661
- data/rbi/telnyx/models/calls/action_answer_params.rbi +13 -659
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -30
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -30
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +17 -1016
- data/rbi/telnyx/models/calls/transcription_engine_soniox_config.rbi +184 -0
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -433
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -30
- data/rbi/telnyx/models/conversation_relay_interruption_settings.rbi +271 -0
- data/rbi/telnyx/models/conversation_relay_language.rbi +309 -0
- data/rbi/telnyx/models/inworld_voice_settings.rbi +53 -0
- data/rbi/telnyx/models/voice_sdk_call_report_list_response.rbi +9 -294
- data/rbi/telnyx/models/voice_sdk_call_report_log_entry.rbi +108 -0
- data/rbi/telnyx/models/voice_sdk_call_report_retrieve_response.rbi +9 -294
- data/rbi/telnyx/models/whatsapp/user_data_retrieve_response.rbi +6 -96
- data/rbi/telnyx/models/whatsapp/user_data_update_response.rbi +6 -94
- data/rbi/telnyx/models/whatsapp/whatsapp_user_data.rbi +82 -0
- data/rbi/telnyx/models.rbi +9 -0
- data/rbi/telnyx/resources/calls/actions.rbi +7 -10
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/sig/telnyx/models/call_dial_params.rbs +13 -236
- data/sig/telnyx/models/calls/action_answer_params.rbs +13 -236
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -11
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -11
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +19 -370
- data/sig/telnyx/models/calls/transcription_engine_soniox_config.rbs +79 -0
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +2 -175
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -11
- data/sig/telnyx/models/conversation_relay_interruption_settings.rbs +88 -0
- data/sig/telnyx/models/conversation_relay_language.rbs +121 -0
- data/sig/telnyx/models/inworld_voice_settings.rbs +26 -0
- data/sig/telnyx/models/voice_sdk_call_report_list_response.rbs +8 -121
- data/sig/telnyx/models/voice_sdk_call_report_log_entry.rbs +58 -0
- data/sig/telnyx/models/voice_sdk_call_report_retrieve_response.rbs +8 -121
- data/sig/telnyx/models/whatsapp/user_data_retrieve_response.rbs +6 -57
- data/sig/telnyx/models/whatsapp/user_data_update_response.rbs +6 -57
- data/sig/telnyx/models/whatsapp/whatsapp_user_data.rbs +54 -0
- data/sig/telnyx/models.rbs +8 -0
- data/sig/telnyx/resources/calls/actions.rbs +2 -2
- metadata +23 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '08f2b0b95a716cb370ceaaed3bce8735dd95c7b97e42bb0dc873dda598ca4646'
|
|
4
|
+
data.tar.gz: 95c50e1366b1653c9b68101d931289819294e7fa9368d7bc8090a6ca5be7784c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c6355e158a4f21b982496d824dbf735950f4832b0062e8388cf450a95d50d91de3609ef81299ac1ca18214ac90cb11dc8985a06d0e3f79d22f13ea6dfa8b712
|
|
7
|
+
data.tar.gz: 1e2d453a6237ccc3cf45ab055ff3c2f86a32f922932d86b2fc789d40ef8c6edb1ef6c03667a6c139380c60ec7cb5617e6c401d77f5899bcbb1f1dffa63bfd81d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.123.0 (2026-05-28)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.122.0...v5.123.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.122.0...v5.123.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([d4bbdba](https://github.com/team-telnyx/telnyx-ruby/commit/d4bbdba257fe8adef79223c38021855aac54bc72))
|
|
10
|
+
* **api:** manual updates ([c85c596](https://github.com/team-telnyx/telnyx-ruby/commit/c85c596b1289dde93727496fb0d5713bfa5c33be))
|
|
11
|
+
|
|
3
12
|
## 5.122.0 (2026-05-27)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v5.121.0...v5.122.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.121.0...v5.122.0)
|
data/README.md
CHANGED
|
@@ -997,9 +997,8 @@ module Telnyx
|
|
|
997
997
|
# @!attribute interruption_settings
|
|
998
998
|
# Settings for handling caller interruptions during Conversation Relay speech.
|
|
999
999
|
#
|
|
1000
|
-
# @return [Telnyx::Models::
|
|
1001
|
-
optional :interruption_settings,
|
|
1002
|
-
-> { Telnyx::CallDialParams::ConversationRelayConfig::InterruptionSettings }
|
|
1000
|
+
# @return [Telnyx::Models::ConversationRelayInterruptionSettings, nil]
|
|
1001
|
+
optional :interruption_settings, -> { Telnyx::ConversationRelayInterruptionSettings }
|
|
1003
1002
|
|
|
1004
1003
|
# @!attribute language
|
|
1005
1004
|
# Default language for both text-to-speech and speech recognition.
|
|
@@ -1010,9 +1009,8 @@ module Telnyx
|
|
|
1010
1009
|
# @!attribute languages
|
|
1011
1010
|
# Per-language TTS and transcription settings.
|
|
1012
1011
|
#
|
|
1013
|
-
# @return [Array<Telnyx::Models::
|
|
1014
|
-
optional :languages,
|
|
1015
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::CallDialParams::ConversationRelayConfig::Language] }
|
|
1012
|
+
# @return [Array<Telnyx::Models::ConversationRelayLanguage>, nil]
|
|
1013
|
+
optional :languages, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::ConversationRelayLanguage] }
|
|
1016
1014
|
|
|
1017
1015
|
# @!attribute provider
|
|
1018
1016
|
# Structured voice provider. Must be supplied together with `structured_provider`.
|
|
@@ -1088,7 +1086,7 @@ module Telnyx
|
|
|
1088
1086
|
# @!attribute voice_settings
|
|
1089
1087
|
# The settings associated with the voice selected
|
|
1090
1088
|
#
|
|
1091
|
-
# @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::
|
|
1089
|
+
# @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::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
|
|
1092
1090
|
optional :voice_settings, union: -> { Telnyx::CallDialParams::ConversationRelayConfig::VoiceSettings }
|
|
1093
1091
|
|
|
1094
1092
|
# @!method initialize(url:, custom_parameters: nil, dtmf_detection: nil, greeting: nil, interruptible: nil, interruptible_greeting: nil, interruption_settings: nil, language: nil, languages: nil, provider: nil, structured_provider: nil, transcription_engine: nil, transcription_engine_config: nil, tts_provider: nil, voice: nil, voice_settings: nil)
|
|
@@ -1114,11 +1112,11 @@ module Telnyx
|
|
|
1114
1112
|
#
|
|
1115
1113
|
# @param interruptible_greeting [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptibleGreeting] Controls when caller input can interrupt assistant speech. `any` allows speech o
|
|
1116
1114
|
#
|
|
1117
|
-
# @param interruption_settings [Telnyx::Models::
|
|
1115
|
+
# @param interruption_settings [Telnyx::Models::ConversationRelayInterruptionSettings] Settings for handling caller interruptions during Conversation Relay speech.
|
|
1118
1116
|
#
|
|
1119
1117
|
# @param language [String] Default language for both text-to-speech and speech recognition.
|
|
1120
1118
|
#
|
|
1121
|
-
# @param languages [Array<Telnyx::Models::
|
|
1119
|
+
# @param languages [Array<Telnyx::Models::ConversationRelayLanguage>] Per-language TTS and transcription settings.
|
|
1122
1120
|
#
|
|
1123
1121
|
# @param provider [String] Structured voice provider. Must be supplied together with `structured_provider`.
|
|
1124
1122
|
#
|
|
@@ -1132,7 +1130,7 @@ module Telnyx
|
|
|
1132
1130
|
#
|
|
1133
1131
|
# @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
|
|
1134
1132
|
#
|
|
1135
|
-
# @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::
|
|
1133
|
+
# @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::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
1136
1134
|
|
|
1137
1135
|
# Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
1138
1136
|
# or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
@@ -1168,259 +1166,6 @@ module Telnyx
|
|
|
1168
1166
|
# @return [Array<Symbol>]
|
|
1169
1167
|
end
|
|
1170
1168
|
|
|
1171
|
-
# @see Telnyx::Models::CallDialParams::ConversationRelayConfig#interruption_settings
|
|
1172
|
-
class InterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
1173
|
-
# @!attribute enable
|
|
1174
|
-
# Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is
|
|
1175
|
-
# equivalent to `interruptible=none`.
|
|
1176
|
-
#
|
|
1177
|
-
# @return [Boolean, nil]
|
|
1178
|
-
optional :enable, Telnyx::Internal::Type::Boolean
|
|
1179
|
-
|
|
1180
|
-
# @!attribute interruptible
|
|
1181
|
-
# Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
1182
|
-
# or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
1183
|
-
# only; `dtmf` allows DTMF only.
|
|
1184
|
-
#
|
|
1185
|
-
# @return [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings::Interruptible, nil]
|
|
1186
|
-
optional :interruptible,
|
|
1187
|
-
enum: -> { Telnyx::CallDialParams::ConversationRelayConfig::InterruptionSettings::Interruptible }
|
|
1188
|
-
|
|
1189
|
-
# @!attribute interruptible_greeting
|
|
1190
|
-
# Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
1191
|
-
# or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
1192
|
-
# only; `dtmf` allows DTMF only.
|
|
1193
|
-
#
|
|
1194
|
-
# @return [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting, nil]
|
|
1195
|
-
optional :interruptible_greeting,
|
|
1196
|
-
enum: -> { Telnyx::CallDialParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting }
|
|
1197
|
-
|
|
1198
|
-
# @!attribute welcome_greeting_interruptible
|
|
1199
|
-
# Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
1200
|
-
# or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
1201
|
-
# only; `dtmf` allows DTMF only.
|
|
1202
|
-
#
|
|
1203
|
-
# @return [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible, nil]
|
|
1204
|
-
optional :welcome_greeting_interruptible,
|
|
1205
|
-
enum: -> { Telnyx::CallDialParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible }
|
|
1206
|
-
|
|
1207
|
-
# @!method initialize(enable: nil, interruptible: nil, interruptible_greeting: nil, welcome_greeting_interruptible: nil)
|
|
1208
|
-
# Some parameter documentations has been truncated, see
|
|
1209
|
-
# {Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings}
|
|
1210
|
-
# for more details.
|
|
1211
|
-
#
|
|
1212
|
-
# Settings for handling caller interruptions during Conversation Relay speech.
|
|
1213
|
-
#
|
|
1214
|
-
# @param enable [Boolean] Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is equ
|
|
1215
|
-
#
|
|
1216
|
-
# @param interruptible [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings::Interruptible] Controls when caller input can interrupt assistant speech. `any` allows speech o
|
|
1217
|
-
#
|
|
1218
|
-
# @param interruptible_greeting [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting] Controls when caller input can interrupt assistant speech. `any` allows speech o
|
|
1219
|
-
#
|
|
1220
|
-
# @param welcome_greeting_interruptible [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible] Controls when caller input can interrupt assistant speech. `any` allows speech o
|
|
1221
|
-
|
|
1222
|
-
# Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
1223
|
-
# or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
1224
|
-
# only; `dtmf` allows DTMF only.
|
|
1225
|
-
#
|
|
1226
|
-
# @see Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings#interruptible
|
|
1227
|
-
module Interruptible
|
|
1228
|
-
extend Telnyx::Internal::Type::Enum
|
|
1229
|
-
|
|
1230
|
-
NONE = :none
|
|
1231
|
-
ANY = :any
|
|
1232
|
-
SPEECH = :speech
|
|
1233
|
-
DTMF = :dtmf
|
|
1234
|
-
|
|
1235
|
-
# @!method self.values
|
|
1236
|
-
# @return [Array<Symbol>]
|
|
1237
|
-
end
|
|
1238
|
-
|
|
1239
|
-
# Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
1240
|
-
# or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
1241
|
-
# only; `dtmf` allows DTMF only.
|
|
1242
|
-
#
|
|
1243
|
-
# @see Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings#interruptible_greeting
|
|
1244
|
-
module InterruptibleGreeting
|
|
1245
|
-
extend Telnyx::Internal::Type::Enum
|
|
1246
|
-
|
|
1247
|
-
NONE = :none
|
|
1248
|
-
ANY = :any
|
|
1249
|
-
SPEECH = :speech
|
|
1250
|
-
DTMF = :dtmf
|
|
1251
|
-
|
|
1252
|
-
# @!method self.values
|
|
1253
|
-
# @return [Array<Symbol>]
|
|
1254
|
-
end
|
|
1255
|
-
|
|
1256
|
-
# Controls when caller input can interrupt assistant speech. `any` allows speech
|
|
1257
|
-
# or DTMF interruptions; `none` disables interruptions; `speech` allows speech
|
|
1258
|
-
# only; `dtmf` allows DTMF only.
|
|
1259
|
-
#
|
|
1260
|
-
# @see Telnyx::Models::CallDialParams::ConversationRelayConfig::InterruptionSettings#welcome_greeting_interruptible
|
|
1261
|
-
module WelcomeGreetingInterruptible
|
|
1262
|
-
extend Telnyx::Internal::Type::Enum
|
|
1263
|
-
|
|
1264
|
-
NONE = :none
|
|
1265
|
-
ANY = :any
|
|
1266
|
-
SPEECH = :speech
|
|
1267
|
-
DTMF = :dtmf
|
|
1268
|
-
|
|
1269
|
-
# @!method self.values
|
|
1270
|
-
# @return [Array<Symbol>]
|
|
1271
|
-
end
|
|
1272
|
-
end
|
|
1273
|
-
|
|
1274
|
-
class Language < Telnyx::Internal::Type::BaseModel
|
|
1275
|
-
# @!attribute language
|
|
1276
|
-
# BCP 47 language tag for this language configuration.
|
|
1277
|
-
#
|
|
1278
|
-
# @return [String]
|
|
1279
|
-
required :language, String
|
|
1280
|
-
|
|
1281
|
-
# @!attribute speech_model
|
|
1282
|
-
# Conversation Relay speech model. Prefer
|
|
1283
|
-
# `transcription_engine_config.transcription_model` when configuring
|
|
1284
|
-
# speech-to-text.
|
|
1285
|
-
#
|
|
1286
|
-
# @return [String, nil]
|
|
1287
|
-
optional :speech_model, String
|
|
1288
|
-
|
|
1289
|
-
# @!attribute transcription_engine
|
|
1290
|
-
# Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
1291
|
-
# `Telnyx` are supported for backward compatibility. When provided in a
|
|
1292
|
-
# Conversation Relay language entry, Telnyx derives `transcription_provider` and
|
|
1293
|
-
# `speech_model` for that language.
|
|
1294
|
-
#
|
|
1295
|
-
# @return [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::TranscriptionEngine, nil]
|
|
1296
|
-
optional :transcription_engine,
|
|
1297
|
-
enum: -> { Telnyx::CallDialParams::ConversationRelayConfig::Language::TranscriptionEngine }
|
|
1298
|
-
|
|
1299
|
-
# @!attribute transcription_engine_config
|
|
1300
|
-
# Engine-specific transcription settings for Conversation Relay. This accepts the
|
|
1301
|
-
# same provider-specific options used by the Call Transcription Start command,
|
|
1302
|
-
# such as `transcription_model`, without requiring the engine discriminator to be
|
|
1303
|
-
# repeated inside this object.
|
|
1304
|
-
#
|
|
1305
|
-
# @return [Hash{Symbol=>Object}, nil]
|
|
1306
|
-
optional :transcription_engine_config, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
1307
|
-
|
|
1308
|
-
# @!attribute transcription_provider
|
|
1309
|
-
# Conversation Relay transcription provider name. Prefer `transcription_engine`
|
|
1310
|
-
# when configuring speech-to-text.
|
|
1311
|
-
#
|
|
1312
|
-
# @return [String, nil]
|
|
1313
|
-
optional :transcription_provider, String
|
|
1314
|
-
|
|
1315
|
-
# @!attribute tts_provider
|
|
1316
|
-
# Text-to-speech provider for this language. If omitted and `voice` is provided,
|
|
1317
|
-
# Telnyx derives the provider from the voice identifier.
|
|
1318
|
-
#
|
|
1319
|
-
# @return [String, nil]
|
|
1320
|
-
optional :tts_provider, String
|
|
1321
|
-
|
|
1322
|
-
# @!attribute voice
|
|
1323
|
-
# Voice identifier for this language.
|
|
1324
|
-
#
|
|
1325
|
-
# @return [String, nil]
|
|
1326
|
-
optional :voice, String
|
|
1327
|
-
|
|
1328
|
-
# @!attribute voice_settings
|
|
1329
|
-
# The settings associated with the voice selected
|
|
1330
|
-
#
|
|
1331
|
-
# @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::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
|
|
1332
|
-
optional :voice_settings,
|
|
1333
|
-
union: -> { Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings }
|
|
1334
|
-
|
|
1335
|
-
# @!method initialize(language:, speech_model: nil, transcription_engine: nil, transcription_engine_config: nil, transcription_provider: nil, tts_provider: nil, voice: nil, voice_settings: nil)
|
|
1336
|
-
# Some parameter documentations has been truncated, see
|
|
1337
|
-
# {Telnyx::Models::CallDialParams::ConversationRelayConfig::Language} for more
|
|
1338
|
-
# details.
|
|
1339
|
-
#
|
|
1340
|
-
# Language-specific TTS and transcription settings for Conversation Relay.
|
|
1341
|
-
#
|
|
1342
|
-
# @param language [String] BCP 47 language tag for this language configuration.
|
|
1343
|
-
#
|
|
1344
|
-
# @param speech_model [String] Conversation Relay speech model. Prefer `transcription_engine_config.transcripti
|
|
1345
|
-
#
|
|
1346
|
-
# @param transcription_engine [Symbol, Telnyx::Models::CallDialParams::ConversationRelayConfig::Language::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
1347
|
-
#
|
|
1348
|
-
# @param transcription_engine_config [Hash{Symbol=>Object}] Engine-specific transcription settings for Conversation Relay. This accepts the
|
|
1349
|
-
#
|
|
1350
|
-
# @param transcription_provider [String] Conversation Relay transcription provider name. Prefer `transcription_engine` wh
|
|
1351
|
-
#
|
|
1352
|
-
# @param tts_provider [String] Text-to-speech provider for this language. If omitted and `voice` is provided, T
|
|
1353
|
-
#
|
|
1354
|
-
# @param voice [String] Voice identifier for this language.
|
|
1355
|
-
#
|
|
1356
|
-
# @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::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
1357
|
-
|
|
1358
|
-
# Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
1359
|
-
# `Telnyx` are supported for backward compatibility. When provided in a
|
|
1360
|
-
# Conversation Relay language entry, Telnyx derives `transcription_provider` and
|
|
1361
|
-
# `speech_model` for that language.
|
|
1362
|
-
#
|
|
1363
|
-
# @see Telnyx::Models::CallDialParams::ConversationRelayConfig::Language#transcription_engine
|
|
1364
|
-
module TranscriptionEngine
|
|
1365
|
-
extend Telnyx::Internal::Type::Enum
|
|
1366
|
-
|
|
1367
|
-
GOOGLE = :Google
|
|
1368
|
-
TELNYX = :Telnyx
|
|
1369
|
-
DEEPGRAM = :Deepgram
|
|
1370
|
-
AZURE = :Azure
|
|
1371
|
-
X_AI = :xAI
|
|
1372
|
-
ASSEMBLY_AI = :AssemblyAI
|
|
1373
|
-
SPEECHMATICS = :Speechmatics
|
|
1374
|
-
SONIOX = :Soniox
|
|
1375
|
-
A = :A
|
|
1376
|
-
B = :B
|
|
1377
|
-
|
|
1378
|
-
# @!method self.values
|
|
1379
|
-
# @return [Array<Symbol>]
|
|
1380
|
-
end
|
|
1381
|
-
|
|
1382
|
-
# The settings associated with the voice selected
|
|
1383
|
-
#
|
|
1384
|
-
# @see Telnyx::Models::CallDialParams::ConversationRelayConfig::Language#voice_settings
|
|
1385
|
-
module VoiceSettings
|
|
1386
|
-
extend Telnyx::Internal::Type::Union
|
|
1387
|
-
|
|
1388
|
-
discriminator :type
|
|
1389
|
-
|
|
1390
|
-
variant :elevenlabs, -> { Telnyx::Calls::ElevenLabsVoiceSettings }
|
|
1391
|
-
|
|
1392
|
-
variant :telnyx, -> { Telnyx::Calls::TelnyxVoiceSettings }
|
|
1393
|
-
|
|
1394
|
-
variant :aws, -> { Telnyx::Calls::AwsVoiceSettings }
|
|
1395
|
-
|
|
1396
|
-
variant :minimax, -> { Telnyx::MinimaxVoiceSettings }
|
|
1397
|
-
|
|
1398
|
-
variant :azure, -> { Telnyx::AzureVoiceSettings }
|
|
1399
|
-
|
|
1400
|
-
variant :rime, -> { Telnyx::RimeVoiceSettings }
|
|
1401
|
-
|
|
1402
|
-
variant :resemble, -> { Telnyx::ResembleVoiceSettings }
|
|
1403
|
-
|
|
1404
|
-
variant :inworld, -> { Telnyx::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld }
|
|
1405
|
-
|
|
1406
|
-
variant :xai, -> { Telnyx::XaiVoiceSettings }
|
|
1407
|
-
|
|
1408
|
-
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
1409
|
-
# @!attribute type
|
|
1410
|
-
# Voice settings provider type
|
|
1411
|
-
#
|
|
1412
|
-
# @return [Symbol, :inworld]
|
|
1413
|
-
required :type, const: :inworld
|
|
1414
|
-
|
|
1415
|
-
# @!method initialize(type: :inworld)
|
|
1416
|
-
# @param type [Symbol, :inworld] Voice settings provider type
|
|
1417
|
-
end
|
|
1418
|
-
|
|
1419
|
-
# @!method self.variants
|
|
1420
|
-
# @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::CallDialParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
|
|
1421
|
-
end
|
|
1422
|
-
end
|
|
1423
|
-
|
|
1424
1169
|
# Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
1425
1170
|
# `Telnyx` are supported for backward compatibility. For Conversation Relay, use
|
|
1426
1171
|
# this field with `transcription_engine_config`; the `transcription` object is not
|
|
@@ -1467,23 +1212,12 @@ module Telnyx
|
|
|
1467
1212
|
|
|
1468
1213
|
variant :resemble, -> { Telnyx::ResembleVoiceSettings }
|
|
1469
1214
|
|
|
1470
|
-
variant :inworld, -> { Telnyx::
|
|
1215
|
+
variant :inworld, -> { Telnyx::InworldVoiceSettings }
|
|
1471
1216
|
|
|
1472
1217
|
variant :xai, -> { Telnyx::XaiVoiceSettings }
|
|
1473
1218
|
|
|
1474
|
-
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
1475
|
-
# @!attribute type
|
|
1476
|
-
# Voice settings provider type
|
|
1477
|
-
#
|
|
1478
|
-
# @return [Symbol, :inworld]
|
|
1479
|
-
required :type, const: :inworld
|
|
1480
|
-
|
|
1481
|
-
# @!method initialize(type: :inworld)
|
|
1482
|
-
# @param type [Symbol, :inworld] Voice settings provider type
|
|
1483
|
-
end
|
|
1484
|
-
|
|
1485
1219
|
# @!method self.variants
|
|
1486
|
-
# @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::
|
|
1220
|
+
# @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::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
|
|
1487
1221
|
end
|
|
1488
1222
|
end
|
|
1489
1223
|
|