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.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/call_dial_params.rb +10 -276
  5. data/lib/telnyx/models/calls/action_answer_params.rb +10 -278
  6. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -15
  7. data/lib/telnyx/models/calls/action_speak_params.rb +4 -15
  8. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +13 -431
  9. data/lib/telnyx/models/calls/transcription_engine_soniox_config.rb +91 -0
  10. data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
  11. data/lib/telnyx/models/calls/transcription_start_request.rb +5 -173
  12. data/lib/telnyx/models/conferences/action_speak_params.rb +4 -15
  13. data/lib/telnyx/models/conversation_relay_interruption_settings.rb +105 -0
  14. data/lib/telnyx/models/conversation_relay_language.rb +141 -0
  15. data/lib/telnyx/models/inworld_voice_settings.rb +28 -0
  16. data/lib/telnyx/models/voice_sdk_call_report_list_response.rb +9 -114
  17. data/lib/telnyx/models/voice_sdk_call_report_log_entry.rb +57 -0
  18. data/lib/telnyx/models/voice_sdk_call_report_retrieve_response.rb +9 -116
  19. data/lib/telnyx/models/whatsapp/user_data_retrieve_response.rb +3 -44
  20. data/lib/telnyx/models/whatsapp/user_data_update_response.rb +3 -44
  21. data/lib/telnyx/models/whatsapp/whatsapp_user_data.rb +49 -0
  22. data/lib/telnyx/models.rb +8 -0
  23. data/lib/telnyx/resources/calls/actions.rb +6 -6
  24. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  25. data/lib/telnyx/version.rb +1 -1
  26. data/lib/telnyx.rb +7 -0
  27. data/rbi/telnyx/models/call_dial_params.rbi +13 -661
  28. data/rbi/telnyx/models/calls/action_answer_params.rbi +13 -659
  29. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -30
  30. data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -30
  31. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +17 -1016
  32. data/rbi/telnyx/models/calls/transcription_engine_soniox_config.rbi +184 -0
  33. data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
  34. data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -433
  35. data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -30
  36. data/rbi/telnyx/models/conversation_relay_interruption_settings.rbi +271 -0
  37. data/rbi/telnyx/models/conversation_relay_language.rbi +309 -0
  38. data/rbi/telnyx/models/inworld_voice_settings.rbi +53 -0
  39. data/rbi/telnyx/models/voice_sdk_call_report_list_response.rbi +9 -294
  40. data/rbi/telnyx/models/voice_sdk_call_report_log_entry.rbi +108 -0
  41. data/rbi/telnyx/models/voice_sdk_call_report_retrieve_response.rbi +9 -294
  42. data/rbi/telnyx/models/whatsapp/user_data_retrieve_response.rbi +6 -96
  43. data/rbi/telnyx/models/whatsapp/user_data_update_response.rbi +6 -94
  44. data/rbi/telnyx/models/whatsapp/whatsapp_user_data.rbi +82 -0
  45. data/rbi/telnyx/models.rbi +9 -0
  46. data/rbi/telnyx/resources/calls/actions.rbi +7 -10
  47. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  48. data/sig/telnyx/models/call_dial_params.rbs +13 -236
  49. data/sig/telnyx/models/calls/action_answer_params.rbs +13 -236
  50. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -11
  51. data/sig/telnyx/models/calls/action_speak_params.rbs +1 -11
  52. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +19 -370
  53. data/sig/telnyx/models/calls/transcription_engine_soniox_config.rbs +79 -0
  54. data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
  55. data/sig/telnyx/models/calls/transcription_start_request.rbs +2 -175
  56. data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -11
  57. data/sig/telnyx/models/conversation_relay_interruption_settings.rbs +88 -0
  58. data/sig/telnyx/models/conversation_relay_language.rbs +121 -0
  59. data/sig/telnyx/models/inworld_voice_settings.rbs +26 -0
  60. data/sig/telnyx/models/voice_sdk_call_report_list_response.rbs +8 -121
  61. data/sig/telnyx/models/voice_sdk_call_report_log_entry.rbs +58 -0
  62. data/sig/telnyx/models/voice_sdk_call_report_retrieve_response.rbs +8 -121
  63. data/sig/telnyx/models/whatsapp/user_data_retrieve_response.rbs +6 -57
  64. data/sig/telnyx/models/whatsapp/user_data_update_response.rbs +6 -57
  65. data/sig/telnyx/models/whatsapp/whatsapp_user_data.rbs +54 -0
  66. data/sig/telnyx/models.rbs +8 -0
  67. data/sig/telnyx/resources/calls/actions.rbs +2 -2
  68. metadata +23 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f4dc74346def73952145b566b7c7592ea87e36ffb011cd293455d96dd3bd38e
4
- data.tar.gz: 1de45157e62dd00dd2c443fc9a52dde1c39556e33fa8c1a0e217ddaec8efa95d
3
+ metadata.gz: '08f2b0b95a716cb370ceaaed3bce8735dd95c7b97e42bb0dc873dda598ca4646'
4
+ data.tar.gz: 95c50e1366b1653c9b68101d931289819294e7fa9368d7bc8090a6ca5be7784c
5
5
  SHA512:
6
- metadata.gz: 657adaca7d4b1b83b3f398ba8fd3db591f2db6b12338df645a6747b090b774fb1675828fc5523538ea4ac493c6d708d35dd95291c0947d0429bb2c19dc1c3269
7
- data.tar.gz: 1da2f610f3ca95133f0ec9f451a842c6a069035c59847fee2b64284b62ea0ebba2bcd079b748aedf6cc69a9ad62a09ba72b6ede049551369ca85aa845e2e8cfd
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
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.122.0"
27
+ gem "telnyx", "~> 5.123.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -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::CallDialParams::ConversationRelayConfig::InterruptionSettings, nil]
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::CallDialParams::ConversationRelayConfig::Language>, nil]
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::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
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::CallDialParams::ConversationRelayConfig::InterruptionSettings] Settings for handling caller interruptions during Conversation Relay speech.
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::CallDialParams::ConversationRelayConfig::Language>] Per-language TTS and transcription settings.
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::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
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::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld }
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::CallDialParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
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