telnyx 5.113.0 → 5.115.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/openai_create_response_params.rb +3 -3
- data/lib/telnyx/models/ai/transcription_settings.rb +8 -1
- data/lib/telnyx/models/ai/transcription_settings_config.rb +29 -1
- data/lib/telnyx/models/ai/voice_settings.rb +14 -1
- data/lib/telnyx/models/ai_create_response_params.rb +4 -4
- data/lib/telnyx/models/calls/transcription_config.rb +8 -1
- data/lib/telnyx/models/calls/transcription_start_request.rb +175 -4
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +0 -2
- data/lib/telnyx/resources/ai/openai.rb +1 -1
- data/lib/telnyx/resources/ai.rb +3 -3
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +0 -1
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai/transcription_settings.rbi +17 -2
- data/rbi/telnyx/models/ai/transcription_settings_config.rbi +41 -0
- data/rbi/telnyx/models/ai/voice_settings.rbi +14 -1
- data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/calls/transcription_config.rbi +17 -2
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +438 -5
- data/rbi/telnyx/resources/ai/openai.rbi +1 -1
- data/rbi/telnyx/resources/ai.rbi +2 -2
- data/rbi/telnyx/resources/calls/actions.rbi +2 -1
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
- data/sig/telnyx/models/ai/transcription_settings.rbs +2 -0
- data/sig/telnyx/models/ai/transcription_settings_config.rbs +21 -0
- data/sig/telnyx/models/ai/voice_settings.rbs +9 -2
- data/sig/telnyx/models/ai_create_response_params.rbs +4 -5
- data/sig/telnyx/models/calls/transcription_config.rbs +2 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +177 -1
- data/sig/telnyx/resources/ai/openai.rbs +1 -1
- data/sig/telnyx/resources/ai.rbs +1 -1
- metadata +2 -5
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +0 -100
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +0 -289
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +0 -114
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
type ai_create_response_params =
|
|
4
|
-
{
|
|
5
|
-
& Telnyx::Internal::Type::request_parameters
|
|
4
|
+
{ body: ::Hash[Symbol, top] } & Telnyx::Internal::Type::request_parameters
|
|
6
5
|
|
|
7
6
|
class AICreateResponseParams < Telnyx::Internal::Type::BaseModel
|
|
8
7
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
8
|
include Telnyx::Internal::Type::RequestParameters
|
|
10
9
|
|
|
11
|
-
attr_accessor
|
|
10
|
+
attr_accessor body: ::Hash[Symbol, top]
|
|
12
11
|
|
|
13
12
|
def initialize: (
|
|
14
|
-
|
|
13
|
+
body: ::Hash[Symbol, top],
|
|
15
14
|
?request_options: Telnyx::request_opts
|
|
16
15
|
) -> void
|
|
17
16
|
|
|
18
17
|
def to_hash: -> {
|
|
19
|
-
|
|
18
|
+
body: ::Hash[Symbol, top],
|
|
20
19
|
request_options: Telnyx::RequestOptions
|
|
21
20
|
}
|
|
22
21
|
end
|
|
@@ -37,6 +37,7 @@ module Telnyx
|
|
|
37
37
|
| :"speechmatics/enhanced"
|
|
38
38
|
| :"assemblyai/universal-streaming"
|
|
39
39
|
| :"xai/grok-stt"
|
|
40
|
+
| :"soniox/stt-rt-v4"
|
|
40
41
|
| :"azure/fast"
|
|
41
42
|
| :"azure/realtime"
|
|
42
43
|
| :"google/latest_long"
|
|
@@ -54,6 +55,7 @@ module Telnyx
|
|
|
54
55
|
SPEECHMATICS_ENHANCED: :"speechmatics/enhanced"
|
|
55
56
|
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
56
57
|
XAI_GROK_STT: :"xai/grok-stt"
|
|
58
|
+
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
57
59
|
AZURE_FAST: :"azure/fast"
|
|
58
60
|
AZURE_REALTIME: :"azure/realtime"
|
|
59
61
|
GOOGLE_LATEST_LONG: :"google/latest_long"
|
|
@@ -59,6 +59,7 @@ module Telnyx
|
|
|
59
59
|
| :xAI
|
|
60
60
|
| :AssemblyAI
|
|
61
61
|
| :Speechmatics
|
|
62
|
+
| :Soniox
|
|
62
63
|
| :A
|
|
63
64
|
| :B
|
|
64
65
|
|
|
@@ -72,6 +73,7 @@ module Telnyx
|
|
|
72
73
|
X_AI: :xAI
|
|
73
74
|
ASSEMBLY_AI: :AssemblyAI
|
|
74
75
|
SPEECHMATICS: :Speechmatics
|
|
76
|
+
SONIOX: :Soniox
|
|
75
77
|
A: :A
|
|
76
78
|
B: :B
|
|
77
79
|
|
|
@@ -84,7 +86,8 @@ module Telnyx
|
|
|
84
86
|
| Telnyx::Calls::TranscriptionEngineAzureConfig
|
|
85
87
|
| Telnyx::Calls::TranscriptionEngineXaiConfig
|
|
86
88
|
| Telnyx::Calls::TranscriptionEngineAssemblyaiConfig
|
|
87
|
-
| Telnyx::Calls::
|
|
89
|
+
| Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics
|
|
90
|
+
| Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox
|
|
88
91
|
| Telnyx::Calls::TranscriptionEngineAConfig
|
|
89
92
|
| Telnyx::Calls::TranscriptionEngineBConfig
|
|
90
93
|
| Telnyx::Calls::DeepgramNova2Config
|
|
@@ -93,6 +96,179 @@ module Telnyx
|
|
|
93
96
|
module TranscriptionEngineConfig
|
|
94
97
|
extend Telnyx::Internal::Type::Union
|
|
95
98
|
|
|
99
|
+
type speechmatics =
|
|
100
|
+
{
|
|
101
|
+
interim_results: bool,
|
|
102
|
+
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::language,
|
|
103
|
+
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_engine,
|
|
104
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_model
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
class Speechmatics < Telnyx::Internal::Type::BaseModel
|
|
108
|
+
attr_reader interim_results: bool?
|
|
109
|
+
|
|
110
|
+
def interim_results=: (bool) -> bool
|
|
111
|
+
|
|
112
|
+
attr_reader language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::language?
|
|
113
|
+
|
|
114
|
+
def language=: (
|
|
115
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::language
|
|
116
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::language
|
|
117
|
+
|
|
118
|
+
attr_reader transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_engine?
|
|
119
|
+
|
|
120
|
+
def transcription_engine=: (
|
|
121
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_engine
|
|
122
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_engine
|
|
123
|
+
|
|
124
|
+
attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_model?
|
|
125
|
+
|
|
126
|
+
def transcription_model=: (
|
|
127
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_model
|
|
128
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_model
|
|
129
|
+
|
|
130
|
+
def initialize: (
|
|
131
|
+
?interim_results: bool,
|
|
132
|
+
?language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::language,
|
|
133
|
+
?transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_engine,
|
|
134
|
+
?transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_model
|
|
135
|
+
) -> void
|
|
136
|
+
|
|
137
|
+
def to_hash: -> {
|
|
138
|
+
interim_results: bool,
|
|
139
|
+
language: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::language,
|
|
140
|
+
transcription_engine: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_engine,
|
|
141
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_model
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
type language =
|
|
145
|
+
:en
|
|
146
|
+
| :ba
|
|
147
|
+
| :eu
|
|
148
|
+
| :gl
|
|
149
|
+
| :ga
|
|
150
|
+
| :mt
|
|
151
|
+
| :mn
|
|
152
|
+
| :sw
|
|
153
|
+
| :ug
|
|
154
|
+
| :cy
|
|
155
|
+
| :ar_en
|
|
156
|
+
| :cmn_en
|
|
157
|
+
| :en_ms
|
|
158
|
+
| :en_ta
|
|
159
|
+
| :tl
|
|
160
|
+
| :"es-bilingual-en"
|
|
161
|
+
| :cmn_en_ms_ta
|
|
162
|
+
|
|
163
|
+
module Language
|
|
164
|
+
extend Telnyx::Internal::Type::Enum
|
|
165
|
+
|
|
166
|
+
EN: :en
|
|
167
|
+
BA: :ba
|
|
168
|
+
EU: :eu
|
|
169
|
+
GL: :gl
|
|
170
|
+
GA: :ga
|
|
171
|
+
MT: :mt
|
|
172
|
+
MN: :mn
|
|
173
|
+
SW: :sw
|
|
174
|
+
UG: :ug
|
|
175
|
+
CY: :cy
|
|
176
|
+
AR_EN: :ar_en
|
|
177
|
+
CMN_EN: :cmn_en
|
|
178
|
+
EN_MS: :en_ms
|
|
179
|
+
EN_TA: :en_ta
|
|
180
|
+
TL: :tl
|
|
181
|
+
ES_BILINGUAL_EN: :"es-bilingual-en"
|
|
182
|
+
CMN_EN_MS_TA: :cmn_en_ms_ta
|
|
183
|
+
|
|
184
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::language]
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
type transcription_engine = :Speechmatics
|
|
188
|
+
|
|
189
|
+
module TranscriptionEngine
|
|
190
|
+
extend Telnyx::Internal::Type::Enum
|
|
191
|
+
|
|
192
|
+
SPEECHMATICS: :Speechmatics
|
|
193
|
+
|
|
194
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_engine]
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
type transcription_model = :"speechmatics/standard"
|
|
198
|
+
|
|
199
|
+
module TranscriptionModel
|
|
200
|
+
extend Telnyx::Internal::Type::Enum
|
|
201
|
+
|
|
202
|
+
SPEECHMATICS_STANDARD: :"speechmatics/standard"
|
|
203
|
+
|
|
204
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Speechmatics::transcription_model]
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
type soniox =
|
|
209
|
+
{
|
|
210
|
+
transcription_engine: :Soniox,
|
|
211
|
+
enable_endpoint_detection: bool,
|
|
212
|
+
interim_results: bool,
|
|
213
|
+
language: String,
|
|
214
|
+
max_endpoint_delay_ms: Integer,
|
|
215
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox::transcription_model
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
class Soniox < Telnyx::Internal::Type::BaseModel
|
|
219
|
+
attr_accessor transcription_engine: :Soniox
|
|
220
|
+
|
|
221
|
+
attr_reader enable_endpoint_detection: bool?
|
|
222
|
+
|
|
223
|
+
def enable_endpoint_detection=: (bool) -> bool
|
|
224
|
+
|
|
225
|
+
attr_reader interim_results: bool?
|
|
226
|
+
|
|
227
|
+
def interim_results=: (bool) -> bool
|
|
228
|
+
|
|
229
|
+
attr_reader language: String?
|
|
230
|
+
|
|
231
|
+
def language=: (String) -> String
|
|
232
|
+
|
|
233
|
+
attr_reader max_endpoint_delay_ms: Integer?
|
|
234
|
+
|
|
235
|
+
def max_endpoint_delay_ms=: (Integer) -> Integer
|
|
236
|
+
|
|
237
|
+
attr_reader transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox::transcription_model?
|
|
238
|
+
|
|
239
|
+
def transcription_model=: (
|
|
240
|
+
Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox::transcription_model
|
|
241
|
+
) -> Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox::transcription_model
|
|
242
|
+
|
|
243
|
+
def initialize: (
|
|
244
|
+
?enable_endpoint_detection: bool,
|
|
245
|
+
?interim_results: bool,
|
|
246
|
+
?language: String,
|
|
247
|
+
?max_endpoint_delay_ms: Integer,
|
|
248
|
+
?transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox::transcription_model,
|
|
249
|
+
?transcription_engine: :Soniox
|
|
250
|
+
) -> void
|
|
251
|
+
|
|
252
|
+
def to_hash: -> {
|
|
253
|
+
transcription_engine: :Soniox,
|
|
254
|
+
enable_endpoint_detection: bool,
|
|
255
|
+
interim_results: bool,
|
|
256
|
+
language: String,
|
|
257
|
+
max_endpoint_delay_ms: Integer,
|
|
258
|
+
transcription_model: Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox::transcription_model
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
type transcription_model = :"soniox/stt-rt-v4"
|
|
262
|
+
|
|
263
|
+
module TranscriptionModel
|
|
264
|
+
extend Telnyx::Internal::Type::Enum
|
|
265
|
+
|
|
266
|
+
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
267
|
+
|
|
268
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Soniox::transcription_model]
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
|
|
96
272
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::TranscriptionStartRequest::transcription_engine_config]
|
|
97
273
|
end
|
|
98
274
|
end
|
data/sig/telnyx/resources/ai.rbs
CHANGED
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.115.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-05-
|
|
11
|
+
date: 2026-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -700,7 +700,6 @@ files:
|
|
|
700
700
|
- lib/telnyx/models/calls/transcription_engine_b_config.rb
|
|
701
701
|
- lib/telnyx/models/calls/transcription_engine_deepgram_config.rb
|
|
702
702
|
- lib/telnyx/models/calls/transcription_engine_google_config.rb
|
|
703
|
-
- lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb
|
|
704
703
|
- lib/telnyx/models/calls/transcription_engine_telnyx_config.rb
|
|
705
704
|
- lib/telnyx/models/calls/transcription_engine_xai_config.rb
|
|
706
705
|
- lib/telnyx/models/calls/transcription_start_request.rb
|
|
@@ -3436,7 +3435,6 @@ files:
|
|
|
3436
3435
|
- rbi/telnyx/models/calls/transcription_engine_b_config.rbi
|
|
3437
3436
|
- rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi
|
|
3438
3437
|
- rbi/telnyx/models/calls/transcription_engine_google_config.rbi
|
|
3439
|
-
- rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi
|
|
3440
3438
|
- rbi/telnyx/models/calls/transcription_engine_telnyx_config.rbi
|
|
3441
3439
|
- rbi/telnyx/models/calls/transcription_engine_xai_config.rbi
|
|
3442
3440
|
- rbi/telnyx/models/calls/transcription_start_request.rbi
|
|
@@ -6163,7 +6161,6 @@ files:
|
|
|
6163
6161
|
- sig/telnyx/models/calls/transcription_engine_b_config.rbs
|
|
6164
6162
|
- sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs
|
|
6165
6163
|
- sig/telnyx/models/calls/transcription_engine_google_config.rbs
|
|
6166
|
-
- sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs
|
|
6167
6164
|
- sig/telnyx/models/calls/transcription_engine_telnyx_config.rbs
|
|
6168
6165
|
- sig/telnyx/models/calls/transcription_engine_xai_config.rbs
|
|
6169
6166
|
- sig/telnyx/models/calls/transcription_start_request.rbs
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Calls
|
|
6
|
-
class TranscriptionEngineSpeechmaticsConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute interim_results
|
|
8
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
9
|
-
# be sent.
|
|
10
|
-
#
|
|
11
|
-
# @return [Boolean, nil]
|
|
12
|
-
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
13
|
-
|
|
14
|
-
# @!attribute language
|
|
15
|
-
# Language to use for speech recognition
|
|
16
|
-
#
|
|
17
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::Language, nil]
|
|
18
|
-
optional :language, enum: -> { Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language }
|
|
19
|
-
|
|
20
|
-
# @!attribute transcription_engine
|
|
21
|
-
# Engine identifier for Speechmatics transcription service
|
|
22
|
-
#
|
|
23
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine, nil]
|
|
24
|
-
optional :transcription_engine,
|
|
25
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine }
|
|
26
|
-
|
|
27
|
-
# @!attribute transcription_model
|
|
28
|
-
# The model to use for transcription.
|
|
29
|
-
#
|
|
30
|
-
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel, nil]
|
|
31
|
-
optional :transcription_model,
|
|
32
|
-
enum: -> { Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel }
|
|
33
|
-
|
|
34
|
-
# @!method initialize(interim_results: nil, language: nil, transcription_engine: nil, transcription_model: nil)
|
|
35
|
-
# Some parameter documentations has been truncated, see
|
|
36
|
-
# {Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig} for more details.
|
|
37
|
-
#
|
|
38
|
-
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
39
|
-
#
|
|
40
|
-
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::Language] Language to use for speech recognition
|
|
41
|
-
#
|
|
42
|
-
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine] Engine identifier for Speechmatics transcription service
|
|
43
|
-
#
|
|
44
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel] The model to use for transcription.
|
|
45
|
-
|
|
46
|
-
# Language to use for speech recognition
|
|
47
|
-
#
|
|
48
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig#language
|
|
49
|
-
module Language
|
|
50
|
-
extend Telnyx::Internal::Type::Enum
|
|
51
|
-
|
|
52
|
-
EN = :en
|
|
53
|
-
BA = :ba
|
|
54
|
-
EU = :eu
|
|
55
|
-
GL = :gl
|
|
56
|
-
GA = :ga
|
|
57
|
-
MT = :mt
|
|
58
|
-
MN = :mn
|
|
59
|
-
SW = :sw
|
|
60
|
-
UG = :ug
|
|
61
|
-
CY = :cy
|
|
62
|
-
AR_EN = :ar_en
|
|
63
|
-
CMN_EN = :cmn_en
|
|
64
|
-
EN_MS = :en_ms
|
|
65
|
-
EN_TA = :en_ta
|
|
66
|
-
TL = :tl
|
|
67
|
-
ES_BILINGUAL_EN = :"es-bilingual-en"
|
|
68
|
-
CMN_EN_MS_TA = :cmn_en_ms_ta
|
|
69
|
-
|
|
70
|
-
# @!method self.values
|
|
71
|
-
# @return [Array<Symbol>]
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
# Engine identifier for Speechmatics transcription service
|
|
75
|
-
#
|
|
76
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig#transcription_engine
|
|
77
|
-
module TranscriptionEngine
|
|
78
|
-
extend Telnyx::Internal::Type::Enum
|
|
79
|
-
|
|
80
|
-
SPEECHMATICS = :Speechmatics
|
|
81
|
-
|
|
82
|
-
# @!method self.values
|
|
83
|
-
# @return [Array<Symbol>]
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# The model to use for transcription.
|
|
87
|
-
#
|
|
88
|
-
# @see Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig#transcription_model
|
|
89
|
-
module TranscriptionModel
|
|
90
|
-
extend Telnyx::Internal::Type::Enum
|
|
91
|
-
|
|
92
|
-
SPEECHMATICS_STANDARD = :"speechmatics/standard"
|
|
93
|
-
|
|
94
|
-
# @!method self.values
|
|
95
|
-
# @return [Array<Symbol>]
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
end
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Telnyx
|
|
4
|
-
module Models
|
|
5
|
-
module Calls
|
|
6
|
-
class TranscriptionEngineSpeechmaticsConfig < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig,
|
|
11
|
-
Telnyx::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
16
|
-
# be sent.
|
|
17
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
18
|
-
attr_reader :interim_results
|
|
19
|
-
|
|
20
|
-
sig { params(interim_results: T::Boolean).void }
|
|
21
|
-
attr_writer :interim_results
|
|
22
|
-
|
|
23
|
-
# Language to use for speech recognition
|
|
24
|
-
sig do
|
|
25
|
-
returns(
|
|
26
|
-
T.nilable(
|
|
27
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
end
|
|
31
|
-
attr_reader :language
|
|
32
|
-
|
|
33
|
-
sig do
|
|
34
|
-
params(
|
|
35
|
-
language:
|
|
36
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol
|
|
37
|
-
).void
|
|
38
|
-
end
|
|
39
|
-
attr_writer :language
|
|
40
|
-
|
|
41
|
-
# Engine identifier for Speechmatics transcription service
|
|
42
|
-
sig do
|
|
43
|
-
returns(
|
|
44
|
-
T.nilable(
|
|
45
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol
|
|
46
|
-
)
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
attr_reader :transcription_engine
|
|
50
|
-
|
|
51
|
-
sig do
|
|
52
|
-
params(
|
|
53
|
-
transcription_engine:
|
|
54
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol
|
|
55
|
-
).void
|
|
56
|
-
end
|
|
57
|
-
attr_writer :transcription_engine
|
|
58
|
-
|
|
59
|
-
# The model to use for transcription.
|
|
60
|
-
sig do
|
|
61
|
-
returns(
|
|
62
|
-
T.nilable(
|
|
63
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
|
|
64
|
-
)
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
attr_reader :transcription_model
|
|
68
|
-
|
|
69
|
-
sig do
|
|
70
|
-
params(
|
|
71
|
-
transcription_model:
|
|
72
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
|
|
73
|
-
).void
|
|
74
|
-
end
|
|
75
|
-
attr_writer :transcription_model
|
|
76
|
-
|
|
77
|
-
sig do
|
|
78
|
-
params(
|
|
79
|
-
interim_results: T::Boolean,
|
|
80
|
-
language:
|
|
81
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol,
|
|
82
|
-
transcription_engine:
|
|
83
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol,
|
|
84
|
-
transcription_model:
|
|
85
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
|
|
86
|
-
).returns(T.attached_class)
|
|
87
|
-
end
|
|
88
|
-
def self.new(
|
|
89
|
-
# Whether to send also interim results. If set to false, only final results will
|
|
90
|
-
# be sent.
|
|
91
|
-
interim_results: nil,
|
|
92
|
-
# Language to use for speech recognition
|
|
93
|
-
language: nil,
|
|
94
|
-
# Engine identifier for Speechmatics transcription service
|
|
95
|
-
transcription_engine: nil,
|
|
96
|
-
# The model to use for transcription.
|
|
97
|
-
transcription_model: nil
|
|
98
|
-
)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
sig do
|
|
102
|
-
override.returns(
|
|
103
|
-
{
|
|
104
|
-
interim_results: T::Boolean,
|
|
105
|
-
language:
|
|
106
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::OrSymbol,
|
|
107
|
-
transcription_engine:
|
|
108
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::OrSymbol,
|
|
109
|
-
transcription_model:
|
|
110
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::OrSymbol
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
end
|
|
114
|
-
def to_hash
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
# Language to use for speech recognition
|
|
118
|
-
module Language
|
|
119
|
-
extend Telnyx::Internal::Type::Enum
|
|
120
|
-
|
|
121
|
-
TaggedSymbol =
|
|
122
|
-
T.type_alias do
|
|
123
|
-
T.all(
|
|
124
|
-
Symbol,
|
|
125
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language
|
|
126
|
-
)
|
|
127
|
-
end
|
|
128
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
-
|
|
130
|
-
EN =
|
|
131
|
-
T.let(
|
|
132
|
-
:en,
|
|
133
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
134
|
-
)
|
|
135
|
-
BA =
|
|
136
|
-
T.let(
|
|
137
|
-
:ba,
|
|
138
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
139
|
-
)
|
|
140
|
-
EU =
|
|
141
|
-
T.let(
|
|
142
|
-
:eu,
|
|
143
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
144
|
-
)
|
|
145
|
-
GL =
|
|
146
|
-
T.let(
|
|
147
|
-
:gl,
|
|
148
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
149
|
-
)
|
|
150
|
-
GA =
|
|
151
|
-
T.let(
|
|
152
|
-
:ga,
|
|
153
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
154
|
-
)
|
|
155
|
-
MT =
|
|
156
|
-
T.let(
|
|
157
|
-
:mt,
|
|
158
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
159
|
-
)
|
|
160
|
-
MN =
|
|
161
|
-
T.let(
|
|
162
|
-
:mn,
|
|
163
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
164
|
-
)
|
|
165
|
-
SW =
|
|
166
|
-
T.let(
|
|
167
|
-
:sw,
|
|
168
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
169
|
-
)
|
|
170
|
-
UG =
|
|
171
|
-
T.let(
|
|
172
|
-
:ug,
|
|
173
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
174
|
-
)
|
|
175
|
-
CY =
|
|
176
|
-
T.let(
|
|
177
|
-
:cy,
|
|
178
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
179
|
-
)
|
|
180
|
-
AR_EN =
|
|
181
|
-
T.let(
|
|
182
|
-
:ar_en,
|
|
183
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
184
|
-
)
|
|
185
|
-
CMN_EN =
|
|
186
|
-
T.let(
|
|
187
|
-
:cmn_en,
|
|
188
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
189
|
-
)
|
|
190
|
-
EN_MS =
|
|
191
|
-
T.let(
|
|
192
|
-
:en_ms,
|
|
193
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
194
|
-
)
|
|
195
|
-
EN_TA =
|
|
196
|
-
T.let(
|
|
197
|
-
:en_ta,
|
|
198
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
199
|
-
)
|
|
200
|
-
TL =
|
|
201
|
-
T.let(
|
|
202
|
-
:tl,
|
|
203
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
204
|
-
)
|
|
205
|
-
ES_BILINGUAL_EN =
|
|
206
|
-
T.let(
|
|
207
|
-
:"es-bilingual-en",
|
|
208
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
209
|
-
)
|
|
210
|
-
CMN_EN_MS_TA =
|
|
211
|
-
T.let(
|
|
212
|
-
:cmn_en_ms_ta,
|
|
213
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
214
|
-
)
|
|
215
|
-
|
|
216
|
-
sig do
|
|
217
|
-
override.returns(
|
|
218
|
-
T::Array[
|
|
219
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::Language::TaggedSymbol
|
|
220
|
-
]
|
|
221
|
-
)
|
|
222
|
-
end
|
|
223
|
-
def self.values
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
# Engine identifier for Speechmatics transcription service
|
|
228
|
-
module TranscriptionEngine
|
|
229
|
-
extend Telnyx::Internal::Type::Enum
|
|
230
|
-
|
|
231
|
-
TaggedSymbol =
|
|
232
|
-
T.type_alias do
|
|
233
|
-
T.all(
|
|
234
|
-
Symbol,
|
|
235
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine
|
|
236
|
-
)
|
|
237
|
-
end
|
|
238
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
239
|
-
|
|
240
|
-
SPEECHMATICS =
|
|
241
|
-
T.let(
|
|
242
|
-
:Speechmatics,
|
|
243
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::TaggedSymbol
|
|
244
|
-
)
|
|
245
|
-
|
|
246
|
-
sig do
|
|
247
|
-
override.returns(
|
|
248
|
-
T::Array[
|
|
249
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionEngine::TaggedSymbol
|
|
250
|
-
]
|
|
251
|
-
)
|
|
252
|
-
end
|
|
253
|
-
def self.values
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
# The model to use for transcription.
|
|
258
|
-
module TranscriptionModel
|
|
259
|
-
extend Telnyx::Internal::Type::Enum
|
|
260
|
-
|
|
261
|
-
TaggedSymbol =
|
|
262
|
-
T.type_alias do
|
|
263
|
-
T.all(
|
|
264
|
-
Symbol,
|
|
265
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel
|
|
266
|
-
)
|
|
267
|
-
end
|
|
268
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
269
|
-
|
|
270
|
-
SPEECHMATICS_STANDARD =
|
|
271
|
-
T.let(
|
|
272
|
-
:"speechmatics/standard",
|
|
273
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::TaggedSymbol
|
|
274
|
-
)
|
|
275
|
-
|
|
276
|
-
sig do
|
|
277
|
-
override.returns(
|
|
278
|
-
T::Array[
|
|
279
|
-
Telnyx::Calls::TranscriptionEngineSpeechmaticsConfig::TranscriptionModel::TaggedSymbol
|
|
280
|
-
]
|
|
281
|
-
)
|
|
282
|
-
end
|
|
283
|
-
def self.values
|
|
284
|
-
end
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
end
|