telnyx 5.90.0 → 5.92.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/calls/transcription_start_request.rb +171 -3
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +490 -0
- data/rbi/telnyx/resources/calls/actions.rbi +2 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +187 -1
- 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: 7221f8fcb13d30fb968c42120f4cae29c5ba92368dfb36bf64b410ea0368db2f
|
|
4
|
+
data.tar.gz: 508f1acdf88318ee46178cd233ba7ea30164f505d13bc77195b8ef11d9728715
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00dcc00ec7124899d505d1e194e338d7eb3364802cee4ff92b679dafc0b862264c41689fa423731c75fc263c009c9d6941353d67727f3e6030f835fe5ead7145
|
|
7
|
+
data.tar.gz: b5fda3951738d0d6fe716a3719babb78dc1bcf11d95ff395be1cd39e1a6f611002ca94c44ef5c659e9f87c232eef1e262e6dd6494008338c7b8b5982cb48384f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.92.0 (2026-04-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.91.0...v5.92.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.91.0...v5.92.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Add xAI and AssemblyAI transcription engines to call-control API docs ([a730f6f](https://github.com/team-telnyx/telnyx-ruby/commit/a730f6f98c70d1d6ba3581c0e0b87f47df44ea1a))
|
|
10
|
+
|
|
11
|
+
## 5.91.0 (2026-04-29)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v5.90.0...v5.91.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.90.0...v5.91.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([6728962](https://github.com/team-telnyx/telnyx-ruby/commit/67289626f38bab94be5678e7ab50cba1fed10eeb))
|
|
18
|
+
|
|
3
19
|
## 5.90.0 (2026-04-28)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v5.89.0...v5.90.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.89.0...v5.90.0)
|
data/README.md
CHANGED
|
@@ -27,7 +27,7 @@ module Telnyx
|
|
|
27
27
|
|
|
28
28
|
# @!attribute transcription_engine_config
|
|
29
29
|
#
|
|
30
|
-
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, nil]
|
|
30
|
+
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, nil]
|
|
31
31
|
optional :transcription_engine_config,
|
|
32
32
|
union: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig }
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ module Telnyx
|
|
|
49
49
|
#
|
|
50
50
|
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
51
51
|
#
|
|
52
|
-
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
52
|
+
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
53
53
|
#
|
|
54
54
|
# @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
|
|
55
55
|
|
|
@@ -64,6 +64,8 @@ module Telnyx
|
|
|
64
64
|
TELNYX = :Telnyx
|
|
65
65
|
DEEPGRAM = :Deepgram
|
|
66
66
|
AZURE = :Azure
|
|
67
|
+
X_AI = :xAI
|
|
68
|
+
ASSEMBLY_AI = :AssemblyAI
|
|
67
69
|
A = :A
|
|
68
70
|
B = :B
|
|
69
71
|
|
|
@@ -83,6 +85,11 @@ module Telnyx
|
|
|
83
85
|
|
|
84
86
|
variant :Azure, -> { Telnyx::Calls::TranscriptionEngineAzureConfig }
|
|
85
87
|
|
|
88
|
+
variant :xAI, -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI }
|
|
89
|
+
|
|
90
|
+
variant :AssemblyAI,
|
|
91
|
+
-> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI }
|
|
92
|
+
|
|
86
93
|
variant :A, -> { Telnyx::Calls::TranscriptionEngineAConfig }
|
|
87
94
|
|
|
88
95
|
variant :B, -> { Telnyx::Calls::TranscriptionEngineBConfig }
|
|
@@ -91,8 +98,169 @@ module Telnyx
|
|
|
91
98
|
|
|
92
99
|
variant :"deepgram/nova-3", -> { Telnyx::Calls::DeepgramNova3Config }
|
|
93
100
|
|
|
101
|
+
class XAI < Telnyx::Internal::Type::BaseModel
|
|
102
|
+
# @!attribute interim_results
|
|
103
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
104
|
+
# be sent.
|
|
105
|
+
#
|
|
106
|
+
# @return [Boolean, nil]
|
|
107
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
108
|
+
|
|
109
|
+
# @!attribute language
|
|
110
|
+
# Language to use for speech recognition
|
|
111
|
+
#
|
|
112
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language, nil]
|
|
113
|
+
optional :language,
|
|
114
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language }
|
|
115
|
+
|
|
116
|
+
# @!attribute transcription_engine
|
|
117
|
+
# Engine identifier for xAI transcription service
|
|
118
|
+
#
|
|
119
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine, nil]
|
|
120
|
+
optional :transcription_engine,
|
|
121
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine }
|
|
122
|
+
|
|
123
|
+
# @!attribute transcription_model
|
|
124
|
+
# The model to use for transcription.
|
|
125
|
+
#
|
|
126
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel, nil]
|
|
127
|
+
optional :transcription_model,
|
|
128
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel }
|
|
129
|
+
|
|
130
|
+
# @!method initialize(interim_results: nil, language: nil, transcription_engine: nil, transcription_model: nil)
|
|
131
|
+
# Some parameter documentations has been truncated, see
|
|
132
|
+
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI}
|
|
133
|
+
# for more details.
|
|
134
|
+
#
|
|
135
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
136
|
+
#
|
|
137
|
+
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language] Language to use for speech recognition
|
|
138
|
+
#
|
|
139
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine] Engine identifier for xAI transcription service
|
|
140
|
+
#
|
|
141
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel] The model to use for transcription.
|
|
142
|
+
|
|
143
|
+
# Language to use for speech recognition
|
|
144
|
+
#
|
|
145
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#language
|
|
146
|
+
module Language
|
|
147
|
+
extend Telnyx::Internal::Type::Enum
|
|
148
|
+
|
|
149
|
+
AR = :ar
|
|
150
|
+
CS = :cs
|
|
151
|
+
DA = :da
|
|
152
|
+
DE = :de
|
|
153
|
+
EN = :en
|
|
154
|
+
ES = :es
|
|
155
|
+
FA = :fa
|
|
156
|
+
FIL = :fil
|
|
157
|
+
FR = :fr
|
|
158
|
+
HI = :hi
|
|
159
|
+
ID = :id
|
|
160
|
+
IT = :it
|
|
161
|
+
JA = :ja
|
|
162
|
+
KO = :ko
|
|
163
|
+
MK = :mk
|
|
164
|
+
MS = :ms
|
|
165
|
+
NL = :nl
|
|
166
|
+
PL = :pl
|
|
167
|
+
PT = :pt
|
|
168
|
+
RO = :ro
|
|
169
|
+
RU = :ru
|
|
170
|
+
SV = :sv
|
|
171
|
+
TH = :th
|
|
172
|
+
TR = :tr
|
|
173
|
+
VI = :vi
|
|
174
|
+
|
|
175
|
+
# @!method self.values
|
|
176
|
+
# @return [Array<Symbol>]
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Engine identifier for xAI transcription service
|
|
180
|
+
#
|
|
181
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#transcription_engine
|
|
182
|
+
module TranscriptionEngine
|
|
183
|
+
extend Telnyx::Internal::Type::Enum
|
|
184
|
+
|
|
185
|
+
X_AI = :xAI
|
|
186
|
+
|
|
187
|
+
# @!method self.values
|
|
188
|
+
# @return [Array<Symbol>]
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# The model to use for transcription.
|
|
192
|
+
#
|
|
193
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#transcription_model
|
|
194
|
+
module TranscriptionModel
|
|
195
|
+
extend Telnyx::Internal::Type::Enum
|
|
196
|
+
|
|
197
|
+
XAI_GROK_STT = :"xai/grok-stt"
|
|
198
|
+
|
|
199
|
+
# @!method self.values
|
|
200
|
+
# @return [Array<Symbol>]
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
class AssemblyAI < Telnyx::Internal::Type::BaseModel
|
|
205
|
+
# @!attribute interim_results
|
|
206
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
207
|
+
# be sent.
|
|
208
|
+
#
|
|
209
|
+
# @return [Boolean, nil]
|
|
210
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
211
|
+
|
|
212
|
+
# @!attribute transcription_engine
|
|
213
|
+
# Engine identifier for AssemblyAI transcription service
|
|
214
|
+
#
|
|
215
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine, nil]
|
|
216
|
+
optional :transcription_engine,
|
|
217
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine }
|
|
218
|
+
|
|
219
|
+
# @!attribute transcription_model
|
|
220
|
+
# The model to use for transcription.
|
|
221
|
+
#
|
|
222
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel, nil]
|
|
223
|
+
optional :transcription_model,
|
|
224
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel }
|
|
225
|
+
|
|
226
|
+
# @!method initialize(interim_results: nil, transcription_engine: nil, transcription_model: nil)
|
|
227
|
+
# Some parameter documentations has been truncated, see
|
|
228
|
+
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI}
|
|
229
|
+
# for more details.
|
|
230
|
+
#
|
|
231
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
232
|
+
#
|
|
233
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine] Engine identifier for AssemblyAI transcription service
|
|
234
|
+
#
|
|
235
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel] The model to use for transcription.
|
|
236
|
+
|
|
237
|
+
# Engine identifier for AssemblyAI transcription service
|
|
238
|
+
#
|
|
239
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI#transcription_engine
|
|
240
|
+
module TranscriptionEngine
|
|
241
|
+
extend Telnyx::Internal::Type::Enum
|
|
242
|
+
|
|
243
|
+
ASSEMBLY_AI = :AssemblyAI
|
|
244
|
+
|
|
245
|
+
# @!method self.values
|
|
246
|
+
# @return [Array<Symbol>]
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# The model to use for transcription.
|
|
250
|
+
#
|
|
251
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI#transcription_model
|
|
252
|
+
module TranscriptionModel
|
|
253
|
+
extend Telnyx::Internal::Type::Enum
|
|
254
|
+
|
|
255
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
|
|
256
|
+
|
|
257
|
+
# @!method self.values
|
|
258
|
+
# @return [Array<Symbol>]
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
94
262
|
# @!method self.variants
|
|
95
|
-
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
|
|
263
|
+
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
|
|
96
264
|
end
|
|
97
265
|
end
|
|
98
266
|
end
|
|
@@ -1256,7 +1256,7 @@ module Telnyx
|
|
|
1256
1256
|
#
|
|
1257
1257
|
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
1258
1258
|
#
|
|
1259
|
-
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
1259
|
+
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
1260
1260
|
#
|
|
1261
1261
|
# @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
|
|
1262
1262
|
#
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -54,6 +54,8 @@ module Telnyx
|
|
|
54
54
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
55
55
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
56
56
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
57
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
58
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
57
59
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
58
60
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
59
61
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -71,6 +73,8 @@ module Telnyx
|
|
|
71
73
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
72
74
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
73
75
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
76
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::OrHash,
|
|
77
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::OrHash,
|
|
74
78
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
75
79
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
76
80
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
@@ -100,6 +104,8 @@ module Telnyx
|
|
|
100
104
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
101
105
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
102
106
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
107
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::OrHash,
|
|
108
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::OrHash,
|
|
103
109
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
104
110
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
105
111
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
@@ -138,6 +144,8 @@ module Telnyx
|
|
|
138
144
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
139
145
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
140
146
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
147
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
148
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
141
149
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
142
150
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
143
151
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -184,6 +192,16 @@ module Telnyx
|
|
|
184
192
|
:Azure,
|
|
185
193
|
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
|
|
186
194
|
)
|
|
195
|
+
X_AI =
|
|
196
|
+
T.let(
|
|
197
|
+
:xAI,
|
|
198
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
|
|
199
|
+
)
|
|
200
|
+
ASSEMBLY_AI =
|
|
201
|
+
T.let(
|
|
202
|
+
:AssemblyAI,
|
|
203
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
|
|
204
|
+
)
|
|
187
205
|
A =
|
|
188
206
|
T.let(
|
|
189
207
|
:A,
|
|
@@ -215,6 +233,8 @@ module Telnyx
|
|
|
215
233
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
216
234
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
217
235
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
236
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
237
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
218
238
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
219
239
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
220
240
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -222,6 +242,476 @@ module Telnyx
|
|
|
222
242
|
)
|
|
223
243
|
end
|
|
224
244
|
|
|
245
|
+
class XAI < Telnyx::Internal::Type::BaseModel
|
|
246
|
+
OrHash =
|
|
247
|
+
T.type_alias do
|
|
248
|
+
T.any(
|
|
249
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
250
|
+
Telnyx::Internal::AnyHash
|
|
251
|
+
)
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
255
|
+
# be sent.
|
|
256
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
257
|
+
attr_reader :interim_results
|
|
258
|
+
|
|
259
|
+
sig { params(interim_results: T::Boolean).void }
|
|
260
|
+
attr_writer :interim_results
|
|
261
|
+
|
|
262
|
+
# Language to use for speech recognition
|
|
263
|
+
sig do
|
|
264
|
+
returns(
|
|
265
|
+
T.nilable(
|
|
266
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol
|
|
267
|
+
)
|
|
268
|
+
)
|
|
269
|
+
end
|
|
270
|
+
attr_reader :language
|
|
271
|
+
|
|
272
|
+
sig do
|
|
273
|
+
params(
|
|
274
|
+
language:
|
|
275
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol
|
|
276
|
+
).void
|
|
277
|
+
end
|
|
278
|
+
attr_writer :language
|
|
279
|
+
|
|
280
|
+
# Engine identifier for xAI transcription service
|
|
281
|
+
sig do
|
|
282
|
+
returns(
|
|
283
|
+
T.nilable(
|
|
284
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol
|
|
285
|
+
)
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
attr_reader :transcription_engine
|
|
289
|
+
|
|
290
|
+
sig do
|
|
291
|
+
params(
|
|
292
|
+
transcription_engine:
|
|
293
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol
|
|
294
|
+
).void
|
|
295
|
+
end
|
|
296
|
+
attr_writer :transcription_engine
|
|
297
|
+
|
|
298
|
+
# The model to use for transcription.
|
|
299
|
+
sig do
|
|
300
|
+
returns(
|
|
301
|
+
T.nilable(
|
|
302
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
303
|
+
)
|
|
304
|
+
)
|
|
305
|
+
end
|
|
306
|
+
attr_reader :transcription_model
|
|
307
|
+
|
|
308
|
+
sig do
|
|
309
|
+
params(
|
|
310
|
+
transcription_model:
|
|
311
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
312
|
+
).void
|
|
313
|
+
end
|
|
314
|
+
attr_writer :transcription_model
|
|
315
|
+
|
|
316
|
+
sig do
|
|
317
|
+
params(
|
|
318
|
+
interim_results: T::Boolean,
|
|
319
|
+
language:
|
|
320
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol,
|
|
321
|
+
transcription_engine:
|
|
322
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol,
|
|
323
|
+
transcription_model:
|
|
324
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
325
|
+
).returns(T.attached_class)
|
|
326
|
+
end
|
|
327
|
+
def self.new(
|
|
328
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
329
|
+
# be sent.
|
|
330
|
+
interim_results: nil,
|
|
331
|
+
# Language to use for speech recognition
|
|
332
|
+
language: nil,
|
|
333
|
+
# Engine identifier for xAI transcription service
|
|
334
|
+
transcription_engine: nil,
|
|
335
|
+
# The model to use for transcription.
|
|
336
|
+
transcription_model: nil
|
|
337
|
+
)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
sig do
|
|
341
|
+
override.returns(
|
|
342
|
+
{
|
|
343
|
+
interim_results: T::Boolean,
|
|
344
|
+
language:
|
|
345
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol,
|
|
346
|
+
transcription_engine:
|
|
347
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol,
|
|
348
|
+
transcription_model:
|
|
349
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
350
|
+
}
|
|
351
|
+
)
|
|
352
|
+
end
|
|
353
|
+
def to_hash
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# Language to use for speech recognition
|
|
357
|
+
module Language
|
|
358
|
+
extend Telnyx::Internal::Type::Enum
|
|
359
|
+
|
|
360
|
+
TaggedSymbol =
|
|
361
|
+
T.type_alias do
|
|
362
|
+
T.all(
|
|
363
|
+
Symbol,
|
|
364
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language
|
|
365
|
+
)
|
|
366
|
+
end
|
|
367
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
368
|
+
|
|
369
|
+
AR =
|
|
370
|
+
T.let(
|
|
371
|
+
:ar,
|
|
372
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
373
|
+
)
|
|
374
|
+
CS =
|
|
375
|
+
T.let(
|
|
376
|
+
:cs,
|
|
377
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
378
|
+
)
|
|
379
|
+
DA =
|
|
380
|
+
T.let(
|
|
381
|
+
:da,
|
|
382
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
383
|
+
)
|
|
384
|
+
DE =
|
|
385
|
+
T.let(
|
|
386
|
+
:de,
|
|
387
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
388
|
+
)
|
|
389
|
+
EN =
|
|
390
|
+
T.let(
|
|
391
|
+
:en,
|
|
392
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
393
|
+
)
|
|
394
|
+
ES =
|
|
395
|
+
T.let(
|
|
396
|
+
:es,
|
|
397
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
398
|
+
)
|
|
399
|
+
FA =
|
|
400
|
+
T.let(
|
|
401
|
+
:fa,
|
|
402
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
403
|
+
)
|
|
404
|
+
FIL =
|
|
405
|
+
T.let(
|
|
406
|
+
:fil,
|
|
407
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
408
|
+
)
|
|
409
|
+
FR =
|
|
410
|
+
T.let(
|
|
411
|
+
:fr,
|
|
412
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
413
|
+
)
|
|
414
|
+
HI =
|
|
415
|
+
T.let(
|
|
416
|
+
:hi,
|
|
417
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
418
|
+
)
|
|
419
|
+
ID =
|
|
420
|
+
T.let(
|
|
421
|
+
:id,
|
|
422
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
423
|
+
)
|
|
424
|
+
IT =
|
|
425
|
+
T.let(
|
|
426
|
+
:it,
|
|
427
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
428
|
+
)
|
|
429
|
+
JA =
|
|
430
|
+
T.let(
|
|
431
|
+
:ja,
|
|
432
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
433
|
+
)
|
|
434
|
+
KO =
|
|
435
|
+
T.let(
|
|
436
|
+
:ko,
|
|
437
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
438
|
+
)
|
|
439
|
+
MK =
|
|
440
|
+
T.let(
|
|
441
|
+
:mk,
|
|
442
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
443
|
+
)
|
|
444
|
+
MS =
|
|
445
|
+
T.let(
|
|
446
|
+
:ms,
|
|
447
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
448
|
+
)
|
|
449
|
+
NL =
|
|
450
|
+
T.let(
|
|
451
|
+
:nl,
|
|
452
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
453
|
+
)
|
|
454
|
+
PL =
|
|
455
|
+
T.let(
|
|
456
|
+
:pl,
|
|
457
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
458
|
+
)
|
|
459
|
+
PT =
|
|
460
|
+
T.let(
|
|
461
|
+
:pt,
|
|
462
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
463
|
+
)
|
|
464
|
+
RO =
|
|
465
|
+
T.let(
|
|
466
|
+
:ro,
|
|
467
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
468
|
+
)
|
|
469
|
+
RU =
|
|
470
|
+
T.let(
|
|
471
|
+
:ru,
|
|
472
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
473
|
+
)
|
|
474
|
+
SV =
|
|
475
|
+
T.let(
|
|
476
|
+
:sv,
|
|
477
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
478
|
+
)
|
|
479
|
+
TH =
|
|
480
|
+
T.let(
|
|
481
|
+
:th,
|
|
482
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
483
|
+
)
|
|
484
|
+
TR =
|
|
485
|
+
T.let(
|
|
486
|
+
:tr,
|
|
487
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
488
|
+
)
|
|
489
|
+
VI =
|
|
490
|
+
T.let(
|
|
491
|
+
:vi,
|
|
492
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
sig do
|
|
496
|
+
override.returns(
|
|
497
|
+
T::Array[
|
|
498
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
499
|
+
]
|
|
500
|
+
)
|
|
501
|
+
end
|
|
502
|
+
def self.values
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# Engine identifier for xAI transcription service
|
|
507
|
+
module TranscriptionEngine
|
|
508
|
+
extend Telnyx::Internal::Type::Enum
|
|
509
|
+
|
|
510
|
+
TaggedSymbol =
|
|
511
|
+
T.type_alias do
|
|
512
|
+
T.all(
|
|
513
|
+
Symbol,
|
|
514
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine
|
|
515
|
+
)
|
|
516
|
+
end
|
|
517
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
518
|
+
|
|
519
|
+
X_AI =
|
|
520
|
+
T.let(
|
|
521
|
+
:xAI,
|
|
522
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::TaggedSymbol
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
sig do
|
|
526
|
+
override.returns(
|
|
527
|
+
T::Array[
|
|
528
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::TaggedSymbol
|
|
529
|
+
]
|
|
530
|
+
)
|
|
531
|
+
end
|
|
532
|
+
def self.values
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# The model to use for transcription.
|
|
537
|
+
module TranscriptionModel
|
|
538
|
+
extend Telnyx::Internal::Type::Enum
|
|
539
|
+
|
|
540
|
+
TaggedSymbol =
|
|
541
|
+
T.type_alias do
|
|
542
|
+
T.all(
|
|
543
|
+
Symbol,
|
|
544
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel
|
|
545
|
+
)
|
|
546
|
+
end
|
|
547
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
548
|
+
|
|
549
|
+
XAI_GROK_STT =
|
|
550
|
+
T.let(
|
|
551
|
+
:"xai/grok-stt",
|
|
552
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::TaggedSymbol
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
sig do
|
|
556
|
+
override.returns(
|
|
557
|
+
T::Array[
|
|
558
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::TaggedSymbol
|
|
559
|
+
]
|
|
560
|
+
)
|
|
561
|
+
end
|
|
562
|
+
def self.values
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
class AssemblyAI < Telnyx::Internal::Type::BaseModel
|
|
568
|
+
OrHash =
|
|
569
|
+
T.type_alias do
|
|
570
|
+
T.any(
|
|
571
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
572
|
+
Telnyx::Internal::AnyHash
|
|
573
|
+
)
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
577
|
+
# be sent.
|
|
578
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
579
|
+
attr_reader :interim_results
|
|
580
|
+
|
|
581
|
+
sig { params(interim_results: T::Boolean).void }
|
|
582
|
+
attr_writer :interim_results
|
|
583
|
+
|
|
584
|
+
# Engine identifier for AssemblyAI transcription service
|
|
585
|
+
sig do
|
|
586
|
+
returns(
|
|
587
|
+
T.nilable(
|
|
588
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol
|
|
589
|
+
)
|
|
590
|
+
)
|
|
591
|
+
end
|
|
592
|
+
attr_reader :transcription_engine
|
|
593
|
+
|
|
594
|
+
sig do
|
|
595
|
+
params(
|
|
596
|
+
transcription_engine:
|
|
597
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol
|
|
598
|
+
).void
|
|
599
|
+
end
|
|
600
|
+
attr_writer :transcription_engine
|
|
601
|
+
|
|
602
|
+
# The model to use for transcription.
|
|
603
|
+
sig do
|
|
604
|
+
returns(
|
|
605
|
+
T.nilable(
|
|
606
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
607
|
+
)
|
|
608
|
+
)
|
|
609
|
+
end
|
|
610
|
+
attr_reader :transcription_model
|
|
611
|
+
|
|
612
|
+
sig do
|
|
613
|
+
params(
|
|
614
|
+
transcription_model:
|
|
615
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
616
|
+
).void
|
|
617
|
+
end
|
|
618
|
+
attr_writer :transcription_model
|
|
619
|
+
|
|
620
|
+
sig do
|
|
621
|
+
params(
|
|
622
|
+
interim_results: T::Boolean,
|
|
623
|
+
transcription_engine:
|
|
624
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol,
|
|
625
|
+
transcription_model:
|
|
626
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
627
|
+
).returns(T.attached_class)
|
|
628
|
+
end
|
|
629
|
+
def self.new(
|
|
630
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
631
|
+
# be sent.
|
|
632
|
+
interim_results: nil,
|
|
633
|
+
# Engine identifier for AssemblyAI transcription service
|
|
634
|
+
transcription_engine: nil,
|
|
635
|
+
# The model to use for transcription.
|
|
636
|
+
transcription_model: nil
|
|
637
|
+
)
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
sig do
|
|
641
|
+
override.returns(
|
|
642
|
+
{
|
|
643
|
+
interim_results: T::Boolean,
|
|
644
|
+
transcription_engine:
|
|
645
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol,
|
|
646
|
+
transcription_model:
|
|
647
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
648
|
+
}
|
|
649
|
+
)
|
|
650
|
+
end
|
|
651
|
+
def to_hash
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Engine identifier for AssemblyAI transcription service
|
|
655
|
+
module TranscriptionEngine
|
|
656
|
+
extend Telnyx::Internal::Type::Enum
|
|
657
|
+
|
|
658
|
+
TaggedSymbol =
|
|
659
|
+
T.type_alias do
|
|
660
|
+
T.all(
|
|
661
|
+
Symbol,
|
|
662
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine
|
|
663
|
+
)
|
|
664
|
+
end
|
|
665
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
666
|
+
|
|
667
|
+
ASSEMBLY_AI =
|
|
668
|
+
T.let(
|
|
669
|
+
:AssemblyAI,
|
|
670
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::TaggedSymbol
|
|
671
|
+
)
|
|
672
|
+
|
|
673
|
+
sig do
|
|
674
|
+
override.returns(
|
|
675
|
+
T::Array[
|
|
676
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::TaggedSymbol
|
|
677
|
+
]
|
|
678
|
+
)
|
|
679
|
+
end
|
|
680
|
+
def self.values
|
|
681
|
+
end
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
# The model to use for transcription.
|
|
685
|
+
module TranscriptionModel
|
|
686
|
+
extend Telnyx::Internal::Type::Enum
|
|
687
|
+
|
|
688
|
+
TaggedSymbol =
|
|
689
|
+
T.type_alias do
|
|
690
|
+
T.all(
|
|
691
|
+
Symbol,
|
|
692
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel
|
|
693
|
+
)
|
|
694
|
+
end
|
|
695
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
696
|
+
|
|
697
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING =
|
|
698
|
+
T.let(
|
|
699
|
+
:"assemblyai/universal-streaming",
|
|
700
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::TaggedSymbol
|
|
701
|
+
)
|
|
702
|
+
|
|
703
|
+
sig do
|
|
704
|
+
override.returns(
|
|
705
|
+
T::Array[
|
|
706
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::TaggedSymbol
|
|
707
|
+
]
|
|
708
|
+
)
|
|
709
|
+
end
|
|
710
|
+
def self.values
|
|
711
|
+
end
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
|
|
225
715
|
sig do
|
|
226
716
|
override.returns(
|
|
227
717
|
T::Array[
|
|
@@ -1650,6 +1650,8 @@ module Telnyx
|
|
|
1650
1650
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
1651
1651
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
1652
1652
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
1653
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::OrHash,
|
|
1654
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::OrHash,
|
|
1653
1655
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
1654
1656
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
1655
1657
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
@@ -52,7 +52,7 @@ module Telnyx
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
type transcription_engine =
|
|
55
|
-
:Google | :Telnyx | :Deepgram | :Azure | :A | :B
|
|
55
|
+
:Google | :Telnyx | :Deepgram | :Azure | :xAI | :AssemblyAI | :A | :B
|
|
56
56
|
|
|
57
57
|
module TranscriptionEngine
|
|
58
58
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -61,6 +61,8 @@ module Telnyx
|
|
|
61
61
|
TELNYX: :Telnyx
|
|
62
62
|
DEEPGRAM: :Deepgram
|
|
63
63
|
AZURE: :Azure
|
|
64
|
+
X_AI: :xAI
|
|
65
|
+
ASSEMBLY_AI: :AssemblyAI
|
|
64
66
|
A: :A
|
|
65
67
|
B: :B
|
|
66
68
|
|
|
@@ -71,6 +73,8 @@ module Telnyx
|
|
|
71
73
|
Telnyx::Calls::TranscriptionEngineGoogleConfig
|
|
72
74
|
| Telnyx::Calls::TranscriptionEngineTelnyxConfig
|
|
73
75
|
| Telnyx::Calls::TranscriptionEngineAzureConfig
|
|
76
|
+
| Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI
|
|
77
|
+
| Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI
|
|
74
78
|
| Telnyx::Calls::TranscriptionEngineAConfig
|
|
75
79
|
| Telnyx::Calls::TranscriptionEngineBConfig
|
|
76
80
|
| Telnyx::Calls::DeepgramNova2Config
|
|
@@ -79,6 +83,188 @@ module Telnyx
|
|
|
79
83
|
module TranscriptionEngineConfig
|
|
80
84
|
extend Telnyx::Internal::Type::Union
|
|
81
85
|
|
|
86
|
+
type xai =
|
|
87
|
+
{
|
|
88
|
+
interim_results: bool,
|
|
89
|
+
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::language,
|
|
90
|
+
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_engine,
|
|
91
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_model
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
class XAI < Telnyx::Internal::Type::BaseModel
|
|
95
|
+
attr_reader interim_results: bool?
|
|
96
|
+
|
|
97
|
+
def interim_results=: (bool) -> bool
|
|
98
|
+
|
|
99
|
+
attr_reader language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::language?
|
|
100
|
+
|
|
101
|
+
def language=: (
|
|
102
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::language
|
|
103
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::language
|
|
104
|
+
|
|
105
|
+
attr_reader transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_engine?
|
|
106
|
+
|
|
107
|
+
def transcription_engine=: (
|
|
108
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_engine
|
|
109
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_engine
|
|
110
|
+
|
|
111
|
+
attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_model?
|
|
112
|
+
|
|
113
|
+
def transcription_model=: (
|
|
114
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_model
|
|
115
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_model
|
|
116
|
+
|
|
117
|
+
def initialize: (
|
|
118
|
+
?interim_results: bool,
|
|
119
|
+
?language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::language,
|
|
120
|
+
?transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_engine,
|
|
121
|
+
?transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_model
|
|
122
|
+
) -> void
|
|
123
|
+
|
|
124
|
+
def to_hash: -> {
|
|
125
|
+
interim_results: bool,
|
|
126
|
+
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::language,
|
|
127
|
+
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_engine,
|
|
128
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_model
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
type language =
|
|
132
|
+
:ar
|
|
133
|
+
| :cs
|
|
134
|
+
| :da
|
|
135
|
+
| :de
|
|
136
|
+
| :en
|
|
137
|
+
| :es
|
|
138
|
+
| :fa
|
|
139
|
+
| :fil
|
|
140
|
+
| :fr
|
|
141
|
+
| :hi
|
|
142
|
+
| :id
|
|
143
|
+
| :it
|
|
144
|
+
| :ja
|
|
145
|
+
| :ko
|
|
146
|
+
| :mk
|
|
147
|
+
| :ms
|
|
148
|
+
| :nl
|
|
149
|
+
| :pl
|
|
150
|
+
| :pt
|
|
151
|
+
| :ro
|
|
152
|
+
| :ru
|
|
153
|
+
| :sv
|
|
154
|
+
| :th
|
|
155
|
+
| :tr
|
|
156
|
+
| :vi
|
|
157
|
+
|
|
158
|
+
module Language
|
|
159
|
+
extend Telnyx::Internal::Type::Enum
|
|
160
|
+
|
|
161
|
+
AR: :ar
|
|
162
|
+
CS: :cs
|
|
163
|
+
DA: :da
|
|
164
|
+
DE: :de
|
|
165
|
+
EN: :en
|
|
166
|
+
ES: :es
|
|
167
|
+
FA: :fa
|
|
168
|
+
FIL: :fil
|
|
169
|
+
FR: :fr
|
|
170
|
+
HI: :hi
|
|
171
|
+
ID: :id
|
|
172
|
+
IT: :it
|
|
173
|
+
JA: :ja
|
|
174
|
+
KO: :ko
|
|
175
|
+
MK: :mk
|
|
176
|
+
MS: :ms
|
|
177
|
+
NL: :nl
|
|
178
|
+
PL: :pl
|
|
179
|
+
PT: :pt
|
|
180
|
+
RO: :ro
|
|
181
|
+
RU: :ru
|
|
182
|
+
SV: :sv
|
|
183
|
+
TH: :th
|
|
184
|
+
TR: :tr
|
|
185
|
+
VI: :vi
|
|
186
|
+
|
|
187
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::language]
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
type transcription_engine = :xAI
|
|
191
|
+
|
|
192
|
+
module TranscriptionEngine
|
|
193
|
+
extend Telnyx::Internal::Type::Enum
|
|
194
|
+
|
|
195
|
+
X_AI: :xAI
|
|
196
|
+
|
|
197
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_engine]
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
type transcription_model = :"xai/grok-stt"
|
|
201
|
+
|
|
202
|
+
module TranscriptionModel
|
|
203
|
+
extend Telnyx::Internal::Type::Enum
|
|
204
|
+
|
|
205
|
+
XAI_GROK_STT: :"xai/grok-stt"
|
|
206
|
+
|
|
207
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::transcription_model]
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
type assembly_ai =
|
|
212
|
+
{
|
|
213
|
+
interim_results: bool,
|
|
214
|
+
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_engine,
|
|
215
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_model
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
class AssemblyAI < Telnyx::Internal::Type::BaseModel
|
|
219
|
+
attr_reader interim_results: bool?
|
|
220
|
+
|
|
221
|
+
def interim_results=: (bool) -> bool
|
|
222
|
+
|
|
223
|
+
attr_reader transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_engine?
|
|
224
|
+
|
|
225
|
+
def transcription_engine=: (
|
|
226
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_engine
|
|
227
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_engine
|
|
228
|
+
|
|
229
|
+
attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_model?
|
|
230
|
+
|
|
231
|
+
def transcription_model=: (
|
|
232
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_model
|
|
233
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_model
|
|
234
|
+
|
|
235
|
+
def initialize: (
|
|
236
|
+
?interim_results: bool,
|
|
237
|
+
?transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_engine,
|
|
238
|
+
?transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_model
|
|
239
|
+
) -> void
|
|
240
|
+
|
|
241
|
+
def to_hash: -> {
|
|
242
|
+
interim_results: bool,
|
|
243
|
+
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_engine,
|
|
244
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_model
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
type transcription_engine = :AssemblyAI
|
|
248
|
+
|
|
249
|
+
module TranscriptionEngine
|
|
250
|
+
extend Telnyx::Internal::Type::Enum
|
|
251
|
+
|
|
252
|
+
ASSEMBLY_AI: :AssemblyAI
|
|
253
|
+
|
|
254
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_engine]
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
type transcription_model = :"assemblyai/universal-streaming"
|
|
258
|
+
|
|
259
|
+
module TranscriptionModel
|
|
260
|
+
extend Telnyx::Internal::Type::Enum
|
|
261
|
+
|
|
262
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
263
|
+
|
|
264
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::transcription_model]
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
82
268
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config]
|
|
83
269
|
end
|
|
84
270
|
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.92.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-04-
|
|
11
|
+
date: 2026-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|