telnyx 5.47.0 → 5.49.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1858a736c43a85b3865782ffaccb902c5a5f7645ee624f1f6f8ef6812a5ee9bc
4
- data.tar.gz: ae9c0a79caf86a1c3c5e3ee5cfd94328fd5702c4284f10193a9523d475444c79
3
+ metadata.gz: bb3f162f3848b1aed0823c8a08a2cc3196aba83a7f4c6d64b5f7677924d052a4
4
+ data.tar.gz: 8a9d2f073d9ab07867aace33538fe7667d1f5259f2416de88ae9e4ba75547377
5
5
  SHA512:
6
- metadata.gz: 797fe15080300f89062c91bdbae93fe26688a66db79500ee1c3d85986a55e66eee48cb4e7f4c516bdc94245e73a3f1da4fc3153e3cfc9cb74d86127217ddd287
7
- data.tar.gz: 1d80ac582e3bed21667ac7e423b73821d84e2e1ed3f5007ef442d2c443213f44fbf675f7848e1e3463cb01cace5918de4c569b8c25f1f46c84d0dba13386a922
6
+ metadata.gz: 448a3632b4fd16fca5a58d6a456aa6e0a5f3287107189cefa6deea9e49c17fc0ec9a0351a62a4193bec4ddaf9e5a612f11f8cecde6c6a61a362b8fba0ea1fe61
7
+ data.tar.gz: 8a97a5763b53d2c9ebce6a4ac6dfc6940e81c77f46a9afbb13bcca7339a47bdae083a253c9eb62715228603cb2a269a0680afdf40fdc263189fd74fc8471b54c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.49.0 (2026-02-27)
4
+
5
+ Full Changelog: [v5.48.0...v5.49.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.48.0...v5.49.0)
6
+
7
+ ### Features
8
+
9
+ * Add TTS file-based endpoint spec ([0952836](https://github.com/team-telnyx/telnyx-ruby/commit/09528368ab3c049ec7a279b11e39e716a1231ed3))
10
+
11
+ ## 5.48.0 (2026-02-27)
12
+
13
+ Full Changelog: [v5.47.0...v5.48.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.47.0...v5.48.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** manual updates ([09a572d](https://github.com/team-telnyx/telnyx-ruby/commit/09a572dd024f9e16bf4cb089b5dcc9431bb2af88))
18
+ * **api:** manual updates ([bb89de8](https://github.com/team-telnyx/telnyx-ruby/commit/bb89de8d36a9fa52cea0a7e6f94fe9902efa6457))
19
+ * **api:** manual updates ([0002eb3](https://github.com/team-telnyx/telnyx-ruby/commit/0002eb3356afd2191d066419bd22d4be70345a06))
20
+
3
21
  ## 5.47.0 (2026-02-26)
4
22
 
5
23
  Full Changelog: [v5.46.0...v5.47.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.46.0...v5.47.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.47.0"
27
+ gem "telnyx", "~> 5.49.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -74,11 +74,11 @@ module Telnyx
74
74
  optional :headers,
75
75
  -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header] }
76
76
 
77
- # @!attribute method_
77
+ # @!attribute http_method
78
78
  # The HTTP method to be used when calling the external tool.
79
79
  #
80
80
  # @return [Symbol, Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::Method, nil]
81
- optional :method_,
81
+ optional :http_method,
82
82
  enum: -> { Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Method },
83
83
  api_name: :method
84
84
 
@@ -110,7 +110,7 @@ module Telnyx
110
110
  # @return [Integer, nil]
111
111
  optional :timeout_ms, Integer
112
112
 
113
- # @!method initialize(description:, name:, url:, async: nil, body_parameters: nil, headers: nil, method_: nil, path_parameters: nil, query_parameters: nil, timeout_ms: nil)
113
+ # @!method initialize(description:, name:, url:, async: nil, body_parameters: nil, headers: nil, http_method: nil, path_parameters: nil, query_parameters: nil, timeout_ms: nil)
114
114
  # Some parameter documentations has been truncated, see
115
115
  # {Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook} for more
116
116
  # details.
@@ -127,7 +127,7 @@ module Telnyx
127
127
  #
128
128
  # @param headers [Array<Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header>] The headers to be sent to the external tool.
129
129
  #
130
- # @param method_ [Symbol, Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::Method] The HTTP method to be used when calling the external tool.
130
+ # @param http_method [Symbol, Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::Method] The HTTP method to be used when calling the external tool.
131
131
  #
132
132
  # @param path_parameters [Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters] The path parameters the webhook tool accepts, described as a JSON Schema object.
133
133
  #
@@ -207,7 +207,7 @@ module Telnyx
207
207
 
208
208
  # The HTTP method to be used when calling the external tool.
209
209
  #
210
- # @see Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook#method_
210
+ # @see Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook#http_method
211
211
  module Method
212
212
  extend Telnyx::Internal::Type::Enum
213
213
 
@@ -146,20 +146,20 @@ module Telnyx
146
146
  # @return [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Channels, nil]
147
147
  optional :channels, enum: -> { Telnyx::AI::TelephonySettings::RecordingSettings::Channels }
148
148
 
149
- # @!attribute format_
149
+ # @!attribute file_format
150
150
  # The format of the recording file.
151
151
  #
152
152
  # @return [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Format, nil]
153
- optional :format_,
153
+ optional :file_format,
154
154
  enum: -> { Telnyx::AI::TelephonySettings::RecordingSettings::Format },
155
155
  api_name: :format
156
156
 
157
- # @!method initialize(channels: nil, format_: nil)
157
+ # @!method initialize(channels: nil, file_format: nil)
158
158
  # Configuration for call recording format and channel settings.
159
159
  #
160
160
  # @param channels [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Channels] The number of channels for the recording. 'single' for mono, 'dual' for stereo.
161
161
  #
162
- # @param format_ [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Format] The format of the recording file.
162
+ # @param file_format [Symbol, Telnyx::Models::AI::TelephonySettings::RecordingSettings::Format] The format of the recording file.
163
163
 
164
164
  # The number of channels for the recording. 'single' for mono, 'dual' for stereo.
165
165
  #
@@ -176,7 +176,7 @@ module Telnyx
176
176
 
177
177
  # The format of the recording file.
178
178
  #
179
- # @see Telnyx::Models::AI::TelephonySettings::RecordingSettings#format_
179
+ # @see Telnyx::Models::AI::TelephonySettings::RecordingSettings#file_format
180
180
  module Format
181
181
  extend Telnyx::Internal::Type::Enum
182
182
 
@@ -66,11 +66,11 @@ module Telnyx
66
66
  # @return [Array<Telnyx::Models::AI::WebhookTool::Webhook::Header>, nil]
67
67
  optional :headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::WebhookTool::Webhook::Header] }
68
68
 
69
- # @!attribute method_
69
+ # @!attribute http_method
70
70
  # The HTTP method to be used when calling the external tool.
71
71
  #
72
72
  # @return [Symbol, Telnyx::Models::AI::WebhookTool::Webhook::Method, nil]
73
- optional :method_, enum: -> { Telnyx::AI::WebhookTool::Webhook::Method }, api_name: :method
73
+ optional :http_method, enum: -> { Telnyx::AI::WebhookTool::Webhook::Method }, api_name: :method
74
74
 
75
75
  # @!attribute path_parameters
76
76
  # The path parameters the webhook tool accepts, described as a JSON Schema object.
@@ -92,7 +92,7 @@ module Telnyx
92
92
  # @return [Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters, nil]
93
93
  optional :query_parameters, -> { Telnyx::AI::WebhookTool::Webhook::QueryParameters }
94
94
 
95
- # @!method initialize(description:, name:, url:, body_parameters: nil, headers: nil, method_: nil, path_parameters: nil, query_parameters: nil)
95
+ # @!method initialize(description:, name:, url:, body_parameters: nil, headers: nil, http_method: nil, path_parameters: nil, query_parameters: nil)
96
96
  # Some parameter documentations has been truncated, see
97
97
  # {Telnyx::Models::AI::WebhookTool::Webhook} for more details.
98
98
  #
@@ -106,7 +106,7 @@ module Telnyx
106
106
  #
107
107
  # @param headers [Array<Telnyx::Models::AI::WebhookTool::Webhook::Header>] The headers to be sent to the external tool.
108
108
  #
109
- # @param method_ [Symbol, Telnyx::Models::AI::WebhookTool::Webhook::Method] The HTTP method to be used when calling the external tool.
109
+ # @param http_method [Symbol, Telnyx::Models::AI::WebhookTool::Webhook::Method] The HTTP method to be used when calling the external tool.
110
110
  #
111
111
  # @param path_parameters [Telnyx::Models::AI::WebhookTool::Webhook::PathParameters] The path parameters the webhook tool accepts, described as a JSON Schema object.
112
112
  #
@@ -180,7 +180,7 @@ module Telnyx
180
180
 
181
181
  # The HTTP method to be used when calling the external tool.
182
182
  #
183
- # @see Telnyx::Models::AI::WebhookTool::Webhook#method_
183
+ # @see Telnyx::Models::AI::WebhookTool::Webhook#http_method
184
184
  module Method
185
185
  extend Telnyx::Internal::Type::Enum
186
186
 
@@ -9,11 +9,11 @@ module Telnyx
9
9
  # @return [Symbol, Telnyx::Models::ResembleVoiceSettings::Type]
10
10
  required :type, enum: -> { Telnyx::ResembleVoiceSettings::Type }
11
11
 
12
- # @!attribute format_
12
+ # @!attribute file_format
13
13
  # Output audio format.
14
14
  #
15
15
  # @return [Symbol, Telnyx::Models::ResembleVoiceSettings::Format, nil]
16
- optional :format_, enum: -> { Telnyx::ResembleVoiceSettings::Format }, api_name: :format
16
+ optional :file_format, enum: -> { Telnyx::ResembleVoiceSettings::Format }, api_name: :format
17
17
 
18
18
  # @!attribute precision
19
19
  # Audio precision format.
@@ -27,10 +27,10 @@ module Telnyx
27
27
  # @return [Symbol, Telnyx::Models::ResembleVoiceSettings::SampleRate, nil]
28
28
  optional :sample_rate, enum: -> { Telnyx::ResembleVoiceSettings::SampleRate }
29
29
 
30
- # @!method initialize(type:, format_: nil, precision: nil, sample_rate: nil)
30
+ # @!method initialize(type:, file_format: nil, precision: nil, sample_rate: nil)
31
31
  # @param type [Symbol, Telnyx::Models::ResembleVoiceSettings::Type] Voice settings provider type
32
32
  #
33
- # @param format_ [Symbol, Telnyx::Models::ResembleVoiceSettings::Format] Output audio format.
33
+ # @param file_format [Symbol, Telnyx::Models::ResembleVoiceSettings::Format] Output audio format.
34
34
  #
35
35
  # @param precision [Symbol, Telnyx::Models::ResembleVoiceSettings::Precision] Audio precision format.
36
36
  #
@@ -50,7 +50,7 @@ module Telnyx
50
50
 
51
51
  # Output audio format.
52
52
  #
53
- # @see Telnyx::Models::ResembleVoiceSettings#format_
53
+ # @see Telnyx::Models::ResembleVoiceSettings#file_format
54
54
  module Format
55
55
  extend Telnyx::Internal::Type::Enum
56
56
 
@@ -7,33 +7,36 @@ module Telnyx
7
7
  extend Telnyx::Internal::Type::RequestParameters::Converter
8
8
  include Telnyx::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute elevenlabs_api_key_ref
11
- # Reference to your ElevenLabs API key stored in the Telnyx Portal
10
+ # @!attribute api_key
11
+ # API key for providers that require one to list voices (e.g. ElevenLabs).
12
12
  #
13
13
  # @return [String, nil]
14
- optional :elevenlabs_api_key_ref, String
14
+ optional :api_key, String
15
15
 
16
16
  # @!attribute provider
17
- # Filter voices by provider
17
+ # Filter voices by provider. If omitted, voices from all providers are returned.
18
18
  #
19
19
  # @return [Symbol, Telnyx::Models::TextToSpeechListVoicesParams::Provider, nil]
20
20
  optional :provider, enum: -> { Telnyx::TextToSpeechListVoicesParams::Provider }
21
21
 
22
- # @!method initialize(elevenlabs_api_key_ref: nil, provider: nil, request_options: {})
23
- # @param elevenlabs_api_key_ref [String] Reference to your ElevenLabs API key stored in the Telnyx Portal
22
+ # @!method initialize(api_key: nil, provider: nil, request_options: {})
23
+ # @param api_key [String] API key for providers that require one to list voices (e.g. ElevenLabs).
24
24
  #
25
- # @param provider [Symbol, Telnyx::Models::TextToSpeechListVoicesParams::Provider] Filter voices by provider
25
+ # @param provider [Symbol, Telnyx::Models::TextToSpeechListVoicesParams::Provider] Filter voices by provider. If omitted, voices from all providers are returned.
26
26
  #
27
27
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
28
28
 
29
- # Filter voices by provider
29
+ # Filter voices by provider. If omitted, voices from all providers are returned.
30
30
  module Provider
31
31
  extend Telnyx::Internal::Type::Enum
32
32
 
33
33
  AWS = :aws
34
+ TELNYX = :telnyx
34
35
  AZURE = :azure
35
36
  ELEVENLABS = :elevenlabs
36
- TELNYX = :telnyx
37
+ MINIMAX = :minimax
38
+ RIME = :rime
39
+ RESEMBLE = :resemble
37
40
 
38
41
  # @!method self.values
39
42
  # @return [Array<Symbol>]
@@ -11,58 +11,53 @@ module Telnyx
11
11
  -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::TextToSpeechListVoicesResponse::Voice] }
12
12
 
13
13
  # @!method initialize(voices: nil)
14
+ # List of available voices.
15
+ #
14
16
  # @param voices [Array<Telnyx::Models::TextToSpeechListVoicesResponse::Voice>]
15
17
 
16
18
  class Voice < Telnyx::Internal::Type::BaseModel
17
- # @!attribute id
18
- #
19
- # @return [String, nil]
20
- optional :id, String
21
-
22
- # @!attribute accent
23
- #
24
- # @return [String, nil]
25
- optional :accent, String
26
-
27
- # @!attribute age
28
- #
29
- # @return [String, nil]
30
- optional :age, String
31
-
32
19
  # @!attribute gender
20
+ # Voice gender.
33
21
  #
34
22
  # @return [String, nil]
35
23
  optional :gender, String
36
24
 
37
- # @!attribute label
38
- #
39
- # @return [String, nil]
40
- optional :label, String
41
-
42
25
  # @!attribute language
26
+ # Language code.
43
27
  #
44
28
  # @return [String, nil]
45
29
  optional :language, String
46
30
 
47
31
  # @!attribute name
32
+ # Voice name.
48
33
  #
49
34
  # @return [String, nil]
50
35
  optional :name, String
51
36
 
52
37
  # @!attribute provider
38
+ # The TTS provider.
53
39
  #
54
40
  # @return [String, nil]
55
41
  optional :provider, String
56
42
 
57
- # @!method initialize(id: nil, accent: nil, age: nil, gender: nil, label: nil, language: nil, name: nil, provider: nil)
58
- # @param id [String]
59
- # @param accent [String]
60
- # @param age [String]
61
- # @param gender [String]
62
- # @param label [String]
63
- # @param language [String]
64
- # @param name [String]
65
- # @param provider [String]
43
+ # @!attribute voice_id
44
+ # Voice identifier.
45
+ #
46
+ # @return [String, nil]
47
+ optional :voice_id, String
48
+
49
+ # @!method initialize(gender: nil, language: nil, name: nil, provider: nil, voice_id: nil)
50
+ # A voice available for text-to-speech synthesis.
51
+ #
52
+ # @param gender [String] Voice gender.
53
+ #
54
+ # @param language [String] Language code.
55
+ #
56
+ # @param name [String] Voice name.
57
+ #
58
+ # @param provider [String] The TTS provider.
59
+ #
60
+ # @param voice_id [String] Voice identifier.
66
61
  end
67
62
  end
68
63
  end
@@ -3,13 +3,17 @@
3
3
  module Telnyx
4
4
  module Resources
5
5
  class TextToSpeech
6
- # Returns a list of voices that can be used with the text to speech commands.
6
+ # Retrieve a list of available voices from one or all TTS providers. When
7
+ # `provider` is specified, returns voices for that provider only. Otherwise,
8
+ # returns voices from all providers.
7
9
  #
8
- # @overload list_voices(elevenlabs_api_key_ref: nil, provider: nil, request_options: {})
10
+ # Some providers (ElevenLabs, Resemble) require an API key to list voices.
9
11
  #
10
- # @param elevenlabs_api_key_ref [String] Reference to your ElevenLabs API key stored in the Telnyx Portal
12
+ # @overload list_voices(api_key: nil, provider: nil, request_options: {})
11
13
  #
12
- # @param provider [Symbol, Telnyx::Models::TextToSpeechListVoicesParams::Provider] Filter voices by provider
14
+ # @param api_key [String] API key for providers that require one to list voices (e.g. ElevenLabs).
15
+ #
16
+ # @param provider [Symbol, Telnyx::Models::TextToSpeechListVoicesParams::Provider] Filter voices by provider. If omitted, voices from all providers are returned.
13
17
  #
14
18
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
15
19
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.47.0"
4
+ VERSION = "5.49.0"
5
5
  end
@@ -167,15 +167,15 @@ module Telnyx
167
167
  )
168
168
  )
169
169
  end
170
- attr_reader :method_
170
+ attr_reader :http_method
171
171
 
172
172
  sig do
173
173
  params(
174
- method_:
174
+ http_method:
175
175
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Method::OrSymbol
176
176
  ).void
177
177
  end
178
- attr_writer :method_
178
+ attr_writer :http_method
179
179
 
180
180
  # The path parameters the webhook tool accepts, described as a JSON Schema object.
181
181
  # These parameters will be passed to the webhook as the path of the request if the
@@ -241,7 +241,7 @@ module Telnyx
241
241
  T::Array[
242
242
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header::OrHash
243
243
  ],
244
- method_:
244
+ http_method:
245
245
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Method::OrSymbol,
246
246
  path_parameters:
247
247
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters::OrHash,
@@ -271,7 +271,7 @@ module Telnyx
271
271
  # The headers to be sent to the external tool.
272
272
  headers: nil,
273
273
  # The HTTP method to be used when calling the external tool.
274
- method_: nil,
274
+ http_method: nil,
275
275
  # The path parameters the webhook tool accepts, described as a JSON Schema object.
276
276
  # These parameters will be passed to the webhook as the path of the request if the
277
277
  # URL contains a placeholder for a value. See the
@@ -303,7 +303,7 @@ module Telnyx
303
303
  T::Array[
304
304
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header
305
305
  ],
306
- method_:
306
+ http_method:
307
307
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Method::OrSymbol,
308
308
  path_parameters:
309
309
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
@@ -353,22 +353,22 @@ module Telnyx
353
353
  )
354
354
  )
355
355
  end
356
- attr_reader :format_
356
+ attr_reader :file_format
357
357
 
358
358
  sig do
359
359
  params(
360
- format_:
360
+ file_format:
361
361
  Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol
362
362
  ).void
363
363
  end
364
- attr_writer :format_
364
+ attr_writer :file_format
365
365
 
366
366
  # Configuration for call recording format and channel settings.
367
367
  sig do
368
368
  params(
369
369
  channels:
370
370
  Telnyx::AI::TelephonySettings::RecordingSettings::Channels::OrSymbol,
371
- format_:
371
+ file_format:
372
372
  Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol
373
373
  ).returns(T.attached_class)
374
374
  end
@@ -376,7 +376,7 @@ module Telnyx
376
376
  # The number of channels for the recording. 'single' for mono, 'dual' for stereo.
377
377
  channels: nil,
378
378
  # The format of the recording file.
379
- format_: nil
379
+ file_format: nil
380
380
  )
381
381
  end
382
382
 
@@ -385,7 +385,7 @@ module Telnyx
385
385
  {
386
386
  channels:
387
387
  Telnyx::AI::TelephonySettings::RecordingSettings::Channels::OrSymbol,
388
- format_:
388
+ file_format:
389
389
  Telnyx::AI::TelephonySettings::RecordingSettings::Format::OrSymbol
390
390
  }
391
391
  )
@@ -116,14 +116,14 @@ module Telnyx
116
116
  T.nilable(Telnyx::AI::WebhookTool::Webhook::Method::OrSymbol)
117
117
  )
118
118
  end
119
- attr_reader :method_
119
+ attr_reader :http_method
120
120
 
121
121
  sig do
122
122
  params(
123
- method_: Telnyx::AI::WebhookTool::Webhook::Method::OrSymbol
123
+ http_method: Telnyx::AI::WebhookTool::Webhook::Method::OrSymbol
124
124
  ).void
125
125
  end
126
- attr_writer :method_
126
+ attr_writer :http_method
127
127
 
128
128
  # The path parameters the webhook tool accepts, described as a JSON Schema object.
129
129
  # These parameters will be passed to the webhook as the path of the request if the
@@ -172,7 +172,7 @@ module Telnyx
172
172
  Telnyx::AI::WebhookTool::Webhook::BodyParameters::OrHash,
173
173
  headers:
174
174
  T::Array[Telnyx::AI::WebhookTool::Webhook::Header::OrHash],
175
- method_: Telnyx::AI::WebhookTool::Webhook::Method::OrSymbol,
175
+ http_method: Telnyx::AI::WebhookTool::Webhook::Method::OrSymbol,
176
176
  path_parameters:
177
177
  Telnyx::AI::WebhookTool::Webhook::PathParameters::OrHash,
178
178
  query_parameters:
@@ -197,7 +197,7 @@ module Telnyx
197
197
  # The headers to be sent to the external tool.
198
198
  headers: nil,
199
199
  # The HTTP method to be used when calling the external tool.
200
- method_: nil,
200
+ http_method: nil,
201
201
  # The path parameters the webhook tool accepts, described as a JSON Schema object.
202
202
  # These parameters will be passed to the webhook as the path of the request if the
203
203
  # URL contains a placeholder for a value. See the
@@ -222,7 +222,7 @@ module Telnyx
222
222
  body_parameters:
223
223
  Telnyx::AI::WebhookTool::Webhook::BodyParameters,
224
224
  headers: T::Array[Telnyx::AI::WebhookTool::Webhook::Header],
225
- method_: Telnyx::AI::WebhookTool::Webhook::Method::OrSymbol,
225
+ http_method: Telnyx::AI::WebhookTool::Webhook::Method::OrSymbol,
226
226
  path_parameters:
227
227
  Telnyx::AI::WebhookTool::Webhook::PathParameters,
228
228
  query_parameters:
@@ -16,12 +16,14 @@ module Telnyx
16
16
  sig do
17
17
  returns(T.nilable(Telnyx::ResembleVoiceSettings::Format::OrSymbol))
18
18
  end
19
- attr_reader :format_
19
+ attr_reader :file_format
20
20
 
21
21
  sig do
22
- params(format_: Telnyx::ResembleVoiceSettings::Format::OrSymbol).void
22
+ params(
23
+ file_format: Telnyx::ResembleVoiceSettings::Format::OrSymbol
24
+ ).void
23
25
  end
24
- attr_writer :format_
26
+ attr_writer :file_format
25
27
 
26
28
  # Audio precision format.
27
29
  sig do
@@ -52,7 +54,7 @@ module Telnyx
52
54
  sig do
53
55
  params(
54
56
  type: Telnyx::ResembleVoiceSettings::Type::OrSymbol,
55
- format_: Telnyx::ResembleVoiceSettings::Format::OrSymbol,
57
+ file_format: Telnyx::ResembleVoiceSettings::Format::OrSymbol,
56
58
  precision: Telnyx::ResembleVoiceSettings::Precision::OrSymbol,
57
59
  sample_rate: Telnyx::ResembleVoiceSettings::SampleRate::OrSymbol
58
60
  ).returns(T.attached_class)
@@ -61,7 +63,7 @@ module Telnyx
61
63
  # Voice settings provider type
62
64
  type:,
63
65
  # Output audio format.
64
- format_: nil,
66
+ file_format: nil,
65
67
  # Audio precision format.
66
68
  precision: nil,
67
69
  # Audio sample rate in Hz.
@@ -73,7 +75,7 @@ module Telnyx
73
75
  override.returns(
74
76
  {
75
77
  type: Telnyx::ResembleVoiceSettings::Type::OrSymbol,
76
- format_: Telnyx::ResembleVoiceSettings::Format::OrSymbol,
78
+ file_format: Telnyx::ResembleVoiceSettings::Format::OrSymbol,
77
79
  precision: Telnyx::ResembleVoiceSettings::Precision::OrSymbol,
78
80
  sample_rate: Telnyx::ResembleVoiceSettings::SampleRate::OrSymbol
79
81
  }
@@ -11,14 +11,14 @@ module Telnyx
11
11
  T.any(Telnyx::TextToSpeechListVoicesParams, Telnyx::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Reference to your ElevenLabs API key stored in the Telnyx Portal
14
+ # API key for providers that require one to list voices (e.g. ElevenLabs).
15
15
  sig { returns(T.nilable(String)) }
16
- attr_reader :elevenlabs_api_key_ref
16
+ attr_reader :api_key
17
17
 
18
- sig { params(elevenlabs_api_key_ref: String).void }
19
- attr_writer :elevenlabs_api_key_ref
18
+ sig { params(api_key: String).void }
19
+ attr_writer :api_key
20
20
 
21
- # Filter voices by provider
21
+ # Filter voices by provider. If omitted, voices from all providers are returned.
22
22
  sig do
23
23
  returns(
24
24
  T.nilable(Telnyx::TextToSpeechListVoicesParams::Provider::OrSymbol)
@@ -35,15 +35,15 @@ module Telnyx
35
35
 
36
36
  sig do
37
37
  params(
38
- elevenlabs_api_key_ref: String,
38
+ api_key: String,
39
39
  provider: Telnyx::TextToSpeechListVoicesParams::Provider::OrSymbol,
40
40
  request_options: Telnyx::RequestOptions::OrHash
41
41
  ).returns(T.attached_class)
42
42
  end
43
43
  def self.new(
44
- # Reference to your ElevenLabs API key stored in the Telnyx Portal
45
- elevenlabs_api_key_ref: nil,
46
- # Filter voices by provider
44
+ # API key for providers that require one to list voices (e.g. ElevenLabs).
45
+ api_key: nil,
46
+ # Filter voices by provider. If omitted, voices from all providers are returned.
47
47
  provider: nil,
48
48
  request_options: {}
49
49
  )
@@ -52,7 +52,7 @@ module Telnyx
52
52
  sig do
53
53
  override.returns(
54
54
  {
55
- elevenlabs_api_key_ref: String,
55
+ api_key: String,
56
56
  provider: Telnyx::TextToSpeechListVoicesParams::Provider::OrSymbol,
57
57
  request_options: Telnyx::RequestOptions
58
58
  }
@@ -61,7 +61,7 @@ module Telnyx
61
61
  def to_hash
62
62
  end
63
63
 
64
- # Filter voices by provider
64
+ # Filter voices by provider. If omitted, voices from all providers are returned.
65
65
  module Provider
66
66
  extend Telnyx::Internal::Type::Enum
67
67
 
@@ -76,6 +76,11 @@ module Telnyx
76
76
  :aws,
77
77
  Telnyx::TextToSpeechListVoicesParams::Provider::TaggedSymbol
78
78
  )
79
+ TELNYX =
80
+ T.let(
81
+ :telnyx,
82
+ Telnyx::TextToSpeechListVoicesParams::Provider::TaggedSymbol
83
+ )
79
84
  AZURE =
80
85
  T.let(
81
86
  :azure,
@@ -86,9 +91,19 @@ module Telnyx
86
91
  :elevenlabs,
87
92
  Telnyx::TextToSpeechListVoicesParams::Provider::TaggedSymbol
88
93
  )
89
- TELNYX =
94
+ MINIMAX =
90
95
  T.let(
91
- :telnyx,
96
+ :minimax,
97
+ Telnyx::TextToSpeechListVoicesParams::Provider::TaggedSymbol
98
+ )
99
+ RIME =
100
+ T.let(
101
+ :rime,
102
+ Telnyx::TextToSpeechListVoicesParams::Provider::TaggedSymbol
103
+ )
104
+ RESEMBLE =
105
+ T.let(
106
+ :resemble,
92
107
  Telnyx::TextToSpeechListVoicesParams::Provider::TaggedSymbol
93
108
  )
94
109
 
@@ -30,6 +30,7 @@ module Telnyx
30
30
  end
31
31
  attr_writer :voices
32
32
 
33
+ # List of available voices.
33
34
  sig do
34
35
  params(
35
36
  voices:
@@ -61,89 +62,73 @@ module Telnyx
61
62
  )
62
63
  end
63
64
 
64
- sig { returns(T.nilable(String)) }
65
- attr_reader :id
66
-
67
- sig { params(id: String).void }
68
- attr_writer :id
69
-
70
- sig { returns(T.nilable(String)) }
71
- attr_reader :accent
72
-
73
- sig { params(accent: String).void }
74
- attr_writer :accent
75
-
76
- sig { returns(T.nilable(String)) }
77
- attr_reader :age
78
-
79
- sig { params(age: String).void }
80
- attr_writer :age
81
-
65
+ # Voice gender.
82
66
  sig { returns(T.nilable(String)) }
83
67
  attr_reader :gender
84
68
 
85
69
  sig { params(gender: String).void }
86
70
  attr_writer :gender
87
71
 
88
- sig { returns(T.nilable(String)) }
89
- attr_reader :label
90
-
91
- sig { params(label: String).void }
92
- attr_writer :label
93
-
72
+ # Language code.
94
73
  sig { returns(T.nilable(String)) }
95
74
  attr_reader :language
96
75
 
97
76
  sig { params(language: String).void }
98
77
  attr_writer :language
99
78
 
79
+ # Voice name.
100
80
  sig { returns(T.nilable(String)) }
101
81
  attr_reader :name
102
82
 
103
83
  sig { params(name: String).void }
104
84
  attr_writer :name
105
85
 
86
+ # The TTS provider.
106
87
  sig { returns(T.nilable(String)) }
107
88
  attr_reader :provider
108
89
 
109
90
  sig { params(provider: String).void }
110
91
  attr_writer :provider
111
92
 
93
+ # Voice identifier.
94
+ sig { returns(T.nilable(String)) }
95
+ attr_reader :voice_id
96
+
97
+ sig { params(voice_id: String).void }
98
+ attr_writer :voice_id
99
+
100
+ # A voice available for text-to-speech synthesis.
112
101
  sig do
113
102
  params(
114
- id: String,
115
- accent: String,
116
- age: String,
117
103
  gender: String,
118
- label: String,
119
104
  language: String,
120
105
  name: String,
121
- provider: String
106
+ provider: String,
107
+ voice_id: String
122
108
  ).returns(T.attached_class)
123
109
  end
124
110
  def self.new(
125
- id: nil,
126
- accent: nil,
127
- age: nil,
111
+ # Voice gender.
128
112
  gender: nil,
129
- label: nil,
113
+ # Language code.
130
114
  language: nil,
115
+ # Voice name.
131
116
  name: nil,
132
- provider: nil
117
+ # The TTS provider.
118
+ provider: nil,
119
+ # Voice identifier.
120
+ voice_id: nil
133
121
  )
134
122
  end
135
123
 
136
124
  sig do
137
125
  override.returns(
138
126
  {
139
- id: String,
140
- accent: String,
141
- age: String,
142
127
  gender: String,
143
- label: String,
144
128
  language: String,
145
129
  name: String,
146
- provider: String
130
+ provider: String,
131
+ voice_id: String
147
132
  }
148
133
  )
149
134
  end
@@ -3,18 +3,22 @@
3
3
  module Telnyx
4
4
  module Resources
5
5
  class TextToSpeech
6
- # Returns a list of voices that can be used with the text to speech commands.
6
+ # Retrieve a list of available voices from one or all TTS providers. When
7
+ # `provider` is specified, returns voices for that provider only. Otherwise,
8
+ # returns voices from all providers.
9
+ #
10
+ # Some providers (ElevenLabs, Resemble) require an API key to list voices.
7
11
  sig do
8
12
  params(
9
- elevenlabs_api_key_ref: String,
13
+ api_key: String,
10
14
  provider: Telnyx::TextToSpeechListVoicesParams::Provider::OrSymbol,
11
15
  request_options: Telnyx::RequestOptions::OrHash
12
16
  ).returns(Telnyx::Models::TextToSpeechListVoicesResponse)
13
17
  end
14
18
  def list_voices(
15
- # Reference to your ElevenLabs API key stored in the Telnyx Portal
16
- elevenlabs_api_key_ref: nil,
17
- # Filter voices by provider
19
+ # API key for providers that require one to list voices (e.g. ElevenLabs).
20
+ api_key: nil,
21
+ # Filter voices by provider. If omitted, voices from all providers are returned.
18
22
  provider: nil,
19
23
  request_options: {}
20
24
  )
@@ -40,7 +40,7 @@ module Telnyx
40
40
  async: bool,
41
41
  body_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::BodyParameters,
42
42
  headers: ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header],
43
- method_: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
43
+ http_method: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
44
44
  path_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
45
45
  query_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters,
46
46
  timeout_ms: Integer
@@ -69,9 +69,9 @@ module Telnyx
69
69
  ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header]
70
70
  ) -> ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header]
71
71
 
72
- attr_reader method_: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_?
72
+ attr_reader http_method: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_?
73
73
 
74
- def method_=: (
74
+ def http_method=: (
75
75
  Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_
76
76
  ) -> Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_
77
77
 
@@ -98,7 +98,7 @@ module Telnyx
98
98
  ?async: bool,
99
99
  ?body_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::BodyParameters,
100
100
  ?headers: ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header],
101
- ?method_: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
101
+ ?http_method: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
102
102
  ?path_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
103
103
  ?query_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters,
104
104
  ?timeout_ms: Integer
@@ -111,7 +111,7 @@ module Telnyx
111
111
  async: bool,
112
112
  body_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::BodyParameters,
113
113
  headers: ::Array[Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::Header],
114
- method_: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
114
+ http_method: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::method_,
115
115
  path_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::PathParameters,
116
116
  query_parameters: Telnyx::AI::InferenceEmbeddingWebhookToolParams::Webhook::QueryParameters,
117
117
  timeout_ms: Integer
@@ -129,7 +129,7 @@ module Telnyx
129
129
  type recording_settings =
130
130
  {
131
131
  channels: Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels,
132
- format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
132
+ file_format: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
133
133
  }
134
134
 
135
135
  class RecordingSettings < Telnyx::Internal::Type::BaseModel
@@ -139,20 +139,20 @@ module Telnyx
139
139
  Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels
140
140
  ) -> Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels
141
141
 
142
- attr_reader format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_?
142
+ attr_reader file_format: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_?
143
143
 
144
- def format_=: (
144
+ def file_format=: (
145
145
  Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
146
146
  ) -> Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
147
147
 
148
148
  def initialize: (
149
149
  ?channels: Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels,
150
- ?format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
150
+ ?file_format: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
151
151
  ) -> void
152
152
 
153
153
  def to_hash: -> {
154
154
  channels: Telnyx::Models::AI::TelephonySettings::RecordingSettings::channels,
155
- format_: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
155
+ file_format: Telnyx::Models::AI::TelephonySettings::RecordingSettings::format_
156
156
  }
157
157
 
158
158
  type channels = :single | :dual
@@ -39,7 +39,7 @@ module Telnyx
39
39
  url: String,
40
40
  body_parameters: Telnyx::AI::WebhookTool::Webhook::BodyParameters,
41
41
  headers: ::Array[Telnyx::AI::WebhookTool::Webhook::Header],
42
- method_: Telnyx::Models::AI::WebhookTool::Webhook::method_,
42
+ http_method: Telnyx::Models::AI::WebhookTool::Webhook::method_,
43
43
  path_parameters: Telnyx::AI::WebhookTool::Webhook::PathParameters,
44
44
  query_parameters: Telnyx::AI::WebhookTool::Webhook::QueryParameters
45
45
  }
@@ -63,9 +63,9 @@ module Telnyx
63
63
  ::Array[Telnyx::AI::WebhookTool::Webhook::Header]
64
64
  ) -> ::Array[Telnyx::AI::WebhookTool::Webhook::Header]
65
65
 
66
- attr_reader method_: Telnyx::Models::AI::WebhookTool::Webhook::method_?
66
+ attr_reader http_method: Telnyx::Models::AI::WebhookTool::Webhook::method_?
67
67
 
68
- def method_=: (
68
+ def http_method=: (
69
69
  Telnyx::Models::AI::WebhookTool::Webhook::method_
70
70
  ) -> Telnyx::Models::AI::WebhookTool::Webhook::method_
71
71
 
@@ -87,7 +87,7 @@ module Telnyx
87
87
  url: String,
88
88
  ?body_parameters: Telnyx::AI::WebhookTool::Webhook::BodyParameters,
89
89
  ?headers: ::Array[Telnyx::AI::WebhookTool::Webhook::Header],
90
- ?method_: Telnyx::Models::AI::WebhookTool::Webhook::method_,
90
+ ?http_method: Telnyx::Models::AI::WebhookTool::Webhook::method_,
91
91
  ?path_parameters: Telnyx::AI::WebhookTool::Webhook::PathParameters,
92
92
  ?query_parameters: Telnyx::AI::WebhookTool::Webhook::QueryParameters
93
93
  ) -> void
@@ -98,7 +98,7 @@ module Telnyx
98
98
  url: String,
99
99
  body_parameters: Telnyx::AI::WebhookTool::Webhook::BodyParameters,
100
100
  headers: ::Array[Telnyx::AI::WebhookTool::Webhook::Header],
101
- method_: Telnyx::Models::AI::WebhookTool::Webhook::method_,
101
+ http_method: Telnyx::Models::AI::WebhookTool::Webhook::method_,
102
102
  path_parameters: Telnyx::AI::WebhookTool::Webhook::PathParameters,
103
103
  query_parameters: Telnyx::AI::WebhookTool::Webhook::QueryParameters
104
104
  }
@@ -3,7 +3,7 @@ module Telnyx
3
3
  type resemble_voice_settings =
4
4
  {
5
5
  type: Telnyx::Models::ResembleVoiceSettings::type_,
6
- format_: Telnyx::Models::ResembleVoiceSettings::format_,
6
+ file_format: Telnyx::Models::ResembleVoiceSettings::format_,
7
7
  precision: Telnyx::Models::ResembleVoiceSettings::precision,
8
8
  sample_rate: Telnyx::Models::ResembleVoiceSettings::sample_rate
9
9
  }
@@ -11,9 +11,9 @@ module Telnyx
11
11
  class ResembleVoiceSettings < Telnyx::Internal::Type::BaseModel
12
12
  attr_accessor type: Telnyx::Models::ResembleVoiceSettings::type_
13
13
 
14
- attr_reader format_: Telnyx::Models::ResembleVoiceSettings::format_?
14
+ attr_reader file_format: Telnyx::Models::ResembleVoiceSettings::format_?
15
15
 
16
- def format_=: (
16
+ def file_format=: (
17
17
  Telnyx::Models::ResembleVoiceSettings::format_
18
18
  ) -> Telnyx::Models::ResembleVoiceSettings::format_
19
19
 
@@ -31,14 +31,14 @@ module Telnyx
31
31
 
32
32
  def initialize: (
33
33
  type: Telnyx::Models::ResembleVoiceSettings::type_,
34
- ?format_: Telnyx::Models::ResembleVoiceSettings::format_,
34
+ ?file_format: Telnyx::Models::ResembleVoiceSettings::format_,
35
35
  ?precision: Telnyx::Models::ResembleVoiceSettings::precision,
36
36
  ?sample_rate: Telnyx::Models::ResembleVoiceSettings::sample_rate
37
37
  ) -> void
38
38
 
39
39
  def to_hash: -> {
40
40
  type: Telnyx::Models::ResembleVoiceSettings::type_,
41
- format_: Telnyx::Models::ResembleVoiceSettings::format_,
41
+ file_format: Telnyx::Models::ResembleVoiceSettings::format_,
42
42
  precision: Telnyx::Models::ResembleVoiceSettings::precision,
43
43
  sample_rate: Telnyx::Models::ResembleVoiceSettings::sample_rate
44
44
  }
@@ -2,7 +2,7 @@ module Telnyx
2
2
  module Models
3
3
  type text_to_speech_list_voices_params =
4
4
  {
5
- elevenlabs_api_key_ref: String,
5
+ api_key: String,
6
6
  provider: Telnyx::Models::TextToSpeechListVoicesParams::provider
7
7
  }
8
8
  & Telnyx::Internal::Type::request_parameters
@@ -11,9 +11,9 @@ module Telnyx
11
11
  extend Telnyx::Internal::Type::RequestParameters::Converter
12
12
  include Telnyx::Internal::Type::RequestParameters
13
13
 
14
- attr_reader elevenlabs_api_key_ref: String?
14
+ attr_reader api_key: String?
15
15
 
16
- def elevenlabs_api_key_ref=: (String) -> String
16
+ def api_key=: (String) -> String
17
17
 
18
18
  attr_reader provider: Telnyx::Models::TextToSpeechListVoicesParams::provider?
19
19
 
@@ -22,26 +22,30 @@ module Telnyx
22
22
  ) -> Telnyx::Models::TextToSpeechListVoicesParams::provider
23
23
 
24
24
  def initialize: (
25
- ?elevenlabs_api_key_ref: String,
25
+ ?api_key: String,
26
26
  ?provider: Telnyx::Models::TextToSpeechListVoicesParams::provider,
27
27
  ?request_options: Telnyx::request_opts
28
28
  ) -> void
29
29
 
30
30
  def to_hash: -> {
31
- elevenlabs_api_key_ref: String,
31
+ api_key: String,
32
32
  provider: Telnyx::Models::TextToSpeechListVoicesParams::provider,
33
33
  request_options: Telnyx::RequestOptions
34
34
  }
35
35
 
36
- type provider = :aws | :azure | :elevenlabs | :telnyx
36
+ type provider =
37
+ :aws | :telnyx | :azure | :elevenlabs | :minimax | :rime | :resemble
37
38
 
38
39
  module Provider
39
40
  extend Telnyx::Internal::Type::Enum
40
41
 
41
42
  AWS: :aws
43
+ TELNYX: :telnyx
42
44
  AZURE: :azure
43
45
  ELEVENLABS: :elevenlabs
44
- TELNYX: :telnyx
46
+ MINIMAX: :minimax
47
+ RIME: :rime
48
+ RESEMBLE: :resemble
45
49
 
46
50
  def self?.values: -> ::Array[Telnyx::Models::TextToSpeechListVoicesParams::provider]
47
51
  end
@@ -20,37 +20,18 @@ module Telnyx
20
20
 
21
21
  type voice =
22
22
  {
23
- id: String,
24
- accent: String,
25
- age: String,
26
23
  gender: String,
27
- label: String,
28
24
  language: String,
29
25
  name: String,
30
- provider: String
26
+ provider: String,
27
+ voice_id: String
31
28
  }
32
29
 
33
30
  class Voice < Telnyx::Internal::Type::BaseModel
34
- attr_reader id: String?
35
-
36
- def id=: (String) -> String
37
-
38
- attr_reader accent: String?
39
-
40
- def accent=: (String) -> String
41
-
42
- attr_reader age: String?
43
-
44
- def age=: (String) -> String
45
-
46
31
  attr_reader gender: String?
47
32
 
48
33
  def gender=: (String) -> String
49
34
 
50
- attr_reader label: String?
51
-
52
- def label=: (String) -> String
53
-
54
35
  attr_reader language: String?
55
36
 
56
37
  def language=: (String) -> String
@@ -63,26 +44,24 @@ module Telnyx
63
44
 
64
45
  def provider=: (String) -> String
65
46
 
47
+ attr_reader voice_id: String?
48
+
49
+ def voice_id=: (String) -> String
50
+
66
51
  def initialize: (
67
- ?id: String,
68
- ?accent: String,
69
- ?age: String,
70
52
  ?gender: String,
71
- ?label: String,
72
53
  ?language: String,
73
54
  ?name: String,
74
- ?provider: String
55
+ ?provider: String,
56
+ ?voice_id: String
75
57
  ) -> void
76
58
 
77
59
  def to_hash: -> {
78
- id: String,
79
- accent: String,
80
- age: String,
81
60
  gender: String,
82
- label: String,
83
61
  language: String,
84
62
  name: String,
85
- provider: String
63
+ provider: String,
64
+ voice_id: String
86
65
  }
87
66
  end
88
67
  end
@@ -2,7 +2,7 @@ module Telnyx
2
2
  module Resources
3
3
  class TextToSpeech
4
4
  def list_voices: (
5
- ?elevenlabs_api_key_ref: String,
5
+ ?api_key: String,
6
6
  ?provider: Telnyx::Models::TextToSpeechListVoicesParams::provider,
7
7
  ?request_options: Telnyx::request_opts
8
8
  ) -> Telnyx::Models::TextToSpeechListVoicesResponse
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.47.0
4
+ version: 5.49.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-26 00:00:00.000000000 Z
11
+ date: 2026-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi