telnyx 5.24.0 → 5.26.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 +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +6 -11
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +49 -9
- data/lib/telnyx/models/calls/action_speak_params.rb +49 -9
- data/lib/telnyx/models/conferences/action_speak_params.rb +49 -9
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/assistant_tool.rbi +8 -19
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +91 -17
- data/rbi/telnyx/models/calls/action_speak_params.rbi +91 -17
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +91 -17
- data/rbi/telnyx/resources/calls/actions.rbi +22 -14
- data/rbi/telnyx/resources/conferences/actions.rbi +11 -7
- data/sig/telnyx/models/ai/assistant_tool.rbs +3 -7
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +34 -0
- data/sig/telnyx/models/calls/action_speak_params.rbs +34 -0
- data/sig/telnyx/models/conferences/action_speak_params.rbs +34 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd16ff162bf938053d3099ebabba8f6475874cef06d12c6ada44643fe7615cfb
|
|
4
|
+
data.tar.gz: c5b6865f908ea809d85b074983d510f96545dbc43182ccd46fd704149ecba17f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 246804d81ddee3d80c52d0267618e3b666c138f64eced6bb800a2769ac946d1a715ac45c643897b6e30e18ec1b7a8ce2c47d8b1e4464d5a66f48a8eb5e3d8da3
|
|
7
|
+
data.tar.gz: f2f0f48bedceacc9a74c633cd18ce942ca92e1d7f882b47c98d5fe0e0f5d4d93a4109d66d714f35b607eca133840e3ca575567782aee34a7d88253e712482b66
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.26.0 (2026-02-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.25.0...v5.26.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.25.0...v5.26.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Align transfer tool AMD spec with portal: premium mode, drop continue actions ([f1e3291](https://github.com/team-telnyx/telnyx-ruby/commit/f1e3291582767280a76f44e0b06f699bf79413be))
|
|
10
|
+
|
|
11
|
+
## 5.25.0 (2026-02-17)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.24.0...v5.25.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.24.0...v5.25.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add Minimax and Resemble voice providers for speak commands ([1d62d0c](https://github.com/team-telnyx/telnyx-ruby/commit/1d62d0cf59a2640267647cd0a843e1c1c0a0bf91))
|
|
18
|
+
|
|
3
19
|
## 5.24.0 (2026-02-13)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.23.0...v5.24.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.23.0...v5.24.0)
|
data/README.md
CHANGED
|
@@ -235,9 +235,8 @@ module Telnyx
|
|
|
235
235
|
-> { Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::DetectionConfig }
|
|
236
236
|
|
|
237
237
|
# @!attribute detection_mode
|
|
238
|
-
# The AMD detection mode to use. '
|
|
239
|
-
#
|
|
240
|
-
# AMD detection.
|
|
238
|
+
# The AMD detection mode to use. 'premium' enables premium answering machine
|
|
239
|
+
# detection. 'disabled' turns off AMD detection.
|
|
241
240
|
#
|
|
242
241
|
# @return [Symbol, Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::DetectionMode, nil]
|
|
243
242
|
optional :detection_mode,
|
|
@@ -261,7 +260,7 @@ module Telnyx
|
|
|
261
260
|
#
|
|
262
261
|
# @param detection_config [Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::DetectionConfig] Advanced AMD detection configuration parameters. All values are optional - Telny
|
|
263
262
|
#
|
|
264
|
-
# @param detection_mode [Symbol, Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::DetectionMode] The AMD detection mode to use. '
|
|
263
|
+
# @param detection_mode [Symbol, Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::DetectionMode] The AMD detection mode to use. 'premium' enables premium answering machine detec
|
|
265
264
|
#
|
|
266
265
|
# @param on_voicemail_detected [Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected] Action to take when voicemail is detected on the transferred call.
|
|
267
266
|
|
|
@@ -365,16 +364,15 @@ module Telnyx
|
|
|
365
364
|
# @param total_analysis_time_millis [Integer] Total time allowed for AMD analysis.
|
|
366
365
|
end
|
|
367
366
|
|
|
368
|
-
# The AMD detection mode to use. '
|
|
369
|
-
#
|
|
370
|
-
# AMD detection.
|
|
367
|
+
# The AMD detection mode to use. 'premium' enables premium answering machine
|
|
368
|
+
# detection. 'disabled' turns off AMD detection.
|
|
371
369
|
#
|
|
372
370
|
# @see Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection#detection_mode
|
|
373
371
|
module DetectionMode
|
|
374
372
|
extend Telnyx::Internal::Type::Enum
|
|
375
373
|
|
|
376
374
|
DISABLED = :disabled
|
|
377
|
-
|
|
375
|
+
PREMIUM = :premium
|
|
378
376
|
|
|
379
377
|
# @!method self.values
|
|
380
378
|
# @return [Array<Symbol>]
|
|
@@ -385,7 +383,6 @@ module Telnyx
|
|
|
385
383
|
# @!attribute action
|
|
386
384
|
# The action to take when voicemail is detected. 'stop_transfer' hangs up
|
|
387
385
|
# immediately. 'leave_message_and_stop_transfer' leaves a message then hangs up.
|
|
388
|
-
# 'continue_transfer' bridges the call despite voicemail detection.
|
|
389
386
|
#
|
|
390
387
|
# @return [Symbol, Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::Action, nil]
|
|
391
388
|
optional :action,
|
|
@@ -412,7 +409,6 @@ module Telnyx
|
|
|
412
409
|
|
|
413
410
|
# The action to take when voicemail is detected. 'stop_transfer' hangs up
|
|
414
411
|
# immediately. 'leave_message_and_stop_transfer' leaves a message then hangs up.
|
|
415
|
-
# 'continue_transfer' bridges the call despite voicemail detection.
|
|
416
412
|
#
|
|
417
413
|
# @see Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected#action
|
|
418
414
|
module Action
|
|
@@ -420,7 +416,6 @@ module Telnyx
|
|
|
420
416
|
|
|
421
417
|
STOP_TRANSFER = :stop_transfer
|
|
422
418
|
LEAVE_MESSAGE_AND_STOP_TRANSFER = :leave_message_and_stop_transfer
|
|
423
|
-
CONTINUE_TRANSFER = :continue_transfer
|
|
424
419
|
|
|
425
420
|
# @!method self.values
|
|
426
421
|
# @return [Array<Symbol>]
|
|
@@ -35,14 +35,17 @@ module Telnyx
|
|
|
35
35
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
36
36
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
37
37
|
# integration identifier secret in
|
|
38
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
39
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
40
|
-
# for details. Check
|
|
38
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
41
39
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
42
40
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
41
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
42
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
43
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
44
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
45
|
+
# default 0).
|
|
46
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
47
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
48
|
+
# (English only).
|
|
46
49
|
#
|
|
47
50
|
# @return [String]
|
|
48
51
|
required :voice, String
|
|
@@ -139,7 +142,7 @@ module Telnyx
|
|
|
139
142
|
# @!attribute voice_settings
|
|
140
143
|
# The settings associated with the voice selected
|
|
141
144
|
#
|
|
142
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, nil]
|
|
145
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax, nil]
|
|
143
146
|
optional :voice_settings, union: -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings }
|
|
144
147
|
|
|
145
148
|
# @!method initialize(payload:, voice:, client_state: nil, command_id: nil, inter_digit_timeout_millis: nil, invalid_payload: nil, language: nil, maximum_digits: nil, maximum_tries: nil, minimum_digits: nil, payload_type: nil, service_level: nil, terminating_digit: nil, timeout_millis: nil, valid_digits: nil, voice_settings: nil, request_options: {})
|
|
@@ -177,7 +180,7 @@ module Telnyx
|
|
|
177
180
|
#
|
|
178
181
|
# @param valid_digits [String] A list of all digits accepted as valid.
|
|
179
182
|
#
|
|
180
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings] The settings associated with the voice selected
|
|
183
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax] The settings associated with the voice selected
|
|
181
184
|
#
|
|
182
185
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
183
186
|
|
|
@@ -256,8 +259,45 @@ module Telnyx
|
|
|
256
259
|
|
|
257
260
|
variant :aws, -> { Telnyx::Calls::AwsVoiceSettings }
|
|
258
261
|
|
|
262
|
+
variant :minimax, -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax }
|
|
263
|
+
|
|
264
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
265
|
+
# @!attribute type
|
|
266
|
+
# Voice settings provider type
|
|
267
|
+
#
|
|
268
|
+
# @return [Symbol, :minimax]
|
|
269
|
+
required :type, const: :minimax
|
|
270
|
+
|
|
271
|
+
# @!attribute pitch
|
|
272
|
+
# Voice pitch adjustment. Default is 0.
|
|
273
|
+
#
|
|
274
|
+
# @return [Integer, nil]
|
|
275
|
+
optional :pitch, Integer
|
|
276
|
+
|
|
277
|
+
# @!attribute speed
|
|
278
|
+
# Speech speed multiplier. Default is 1.0.
|
|
279
|
+
#
|
|
280
|
+
# @return [Float, nil]
|
|
281
|
+
optional :speed, Float
|
|
282
|
+
|
|
283
|
+
# @!attribute vol
|
|
284
|
+
# Speech volume multiplier. Default is 1.0.
|
|
285
|
+
#
|
|
286
|
+
# @return [Float, nil]
|
|
287
|
+
optional :vol, Float
|
|
288
|
+
|
|
289
|
+
# @!method initialize(pitch: nil, speed: nil, vol: nil, type: :minimax)
|
|
290
|
+
# @param pitch [Integer] Voice pitch adjustment. Default is 0.
|
|
291
|
+
#
|
|
292
|
+
# @param speed [Float] Speech speed multiplier. Default is 1.0.
|
|
293
|
+
#
|
|
294
|
+
# @param vol [Float] Speech volume multiplier. Default is 1.0.
|
|
295
|
+
#
|
|
296
|
+
# @param type [Symbol, :minimax] Voice settings provider type
|
|
297
|
+
end
|
|
298
|
+
|
|
259
299
|
# @!method self.variants
|
|
260
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings)]
|
|
300
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax)]
|
|
261
301
|
end
|
|
262
302
|
end
|
|
263
303
|
end
|
|
@@ -35,14 +35,17 @@ module Telnyx
|
|
|
35
35
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
36
36
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
37
37
|
# integration identifier secret in
|
|
38
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
39
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
40
|
-
# for details. Check
|
|
38
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
41
39
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
42
40
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
41
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
42
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
43
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
44
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
45
|
+
# default 0).
|
|
46
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
47
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
48
|
+
# (English only).
|
|
46
49
|
#
|
|
47
50
|
# @return [String]
|
|
48
51
|
required :voice, String
|
|
@@ -94,7 +97,7 @@ module Telnyx
|
|
|
94
97
|
# @!attribute voice_settings
|
|
95
98
|
# The settings associated with the voice selected
|
|
96
99
|
#
|
|
97
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, nil]
|
|
100
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Minimax, nil]
|
|
98
101
|
optional :voice_settings, union: -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings }
|
|
99
102
|
|
|
100
103
|
# @!method initialize(payload:, voice:, client_state: nil, command_id: nil, language: nil, payload_type: nil, service_level: nil, stop: nil, voice_settings: nil, request_options: {})
|
|
@@ -117,7 +120,7 @@ module Telnyx
|
|
|
117
120
|
#
|
|
118
121
|
# @param stop [String] When specified, it stops the current audio being played. Specify `current` to st
|
|
119
122
|
#
|
|
120
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings] The settings associated with the voice selected
|
|
123
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Minimax] The settings associated with the voice selected
|
|
121
124
|
#
|
|
122
125
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
123
126
|
|
|
@@ -196,8 +199,45 @@ module Telnyx
|
|
|
196
199
|
|
|
197
200
|
variant :aws, -> { Telnyx::Calls::AwsVoiceSettings }
|
|
198
201
|
|
|
202
|
+
variant :minimax, -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax }
|
|
203
|
+
|
|
204
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
205
|
+
# @!attribute type
|
|
206
|
+
# Voice settings provider type
|
|
207
|
+
#
|
|
208
|
+
# @return [Symbol, :minimax]
|
|
209
|
+
required :type, const: :minimax
|
|
210
|
+
|
|
211
|
+
# @!attribute pitch
|
|
212
|
+
# Voice pitch adjustment. Default is 0.
|
|
213
|
+
#
|
|
214
|
+
# @return [Integer, nil]
|
|
215
|
+
optional :pitch, Integer
|
|
216
|
+
|
|
217
|
+
# @!attribute speed
|
|
218
|
+
# Speech speed multiplier. Default is 1.0.
|
|
219
|
+
#
|
|
220
|
+
# @return [Float, nil]
|
|
221
|
+
optional :speed, Float
|
|
222
|
+
|
|
223
|
+
# @!attribute vol
|
|
224
|
+
# Speech volume multiplier. Default is 1.0.
|
|
225
|
+
#
|
|
226
|
+
# @return [Float, nil]
|
|
227
|
+
optional :vol, Float
|
|
228
|
+
|
|
229
|
+
# @!method initialize(pitch: nil, speed: nil, vol: nil, type: :minimax)
|
|
230
|
+
# @param pitch [Integer] Voice pitch adjustment. Default is 0.
|
|
231
|
+
#
|
|
232
|
+
# @param speed [Float] Speech speed multiplier. Default is 1.0.
|
|
233
|
+
#
|
|
234
|
+
# @param vol [Float] Speech volume multiplier. Default is 1.0.
|
|
235
|
+
#
|
|
236
|
+
# @param type [Symbol, :minimax] Voice settings provider type
|
|
237
|
+
end
|
|
238
|
+
|
|
199
239
|
# @!method self.variants
|
|
200
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings)]
|
|
240
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Minimax)]
|
|
201
241
|
end
|
|
202
242
|
end
|
|
203
243
|
end
|
|
@@ -35,14 +35,17 @@ module Telnyx
|
|
|
35
35
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
36
36
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
37
37
|
# integration identifier secret in
|
|
38
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
39
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
40
|
-
# for details. Check
|
|
38
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
41
39
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
42
40
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
#
|
|
41
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
42
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
43
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
44
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
45
|
+
# default 0).
|
|
46
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
47
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
48
|
+
# (English only).
|
|
46
49
|
#
|
|
47
50
|
# @return [String]
|
|
48
51
|
required :voice, String
|
|
@@ -86,7 +89,7 @@ module Telnyx
|
|
|
86
89
|
# @!attribute voice_settings
|
|
87
90
|
# The settings associated with the voice selected
|
|
88
91
|
#
|
|
89
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, nil]
|
|
92
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Minimax, nil]
|
|
90
93
|
optional :voice_settings, union: -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings }
|
|
91
94
|
|
|
92
95
|
# @!method initialize(payload:, voice:, call_control_ids: nil, command_id: nil, language: nil, payload_type: nil, region: nil, voice_settings: nil, request_options: {})
|
|
@@ -107,7 +110,7 @@ module Telnyx
|
|
|
107
110
|
#
|
|
108
111
|
# @param region [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::Region] Region where the conference data is located. Defaults to the region defined in u
|
|
109
112
|
#
|
|
110
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings] The settings associated with the voice selected
|
|
113
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Minimax] The settings associated with the voice selected
|
|
111
114
|
#
|
|
112
115
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
113
116
|
|
|
@@ -188,8 +191,45 @@ module Telnyx
|
|
|
188
191
|
|
|
189
192
|
variant :aws, -> { Telnyx::Calls::AwsVoiceSettings }
|
|
190
193
|
|
|
194
|
+
variant :minimax, -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax }
|
|
195
|
+
|
|
196
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
197
|
+
# @!attribute type
|
|
198
|
+
# Voice settings provider type
|
|
199
|
+
#
|
|
200
|
+
# @return [Symbol, :minimax]
|
|
201
|
+
required :type, const: :minimax
|
|
202
|
+
|
|
203
|
+
# @!attribute pitch
|
|
204
|
+
# Voice pitch adjustment. Default is 0.
|
|
205
|
+
#
|
|
206
|
+
# @return [Integer, nil]
|
|
207
|
+
optional :pitch, Integer
|
|
208
|
+
|
|
209
|
+
# @!attribute speed
|
|
210
|
+
# Speech speed multiplier. Default is 1.0.
|
|
211
|
+
#
|
|
212
|
+
# @return [Float, nil]
|
|
213
|
+
optional :speed, Float
|
|
214
|
+
|
|
215
|
+
# @!attribute vol
|
|
216
|
+
# Speech volume multiplier. Default is 1.0.
|
|
217
|
+
#
|
|
218
|
+
# @return [Float, nil]
|
|
219
|
+
optional :vol, Float
|
|
220
|
+
|
|
221
|
+
# @!method initialize(pitch: nil, speed: nil, vol: nil, type: :minimax)
|
|
222
|
+
# @param pitch [Integer] Voice pitch adjustment. Default is 0.
|
|
223
|
+
#
|
|
224
|
+
# @param speed [Float] Speech speed multiplier. Default is 1.0.
|
|
225
|
+
#
|
|
226
|
+
# @param vol [Float] Speech volume multiplier. Default is 1.0.
|
|
227
|
+
#
|
|
228
|
+
# @param type [Symbol, :minimax] Voice settings provider type
|
|
229
|
+
end
|
|
230
|
+
|
|
191
231
|
# @!method self.variants
|
|
192
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings)]
|
|
232
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Minimax)]
|
|
193
233
|
end
|
|
194
234
|
end
|
|
195
235
|
end
|
|
@@ -459,7 +459,7 @@ module Telnyx
|
|
|
459
459
|
#
|
|
460
460
|
# @param valid_digits [String] A list of all digits accepted as valid.
|
|
461
461
|
#
|
|
462
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings] The settings associated with the voice selected
|
|
462
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax] The settings associated with the voice selected
|
|
463
463
|
#
|
|
464
464
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
465
465
|
#
|
|
@@ -799,7 +799,7 @@ module Telnyx
|
|
|
799
799
|
#
|
|
800
800
|
# @param stop [String] When specified, it stops the current audio being played. Specify `current` to st
|
|
801
801
|
#
|
|
802
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings] The settings associated with the voice selected
|
|
802
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Minimax] The settings associated with the voice selected
|
|
803
803
|
#
|
|
804
804
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
805
805
|
#
|
|
@@ -399,7 +399,7 @@ module Telnyx
|
|
|
399
399
|
#
|
|
400
400
|
# @param region [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::Region] Region where the conference data is located. Defaults to the region defined in u
|
|
401
401
|
#
|
|
402
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings] The settings associated with the voice selected
|
|
402
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Minimax] The settings associated with the voice selected
|
|
403
403
|
#
|
|
404
404
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
405
405
|
#
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -493,9 +493,8 @@ module Telnyx
|
|
|
493
493
|
end
|
|
494
494
|
attr_writer :detection_config
|
|
495
495
|
|
|
496
|
-
# The AMD detection mode to use. '
|
|
497
|
-
#
|
|
498
|
-
# AMD detection.
|
|
496
|
+
# The AMD detection mode to use. 'premium' enables premium answering machine
|
|
497
|
+
# detection. 'disabled' turns off AMD detection.
|
|
499
498
|
sig do
|
|
500
499
|
returns(
|
|
501
500
|
T.nilable(
|
|
@@ -548,9 +547,8 @@ module Telnyx
|
|
|
548
547
|
# Advanced AMD detection configuration parameters. All values are optional -
|
|
549
548
|
# Telnyx will use defaults if not specified.
|
|
550
549
|
detection_config: nil,
|
|
551
|
-
# The AMD detection mode to use. '
|
|
552
|
-
#
|
|
553
|
-
# AMD detection.
|
|
550
|
+
# The AMD detection mode to use. 'premium' enables premium answering machine
|
|
551
|
+
# detection. 'disabled' turns off AMD detection.
|
|
554
552
|
detection_mode: nil,
|
|
555
553
|
# Action to take when voicemail is detected on the transferred call.
|
|
556
554
|
on_voicemail_detected: nil
|
|
@@ -726,9 +724,8 @@ module Telnyx
|
|
|
726
724
|
end
|
|
727
725
|
end
|
|
728
726
|
|
|
729
|
-
# The AMD detection mode to use. '
|
|
730
|
-
#
|
|
731
|
-
# AMD detection.
|
|
727
|
+
# The AMD detection mode to use. 'premium' enables premium answering machine
|
|
728
|
+
# detection. 'disabled' turns off AMD detection.
|
|
732
729
|
module DetectionMode
|
|
733
730
|
extend Telnyx::Internal::Type::Enum
|
|
734
731
|
|
|
@@ -746,9 +743,9 @@ module Telnyx
|
|
|
746
743
|
:disabled,
|
|
747
744
|
Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
748
745
|
)
|
|
749
|
-
|
|
746
|
+
PREMIUM =
|
|
750
747
|
T.let(
|
|
751
|
-
:
|
|
748
|
+
:premium,
|
|
752
749
|
Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::DetectionMode::TaggedSymbol
|
|
753
750
|
)
|
|
754
751
|
|
|
@@ -774,7 +771,6 @@ module Telnyx
|
|
|
774
771
|
|
|
775
772
|
# The action to take when voicemail is detected. 'stop_transfer' hangs up
|
|
776
773
|
# immediately. 'leave_message_and_stop_transfer' leaves a message then hangs up.
|
|
777
|
-
# 'continue_transfer' bridges the call despite voicemail detection.
|
|
778
774
|
sig do
|
|
779
775
|
returns(
|
|
780
776
|
T.nilable(
|
|
@@ -823,7 +819,6 @@ module Telnyx
|
|
|
823
819
|
def self.new(
|
|
824
820
|
# The action to take when voicemail is detected. 'stop_transfer' hangs up
|
|
825
821
|
# immediately. 'leave_message_and_stop_transfer' leaves a message then hangs up.
|
|
826
|
-
# 'continue_transfer' bridges the call despite voicemail detection.
|
|
827
822
|
action: nil,
|
|
828
823
|
# Configuration for the voicemail message to leave. Only applicable when action is
|
|
829
824
|
# 'leave_message_and_stop_transfer'.
|
|
@@ -846,7 +841,6 @@ module Telnyx
|
|
|
846
841
|
|
|
847
842
|
# The action to take when voicemail is detected. 'stop_transfer' hangs up
|
|
848
843
|
# immediately. 'leave_message_and_stop_transfer' leaves a message then hangs up.
|
|
849
|
-
# 'continue_transfer' bridges the call despite voicemail detection.
|
|
850
844
|
module Action
|
|
851
845
|
extend Telnyx::Internal::Type::Enum
|
|
852
846
|
|
|
@@ -869,11 +863,6 @@ module Telnyx
|
|
|
869
863
|
:leave_message_and_stop_transfer,
|
|
870
864
|
Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::Action::TaggedSymbol
|
|
871
865
|
)
|
|
872
|
-
CONTINUE_TRANSFER =
|
|
873
|
-
T.let(
|
|
874
|
-
:continue_transfer,
|
|
875
|
-
Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::Action::TaggedSymbol
|
|
876
|
-
)
|
|
877
866
|
|
|
878
867
|
sig do
|
|
879
868
|
override.returns(
|
|
@@ -39,14 +39,17 @@ module Telnyx
|
|
|
39
39
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
40
40
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
41
41
|
# integration identifier secret in
|
|
42
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
43
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
44
|
-
# for details. Check
|
|
42
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
45
43
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
46
44
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
45
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
46
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
47
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
48
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
49
|
+
# default 0).
|
|
50
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
51
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
52
|
+
# (English only).
|
|
50
53
|
sig { returns(String) }
|
|
51
54
|
attr_accessor :voice
|
|
52
55
|
|
|
@@ -192,7 +195,8 @@ module Telnyx
|
|
|
192
195
|
T.any(
|
|
193
196
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
194
197
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
195
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
198
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
199
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax
|
|
196
200
|
)
|
|
197
201
|
)
|
|
198
202
|
)
|
|
@@ -205,7 +209,8 @@ module Telnyx
|
|
|
205
209
|
T.any(
|
|
206
210
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
207
211
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
208
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
212
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
213
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax::OrHash
|
|
209
214
|
)
|
|
210
215
|
).void
|
|
211
216
|
end
|
|
@@ -235,7 +240,8 @@ module Telnyx
|
|
|
235
240
|
T.any(
|
|
236
241
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
237
242
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
238
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
243
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
244
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax::OrHash
|
|
239
245
|
),
|
|
240
246
|
request_options: Telnyx::RequestOptions::OrHash
|
|
241
247
|
).returns(T.attached_class)
|
|
@@ -263,14 +269,17 @@ module Telnyx
|
|
|
263
269
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
264
270
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
265
271
|
# integration identifier secret in
|
|
266
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
267
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
268
|
-
# for details. Check
|
|
272
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
269
273
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
270
274
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
271
|
-
#
|
|
272
|
-
#
|
|
273
|
-
#
|
|
275
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
276
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
277
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
278
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
279
|
+
# default 0).
|
|
280
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
281
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
282
|
+
# (English only).
|
|
274
283
|
voice:,
|
|
275
284
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
276
285
|
# Base-64 encoded string.
|
|
@@ -340,7 +349,8 @@ module Telnyx
|
|
|
340
349
|
T.any(
|
|
341
350
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
342
351
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
343
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
352
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
353
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax
|
|
344
354
|
),
|
|
345
355
|
request_options: Telnyx::RequestOptions
|
|
346
356
|
}
|
|
@@ -601,9 +611,73 @@ module Telnyx
|
|
|
601
611
|
T.any(
|
|
602
612
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
603
613
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
604
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
614
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
615
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax
|
|
616
|
+
)
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
620
|
+
OrHash =
|
|
621
|
+
T.type_alias do
|
|
622
|
+
T.any(
|
|
623
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax,
|
|
624
|
+
Telnyx::Internal::AnyHash
|
|
625
|
+
)
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
# Voice settings provider type
|
|
629
|
+
sig { returns(Symbol) }
|
|
630
|
+
attr_accessor :type
|
|
631
|
+
|
|
632
|
+
# Voice pitch adjustment. Default is 0.
|
|
633
|
+
sig { returns(T.nilable(Integer)) }
|
|
634
|
+
attr_reader :pitch
|
|
635
|
+
|
|
636
|
+
sig { params(pitch: Integer).void }
|
|
637
|
+
attr_writer :pitch
|
|
638
|
+
|
|
639
|
+
# Speech speed multiplier. Default is 1.0.
|
|
640
|
+
sig { returns(T.nilable(Float)) }
|
|
641
|
+
attr_reader :speed
|
|
642
|
+
|
|
643
|
+
sig { params(speed: Float).void }
|
|
644
|
+
attr_writer :speed
|
|
645
|
+
|
|
646
|
+
# Speech volume multiplier. Default is 1.0.
|
|
647
|
+
sig { returns(T.nilable(Float)) }
|
|
648
|
+
attr_reader :vol
|
|
649
|
+
|
|
650
|
+
sig { params(vol: Float).void }
|
|
651
|
+
attr_writer :vol
|
|
652
|
+
|
|
653
|
+
sig do
|
|
654
|
+
params(
|
|
655
|
+
pitch: Integer,
|
|
656
|
+
speed: Float,
|
|
657
|
+
vol: Float,
|
|
658
|
+
type: Symbol
|
|
659
|
+
).returns(T.attached_class)
|
|
660
|
+
end
|
|
661
|
+
def self.new(
|
|
662
|
+
# Voice pitch adjustment. Default is 0.
|
|
663
|
+
pitch: nil,
|
|
664
|
+
# Speech speed multiplier. Default is 1.0.
|
|
665
|
+
speed: nil,
|
|
666
|
+
# Speech volume multiplier. Default is 1.0.
|
|
667
|
+
vol: nil,
|
|
668
|
+
# Voice settings provider type
|
|
669
|
+
type: :minimax
|
|
670
|
+
)
|
|
671
|
+
end
|
|
672
|
+
|
|
673
|
+
sig do
|
|
674
|
+
override.returns(
|
|
675
|
+
{ type: Symbol, pitch: Integer, speed: Float, vol: Float }
|
|
605
676
|
)
|
|
606
677
|
end
|
|
678
|
+
def to_hash
|
|
679
|
+
end
|
|
680
|
+
end
|
|
607
681
|
|
|
608
682
|
sig do
|
|
609
683
|
override.returns(
|
|
@@ -36,14 +36,17 @@ module Telnyx
|
|
|
36
36
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
37
37
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
38
38
|
# integration identifier secret in
|
|
39
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
40
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
41
|
-
# for details. Check
|
|
39
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
42
40
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
43
41
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
42
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
43
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
44
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
45
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
46
|
+
# default 0).
|
|
47
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
48
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
49
|
+
# (English only).
|
|
47
50
|
sig { returns(String) }
|
|
48
51
|
attr_accessor :voice
|
|
49
52
|
|
|
@@ -130,7 +133,8 @@ module Telnyx
|
|
|
130
133
|
T.any(
|
|
131
134
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
132
135
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
133
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
136
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
137
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax
|
|
134
138
|
)
|
|
135
139
|
)
|
|
136
140
|
)
|
|
@@ -143,7 +147,8 @@ module Telnyx
|
|
|
143
147
|
T.any(
|
|
144
148
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
145
149
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
146
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
150
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
151
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax::OrHash
|
|
147
152
|
)
|
|
148
153
|
).void
|
|
149
154
|
end
|
|
@@ -165,7 +170,8 @@ module Telnyx
|
|
|
165
170
|
T.any(
|
|
166
171
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
167
172
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
168
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
173
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
174
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax::OrHash
|
|
169
175
|
),
|
|
170
176
|
request_options: Telnyx::RequestOptions::OrHash
|
|
171
177
|
).returns(T.attached_class)
|
|
@@ -193,14 +199,17 @@ module Telnyx
|
|
|
193
199
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
194
200
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
195
201
|
# integration identifier secret in
|
|
196
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
197
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
198
|
-
# for details. Check
|
|
202
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
199
203
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
200
204
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
201
|
-
#
|
|
202
|
-
#
|
|
203
|
-
#
|
|
205
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
206
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
207
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
208
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
209
|
+
# default 0).
|
|
210
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
211
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
212
|
+
# (English only).
|
|
204
213
|
voice:,
|
|
205
214
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
206
215
|
# Base-64 encoded string.
|
|
@@ -245,7 +254,8 @@ module Telnyx
|
|
|
245
254
|
T.any(
|
|
246
255
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
247
256
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
248
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
257
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
258
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax
|
|
249
259
|
),
|
|
250
260
|
request_options: Telnyx::RequestOptions
|
|
251
261
|
}
|
|
@@ -495,9 +505,73 @@ module Telnyx
|
|
|
495
505
|
T.any(
|
|
496
506
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
497
507
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
498
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
508
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
509
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax
|
|
510
|
+
)
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
514
|
+
OrHash =
|
|
515
|
+
T.type_alias do
|
|
516
|
+
T.any(
|
|
517
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax,
|
|
518
|
+
Telnyx::Internal::AnyHash
|
|
519
|
+
)
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
# Voice settings provider type
|
|
523
|
+
sig { returns(Symbol) }
|
|
524
|
+
attr_accessor :type
|
|
525
|
+
|
|
526
|
+
# Voice pitch adjustment. Default is 0.
|
|
527
|
+
sig { returns(T.nilable(Integer)) }
|
|
528
|
+
attr_reader :pitch
|
|
529
|
+
|
|
530
|
+
sig { params(pitch: Integer).void }
|
|
531
|
+
attr_writer :pitch
|
|
532
|
+
|
|
533
|
+
# Speech speed multiplier. Default is 1.0.
|
|
534
|
+
sig { returns(T.nilable(Float)) }
|
|
535
|
+
attr_reader :speed
|
|
536
|
+
|
|
537
|
+
sig { params(speed: Float).void }
|
|
538
|
+
attr_writer :speed
|
|
539
|
+
|
|
540
|
+
# Speech volume multiplier. Default is 1.0.
|
|
541
|
+
sig { returns(T.nilable(Float)) }
|
|
542
|
+
attr_reader :vol
|
|
543
|
+
|
|
544
|
+
sig { params(vol: Float).void }
|
|
545
|
+
attr_writer :vol
|
|
546
|
+
|
|
547
|
+
sig do
|
|
548
|
+
params(
|
|
549
|
+
pitch: Integer,
|
|
550
|
+
speed: Float,
|
|
551
|
+
vol: Float,
|
|
552
|
+
type: Symbol
|
|
553
|
+
).returns(T.attached_class)
|
|
554
|
+
end
|
|
555
|
+
def self.new(
|
|
556
|
+
# Voice pitch adjustment. Default is 0.
|
|
557
|
+
pitch: nil,
|
|
558
|
+
# Speech speed multiplier. Default is 1.0.
|
|
559
|
+
speed: nil,
|
|
560
|
+
# Speech volume multiplier. Default is 1.0.
|
|
561
|
+
vol: nil,
|
|
562
|
+
# Voice settings provider type
|
|
563
|
+
type: :minimax
|
|
564
|
+
)
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
sig do
|
|
568
|
+
override.returns(
|
|
569
|
+
{ type: Symbol, pitch: Integer, speed: Float, vol: Float }
|
|
499
570
|
)
|
|
500
571
|
end
|
|
572
|
+
def to_hash
|
|
573
|
+
end
|
|
574
|
+
end
|
|
501
575
|
|
|
502
576
|
sig do
|
|
503
577
|
override.returns(
|
|
@@ -39,14 +39,17 @@ module Telnyx
|
|
|
39
39
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
40
40
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
41
41
|
# integration identifier secret in
|
|
42
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
43
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
44
|
-
# for details. Check
|
|
42
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
45
43
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
46
44
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
45
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
46
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
47
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
48
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
49
|
+
# default 0).
|
|
50
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
51
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
52
|
+
# (English only).
|
|
50
53
|
sig { returns(String) }
|
|
51
54
|
attr_accessor :voice
|
|
52
55
|
|
|
@@ -127,7 +130,8 @@ module Telnyx
|
|
|
127
130
|
T.any(
|
|
128
131
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
129
132
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
130
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
133
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
134
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax
|
|
131
135
|
)
|
|
132
136
|
)
|
|
133
137
|
)
|
|
@@ -140,7 +144,8 @@ module Telnyx
|
|
|
140
144
|
T.any(
|
|
141
145
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
142
146
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
143
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
147
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
148
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax::OrHash
|
|
144
149
|
)
|
|
145
150
|
).void
|
|
146
151
|
end
|
|
@@ -161,7 +166,8 @@ module Telnyx
|
|
|
161
166
|
T.any(
|
|
162
167
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
163
168
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
164
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
169
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
170
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax::OrHash
|
|
165
171
|
),
|
|
166
172
|
request_options: Telnyx::RequestOptions::OrHash
|
|
167
173
|
).returns(T.attached_class)
|
|
@@ -189,14 +195,17 @@ module Telnyx
|
|
|
189
195
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
190
196
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
191
197
|
# integration identifier secret in
|
|
192
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
193
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
194
|
-
# for details. Check
|
|
198
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
195
199
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
196
200
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
197
|
-
#
|
|
198
|
-
#
|
|
199
|
-
#
|
|
201
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
202
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
203
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
204
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
205
|
+
# default 0).
|
|
206
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
207
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
208
|
+
# (English only).
|
|
200
209
|
voice:,
|
|
201
210
|
# Call Control IDs of participants who will hear the spoken text. When empty all
|
|
202
211
|
# participants will hear the spoken text.
|
|
@@ -236,7 +245,8 @@ module Telnyx
|
|
|
236
245
|
T.any(
|
|
237
246
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
238
247
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
239
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
248
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
249
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax
|
|
240
250
|
),
|
|
241
251
|
request_options: Telnyx::RequestOptions
|
|
242
252
|
}
|
|
@@ -498,9 +508,73 @@ module Telnyx
|
|
|
498
508
|
T.any(
|
|
499
509
|
Telnyx::Calls::ElevenLabsVoiceSettings,
|
|
500
510
|
Telnyx::Calls::TelnyxVoiceSettings,
|
|
501
|
-
Telnyx::Calls::AwsVoiceSettings
|
|
511
|
+
Telnyx::Calls::AwsVoiceSettings,
|
|
512
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax
|
|
513
|
+
)
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
517
|
+
OrHash =
|
|
518
|
+
T.type_alias do
|
|
519
|
+
T.any(
|
|
520
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax,
|
|
521
|
+
Telnyx::Internal::AnyHash
|
|
522
|
+
)
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# Voice settings provider type
|
|
526
|
+
sig { returns(Symbol) }
|
|
527
|
+
attr_accessor :type
|
|
528
|
+
|
|
529
|
+
# Voice pitch adjustment. Default is 0.
|
|
530
|
+
sig { returns(T.nilable(Integer)) }
|
|
531
|
+
attr_reader :pitch
|
|
532
|
+
|
|
533
|
+
sig { params(pitch: Integer).void }
|
|
534
|
+
attr_writer :pitch
|
|
535
|
+
|
|
536
|
+
# Speech speed multiplier. Default is 1.0.
|
|
537
|
+
sig { returns(T.nilable(Float)) }
|
|
538
|
+
attr_reader :speed
|
|
539
|
+
|
|
540
|
+
sig { params(speed: Float).void }
|
|
541
|
+
attr_writer :speed
|
|
542
|
+
|
|
543
|
+
# Speech volume multiplier. Default is 1.0.
|
|
544
|
+
sig { returns(T.nilable(Float)) }
|
|
545
|
+
attr_reader :vol
|
|
546
|
+
|
|
547
|
+
sig { params(vol: Float).void }
|
|
548
|
+
attr_writer :vol
|
|
549
|
+
|
|
550
|
+
sig do
|
|
551
|
+
params(
|
|
552
|
+
pitch: Integer,
|
|
553
|
+
speed: Float,
|
|
554
|
+
vol: Float,
|
|
555
|
+
type: Symbol
|
|
556
|
+
).returns(T.attached_class)
|
|
557
|
+
end
|
|
558
|
+
def self.new(
|
|
559
|
+
# Voice pitch adjustment. Default is 0.
|
|
560
|
+
pitch: nil,
|
|
561
|
+
# Speech speed multiplier. Default is 1.0.
|
|
562
|
+
speed: nil,
|
|
563
|
+
# Speech volume multiplier. Default is 1.0.
|
|
564
|
+
vol: nil,
|
|
565
|
+
# Voice settings provider type
|
|
566
|
+
type: :minimax
|
|
567
|
+
)
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
sig do
|
|
571
|
+
override.returns(
|
|
572
|
+
{ type: Symbol, pitch: Integer, speed: Float, vol: Float }
|
|
502
573
|
)
|
|
503
574
|
end
|
|
575
|
+
def to_hash
|
|
576
|
+
end
|
|
577
|
+
end
|
|
504
578
|
|
|
505
579
|
sig do
|
|
506
580
|
override.returns(
|
|
@@ -602,7 +602,8 @@ module Telnyx
|
|
|
602
602
|
T.any(
|
|
603
603
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
604
604
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
605
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
605
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
606
|
+
Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax::OrHash
|
|
606
607
|
),
|
|
607
608
|
request_options: Telnyx::RequestOptions::OrHash
|
|
608
609
|
).returns(Telnyx::Models::Calls::ActionGatherUsingSpeakResponse)
|
|
@@ -632,14 +633,17 @@ module Telnyx
|
|
|
632
633
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
633
634
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
634
635
|
# integration identifier secret in
|
|
635
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
636
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
637
|
-
# for details. Check
|
|
636
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
638
637
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
639
638
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
640
|
-
#
|
|
641
|
-
#
|
|
642
|
-
#
|
|
639
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
640
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
641
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
642
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
643
|
+
# default 0).
|
|
644
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
645
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
646
|
+
# (English only).
|
|
643
647
|
voice:,
|
|
644
648
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
645
649
|
# Base-64 encoded string.
|
|
@@ -959,7 +963,8 @@ module Telnyx
|
|
|
959
963
|
T.any(
|
|
960
964
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
961
965
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
962
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
966
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
967
|
+
Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax::OrHash
|
|
963
968
|
),
|
|
964
969
|
request_options: Telnyx::RequestOptions::OrHash
|
|
965
970
|
).returns(Telnyx::Models::Calls::ActionSpeakResponse)
|
|
@@ -989,14 +994,17 @@ module Telnyx
|
|
|
989
994
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
990
995
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
991
996
|
# integration identifier secret in
|
|
992
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
993
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
994
|
-
# for details. Check
|
|
997
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
995
998
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
996
999
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
997
|
-
#
|
|
998
|
-
#
|
|
999
|
-
#
|
|
1000
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
1001
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
1002
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
1003
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
1004
|
+
# default 0).
|
|
1005
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
1006
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
1007
|
+
# (English only).
|
|
1000
1008
|
voice:,
|
|
1001
1009
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
1002
1010
|
# Base-64 encoded string.
|
|
@@ -409,7 +409,8 @@ module Telnyx
|
|
|
409
409
|
T.any(
|
|
410
410
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
411
411
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
412
|
-
Telnyx::Calls::AwsVoiceSettings::OrHash
|
|
412
|
+
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
413
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax::OrHash
|
|
413
414
|
),
|
|
414
415
|
request_options: Telnyx::RequestOptions::OrHash
|
|
415
416
|
).returns(Telnyx::Models::Conferences::ActionSpeakResponse)
|
|
@@ -439,14 +440,17 @@ module Telnyx
|
|
|
439
440
|
# `ElevenLabs.eleven_multilingual_v2.21m00Tcm4TlvDq8ikWAM`). The `ModelId` part
|
|
440
441
|
# is optional. To use ElevenLabs, you must provide your ElevenLabs API key as an
|
|
441
442
|
# integration identifier secret in
|
|
442
|
-
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`.
|
|
443
|
-
# [integration secrets documentation](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
|
|
444
|
-
# for details. Check
|
|
443
|
+
# `"voice_settings": {"api_key_ref": "<secret_identifier>"}`. Check
|
|
445
444
|
# [available voices](https://elevenlabs.io/docs/api-reference/get-voices).
|
|
446
445
|
# - **Telnyx:** Use `Telnyx.<model_id>.<voice_id>`
|
|
447
|
-
#
|
|
448
|
-
#
|
|
449
|
-
#
|
|
446
|
+
# - **Minimax:** Use `Minimax.<ModelId>.<VoiceId>` (e.g.,
|
|
447
|
+
# `Minimax.speech-02-hd.Wise_Woman`). Supported models: `speech-02-turbo`,
|
|
448
|
+
# `speech-02-hd`, `speech-2.6-turbo`, `speech-2.8-turbo`. Optional parameters:
|
|
449
|
+
# `speed` (float, default 1.0), `vol` (float, default 1.0), `pitch` (integer,
|
|
450
|
+
# default 0).
|
|
451
|
+
# - **Resemble:** Use `Resemble.<ModelId>.<VoiceId>` (e.g.,
|
|
452
|
+
# `Resemble.Pro.my_voice`). Supported models: `Pro` (multilingual) and `Turbo`
|
|
453
|
+
# (English only).
|
|
450
454
|
voice:,
|
|
451
455
|
# Call Control IDs of participants who will hear the spoken text. When empty all
|
|
452
456
|
# participants will hear the spoken text.
|
|
@@ -312,13 +312,13 @@ module Telnyx
|
|
|
312
312
|
}
|
|
313
313
|
end
|
|
314
314
|
|
|
315
|
-
type detection_mode = :disabled | :
|
|
315
|
+
type detection_mode = :disabled | :premium
|
|
316
316
|
|
|
317
317
|
module DetectionMode
|
|
318
318
|
extend Telnyx::Internal::Type::Enum
|
|
319
319
|
|
|
320
320
|
DISABLED: :disabled
|
|
321
|
-
|
|
321
|
+
PREMIUM: :premium
|
|
322
322
|
|
|
323
323
|
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::detection_mode]
|
|
324
324
|
end
|
|
@@ -352,17 +352,13 @@ module Telnyx
|
|
|
352
352
|
voicemail_message: Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::VoicemailMessage
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
type action =
|
|
356
|
-
:stop_transfer
|
|
357
|
-
| :leave_message_and_stop_transfer
|
|
358
|
-
| :continue_transfer
|
|
355
|
+
type action = :stop_transfer | :leave_message_and_stop_transfer
|
|
359
356
|
|
|
360
357
|
module Action
|
|
361
358
|
extend Telnyx::Internal::Type::Enum
|
|
362
359
|
|
|
363
360
|
STOP_TRANSFER: :stop_transfer
|
|
364
361
|
LEAVE_MESSAGE_AND_STOP_TRANSFER: :leave_message_and_stop_transfer
|
|
365
|
-
CONTINUE_TRANSFER: :continue_transfer
|
|
366
362
|
|
|
367
363
|
def self?.values: -> ::Array[Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::action]
|
|
368
364
|
end
|
|
@@ -227,10 +227,44 @@ module Telnyx
|
|
|
227
227
|
Telnyx::Calls::ElevenLabsVoiceSettings
|
|
228
228
|
| Telnyx::Calls::TelnyxVoiceSettings
|
|
229
229
|
| Telnyx::Calls::AwsVoiceSettings
|
|
230
|
+
| Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Minimax
|
|
230
231
|
|
|
231
232
|
module VoiceSettings
|
|
232
233
|
extend Telnyx::Internal::Type::Union
|
|
233
234
|
|
|
235
|
+
type minimax =
|
|
236
|
+
{ type: :minimax, pitch: Integer, speed: Float, vol: Float }
|
|
237
|
+
|
|
238
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
239
|
+
attr_accessor type: :minimax
|
|
240
|
+
|
|
241
|
+
attr_reader pitch: Integer?
|
|
242
|
+
|
|
243
|
+
def pitch=: (Integer) -> Integer
|
|
244
|
+
|
|
245
|
+
attr_reader speed: Float?
|
|
246
|
+
|
|
247
|
+
def speed=: (Float) -> Float
|
|
248
|
+
|
|
249
|
+
attr_reader vol: Float?
|
|
250
|
+
|
|
251
|
+
def vol=: (Float) -> Float
|
|
252
|
+
|
|
253
|
+
def initialize: (
|
|
254
|
+
?pitch: Integer,
|
|
255
|
+
?speed: Float,
|
|
256
|
+
?vol: Float,
|
|
257
|
+
?type: :minimax
|
|
258
|
+
) -> void
|
|
259
|
+
|
|
260
|
+
def to_hash: -> {
|
|
261
|
+
type: :minimax,
|
|
262
|
+
pitch: Integer,
|
|
263
|
+
speed: Float,
|
|
264
|
+
vol: Float
|
|
265
|
+
}
|
|
266
|
+
end
|
|
267
|
+
|
|
234
268
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionGatherUsingSpeakParams::voice_settings]
|
|
235
269
|
end
|
|
236
270
|
end
|
|
@@ -178,10 +178,44 @@ module Telnyx
|
|
|
178
178
|
Telnyx::Calls::ElevenLabsVoiceSettings
|
|
179
179
|
| Telnyx::Calls::TelnyxVoiceSettings
|
|
180
180
|
| Telnyx::Calls::AwsVoiceSettings
|
|
181
|
+
| Telnyx::Calls::ActionSpeakParams::VoiceSettings::Minimax
|
|
181
182
|
|
|
182
183
|
module VoiceSettings
|
|
183
184
|
extend Telnyx::Internal::Type::Union
|
|
184
185
|
|
|
186
|
+
type minimax =
|
|
187
|
+
{ type: :minimax, pitch: Integer, speed: Float, vol: Float }
|
|
188
|
+
|
|
189
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
190
|
+
attr_accessor type: :minimax
|
|
191
|
+
|
|
192
|
+
attr_reader pitch: Integer?
|
|
193
|
+
|
|
194
|
+
def pitch=: (Integer) -> Integer
|
|
195
|
+
|
|
196
|
+
attr_reader speed: Float?
|
|
197
|
+
|
|
198
|
+
def speed=: (Float) -> Float
|
|
199
|
+
|
|
200
|
+
attr_reader vol: Float?
|
|
201
|
+
|
|
202
|
+
def vol=: (Float) -> Float
|
|
203
|
+
|
|
204
|
+
def initialize: (
|
|
205
|
+
?pitch: Integer,
|
|
206
|
+
?speed: Float,
|
|
207
|
+
?vol: Float,
|
|
208
|
+
?type: :minimax
|
|
209
|
+
) -> void
|
|
210
|
+
|
|
211
|
+
def to_hash: -> {
|
|
212
|
+
type: :minimax,
|
|
213
|
+
pitch: Integer,
|
|
214
|
+
speed: Float,
|
|
215
|
+
vol: Float
|
|
216
|
+
}
|
|
217
|
+
end
|
|
218
|
+
|
|
185
219
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionSpeakParams::voice_settings]
|
|
186
220
|
end
|
|
187
221
|
end
|
|
@@ -173,10 +173,44 @@ module Telnyx
|
|
|
173
173
|
Telnyx::Calls::ElevenLabsVoiceSettings
|
|
174
174
|
| Telnyx::Calls::TelnyxVoiceSettings
|
|
175
175
|
| Telnyx::Calls::AwsVoiceSettings
|
|
176
|
+
| Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Minimax
|
|
176
177
|
|
|
177
178
|
module VoiceSettings
|
|
178
179
|
extend Telnyx::Internal::Type::Union
|
|
179
180
|
|
|
181
|
+
type minimax =
|
|
182
|
+
{ type: :minimax, pitch: Integer, speed: Float, vol: Float }
|
|
183
|
+
|
|
184
|
+
class Minimax < Telnyx::Internal::Type::BaseModel
|
|
185
|
+
attr_accessor type: :minimax
|
|
186
|
+
|
|
187
|
+
attr_reader pitch: Integer?
|
|
188
|
+
|
|
189
|
+
def pitch=: (Integer) -> Integer
|
|
190
|
+
|
|
191
|
+
attr_reader speed: Float?
|
|
192
|
+
|
|
193
|
+
def speed=: (Float) -> Float
|
|
194
|
+
|
|
195
|
+
attr_reader vol: Float?
|
|
196
|
+
|
|
197
|
+
def vol=: (Float) -> Float
|
|
198
|
+
|
|
199
|
+
def initialize: (
|
|
200
|
+
?pitch: Integer,
|
|
201
|
+
?speed: Float,
|
|
202
|
+
?vol: Float,
|
|
203
|
+
?type: :minimax
|
|
204
|
+
) -> void
|
|
205
|
+
|
|
206
|
+
def to_hash: -> {
|
|
207
|
+
type: :minimax,
|
|
208
|
+
pitch: Integer,
|
|
209
|
+
speed: Float,
|
|
210
|
+
vol: Float
|
|
211
|
+
}
|
|
212
|
+
end
|
|
213
|
+
|
|
180
214
|
def self?.variants: -> ::Array[Telnyx::Models::Conferences::ActionSpeakParams::voice_settings]
|
|
181
215
|
end
|
|
182
216
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telnyx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Telnyx
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|