telnyx 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/telnyx/models/{advanced_order_update_params.rb → advanced_order_update_requirement_group_params.rb} +9 -8
  6. data/lib/telnyx/models/{advanced_order_update_response.rb → advanced_order_update_requirement_group_response.rb} +1 -1
  7. data/lib/telnyx/models/calls/transcription_start_request.rb +444 -6
  8. data/lib/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rb +156 -0
  9. data/lib/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rb +151 -0
  10. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rb +3 -110
  11. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rb +3 -252
  12. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rb +3 -252
  13. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rb +3 -250
  14. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rb +3 -252
  15. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rb +3 -73
  16. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rb +3 -73
  17. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rb +3 -71
  18. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rb +3 -73
  19. data/lib/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rb +79 -0
  20. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rb +3 -110
  21. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rb +3 -256
  22. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rb +3 -256
  23. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rb +3 -255
  24. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rb +3 -256
  25. data/lib/telnyx/models/legacy/reporting/filter.rb +112 -0
  26. data/lib/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rb +109 -0
  27. data/lib/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rb +104 -0
  28. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rb +3 -97
  29. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rb +3 -97
  30. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rb +3 -96
  31. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rb +3 -97
  32. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rb +3 -102
  33. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rb +3 -102
  34. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rb +3 -101
  35. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rb +3 -102
  36. data/lib/telnyx/models/oauth_client.rb +173 -0
  37. data/lib/telnyx/models/oauth_client_create_response.rb +3 -172
  38. data/lib/telnyx/models/oauth_client_list_response.rb +3 -171
  39. data/lib/telnyx/models/oauth_client_retrieve_response.rb +3 -172
  40. data/lib/telnyx/models/oauth_client_update_response.rb +3 -172
  41. data/lib/telnyx/models/oauth_grant.rb +68 -0
  42. data/lib/telnyx/models/oauth_grant_delete_response.rb +3 -67
  43. data/lib/telnyx/models/oauth_grant_list_response.rb +3 -66
  44. data/lib/telnyx/models/oauth_grant_retrieve_response.rb +3 -67
  45. data/lib/telnyx/models/verify_profile_create_template_response.rb +3 -20
  46. data/lib/telnyx/models/verify_profile_message_template_response.rb +21 -0
  47. data/lib/telnyx/models/verify_profile_retrieve_templates_response.rb +3 -20
  48. data/lib/telnyx/models/verify_profile_update_template_response.rb +3 -20
  49. data/lib/telnyx/models.rb +7 -1
  50. data/lib/telnyx/resources/advanced_orders.rb +26 -26
  51. data/lib/telnyx/resources/calls/actions.rb +2 -2
  52. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rb +1 -1
  53. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/voice.rb +1 -1
  54. data/lib/telnyx/version.rb +1 -1
  55. data/lib/telnyx.rb +11 -2
  56. data/rbi/telnyx/models/{advanced_order_update_params.rbi → advanced_order_update_requirement_group_params.rbi} +53 -25
  57. data/rbi/telnyx/models/{advanced_order_update_response.rbi → advanced_order_update_requirement_group_response.rbi} +1 -1
  58. data/rbi/telnyx/models/calls/transcription_start_request.rbi +1473 -3
  59. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbi +232 -0
  60. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbi +346 -0
  61. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbi +4 -279
  62. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbi +4 -614
  63. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbi +4 -614
  64. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbi +4 -614
  65. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbi +4 -614
  66. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbi +4 -155
  67. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbi +4 -155
  68. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbi +4 -155
  69. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbi +4 -155
  70. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbi +162 -0
  71. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbi +4 -279
  72. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbi +4 -500
  73. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbi +4 -500
  74. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbi +4 -500
  75. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbi +4 -500
  76. data/rbi/telnyx/models/legacy/reporting/filter.rbi +252 -0
  77. data/rbi/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbi +157 -0
  78. data/rbi/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbi +155 -0
  79. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbi +4 -148
  80. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbi +4 -148
  81. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbi +4 -148
  82. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbi +4 -148
  83. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbi +4 -150
  84. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbi +4 -150
  85. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbi +4 -150
  86. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbi +4 -150
  87. data/rbi/telnyx/models/oauth_client.rbi +250 -0
  88. data/rbi/telnyx/models/oauth_client_create_response.rbi +4 -317
  89. data/rbi/telnyx/models/oauth_client_list_response.rbi +4 -313
  90. data/rbi/telnyx/models/oauth_client_retrieve_response.rbi +4 -317
  91. data/rbi/telnyx/models/oauth_client_update_response.rbi +4 -317
  92. data/rbi/telnyx/models/oauth_grant.rbi +95 -0
  93. data/rbi/telnyx/models/oauth_grant_delete_response.rbi +4 -127
  94. data/rbi/telnyx/models/oauth_grant_list_response.rbi +4 -123
  95. data/rbi/telnyx/models/oauth_grant_retrieve_response.rbi +4 -129
  96. data/rbi/telnyx/models/verify_profile_create_template_response.rbi +4 -44
  97. data/rbi/telnyx/models/verify_profile_message_template_response.rbi +35 -0
  98. data/rbi/telnyx/models/verify_profile_retrieve_templates_response.rbi +3 -45
  99. data/rbi/telnyx/models/verify_profile_update_template_response.rbi +4 -44
  100. data/rbi/telnyx/models.rbi +9 -1
  101. data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
  102. data/rbi/telnyx/resources/calls/actions.rbi +5 -1
  103. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbi +1 -4
  104. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbi +1 -4
  105. data/sig/telnyx/models/{advanced_order_update_params.rbs → advanced_order_update_requirement_group_params.rbs} +16 -16
  106. data/sig/telnyx/models/advanced_order_update_requirement_group_response.rbs +5 -0
  107. data/sig/telnyx/models/calls/transcription_start_request.rbs +585 -2
  108. data/sig/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbs +142 -0
  109. data/sig/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbs +163 -0
  110. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbs +6 -108
  111. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbs +6 -262
  112. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbs +6 -262
  113. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbs +6 -262
  114. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbs +6 -262
  115. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbs +6 -82
  116. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbs +6 -82
  117. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbs +6 -82
  118. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbs +6 -82
  119. data/sig/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbs +85 -0
  120. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbs +6 -108
  121. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbs +6 -241
  122. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbs +6 -241
  123. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbs +6 -241
  124. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbs +6 -241
  125. data/sig/telnyx/models/legacy/reporting/filter.rbs +109 -0
  126. data/sig/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbs +105 -0
  127. data/sig/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbs +105 -0
  128. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbs +6 -102
  129. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbs +6 -102
  130. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbs +6 -102
  131. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbs +6 -102
  132. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbs +6 -102
  133. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbs +6 -102
  134. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbs +6 -102
  135. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbs +6 -102
  136. data/sig/telnyx/models/oauth_client.rbs +137 -0
  137. data/sig/telnyx/models/oauth_client_create_response.rbs +5 -144
  138. data/sig/telnyx/models/oauth_client_list_response.rbs +5 -141
  139. data/sig/telnyx/models/oauth_client_retrieve_response.rbs +5 -146
  140. data/sig/telnyx/models/oauth_client_update_response.rbs +5 -144
  141. data/sig/telnyx/models/oauth_grant.rbs +55 -0
  142. data/sig/telnyx/models/oauth_grant_delete_response.rbs +5 -62
  143. data/sig/telnyx/models/oauth_grant_list_response.rbs +5 -59
  144. data/sig/telnyx/models/oauth_grant_retrieve_response.rbs +5 -62
  145. data/sig/telnyx/models/verify_profile_create_template_response.rbs +6 -24
  146. data/sig/telnyx/models/verify_profile_message_template_response.rbs +19 -0
  147. data/sig/telnyx/models/verify_profile_retrieve_templates_response.rbs +4 -22
  148. data/sig/telnyx/models/verify_profile_update_template_response.rbs +6 -24
  149. data/sig/telnyx/models.rbs +7 -1
  150. data/sig/telnyx/resources/advanced_orders.rbs +6 -6
  151. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbs +1 -1
  152. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbs +1 -1
  153. metadata +35 -8
  154. data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -28,7 +28,8 @@ module Telnyx
28
28
  sig { params(command_id: String).void }
29
29
  attr_writer :command_id
30
30
 
31
- # Engine to use for speech recognition. `A` - `Google`, `B` - `Telnyx`.
31
+ # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
32
+ # `Telnyx` are supported for backward compatibility.
32
33
  sig do
33
34
  returns(
34
35
  T.nilable(
@@ -50,6 +51,9 @@ module Telnyx
50
51
  returns(
51
52
  T.nilable(
52
53
  T.any(
54
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google,
55
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx,
56
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram,
53
57
  Telnyx::Calls::TranscriptionEngineAConfig,
54
58
  Telnyx::Calls::TranscriptionEngineBConfig
55
59
  )
@@ -62,6 +66,9 @@ module Telnyx
62
66
  params(
63
67
  transcription_engine_config:
64
68
  T.any(
69
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::OrHash,
70
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::OrHash,
71
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::OrHash,
65
72
  Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
66
73
  Telnyx::Calls::TranscriptionEngineBConfig::OrHash
67
74
  )
@@ -86,6 +93,9 @@ module Telnyx
86
93
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::OrSymbol,
87
94
  transcription_engine_config:
88
95
  T.any(
96
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::OrHash,
97
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::OrHash,
98
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::OrHash,
89
99
  Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
90
100
  Telnyx::Calls::TranscriptionEngineBConfig::OrHash
91
101
  ),
@@ -99,7 +109,8 @@ module Telnyx
99
109
  # Use this field to avoid duplicate commands. Telnyx will ignore any command with
100
110
  # the same `command_id` for the same `call_control_id`.
101
111
  command_id: nil,
102
- # Engine to use for speech recognition. `A` - `Google`, `B` - `Telnyx`.
112
+ # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
113
+ # `Telnyx` are supported for backward compatibility.
103
114
  transcription_engine: nil,
104
115
  transcription_engine_config: nil,
105
116
  # Indicates which leg of the call will be transcribed. Use `inbound` for the leg
@@ -118,6 +129,9 @@ module Telnyx
118
129
  Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::OrSymbol,
119
130
  transcription_engine_config:
120
131
  T.any(
132
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google,
133
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx,
134
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram,
121
135
  Telnyx::Calls::TranscriptionEngineAConfig,
122
136
  Telnyx::Calls::TranscriptionEngineBConfig
123
137
  ),
@@ -128,7 +142,8 @@ module Telnyx
128
142
  def to_hash
129
143
  end
130
144
 
131
- # Engine to use for speech recognition. `A` - `Google`, `B` - `Telnyx`.
145
+ # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
146
+ # `Telnyx` are supported for backward compatibility.
132
147
  module TranscriptionEngine
133
148
  extend Telnyx::Internal::Type::Enum
134
149
 
@@ -141,6 +156,21 @@ module Telnyx
141
156
  end
142
157
  OrSymbol = T.type_alias { T.any(Symbol, String) }
143
158
 
159
+ GOOGLE =
160
+ T.let(
161
+ :Google,
162
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
163
+ )
164
+ TELNYX =
165
+ T.let(
166
+ :Telnyx,
167
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
168
+ )
169
+ DEEPGRAM =
170
+ T.let(
171
+ :Deepgram,
172
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::TaggedSymbol
173
+ )
144
174
  A =
145
175
  T.let(
146
176
  :A,
@@ -169,11 +199,1451 @@ module Telnyx
169
199
  Variants =
170
200
  T.type_alias do
171
201
  T.any(
202
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google,
203
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx,
204
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram,
172
205
  Telnyx::Calls::TranscriptionEngineAConfig,
173
206
  Telnyx::Calls::TranscriptionEngineBConfig
174
207
  )
175
208
  end
176
209
 
210
+ class Google < Telnyx::Internal::Type::BaseModel
211
+ OrHash =
212
+ T.type_alias do
213
+ T.any(
214
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google,
215
+ Telnyx::Internal::AnyHash
216
+ )
217
+ end
218
+
219
+ # Enables speaker diarization.
220
+ sig { returns(T.nilable(T::Boolean)) }
221
+ attr_reader :enable_speaker_diarization
222
+
223
+ sig { params(enable_speaker_diarization: T::Boolean).void }
224
+ attr_writer :enable_speaker_diarization
225
+
226
+ # Hints to improve transcription accuracy.
227
+ sig { returns(T.nilable(T::Array[String])) }
228
+ attr_reader :hints
229
+
230
+ sig { params(hints: T::Array[String]).void }
231
+ attr_writer :hints
232
+
233
+ # Whether to send also interim results. If set to false, only final results will
234
+ # be sent.
235
+ sig { returns(T.nilable(T::Boolean)) }
236
+ attr_reader :interim_results
237
+
238
+ sig { params(interim_results: T::Boolean).void }
239
+ attr_writer :interim_results
240
+
241
+ # Language to use for speech recognition
242
+ sig do
243
+ returns(
244
+ T.nilable(Telnyx::Calls::GoogleTranscriptionLanguage::OrSymbol)
245
+ )
246
+ end
247
+ attr_reader :language
248
+
249
+ sig do
250
+ params(
251
+ language: Telnyx::Calls::GoogleTranscriptionLanguage::OrSymbol
252
+ ).void
253
+ end
254
+ attr_writer :language
255
+
256
+ # Defines maximum number of speakers in the conversation.
257
+ sig { returns(T.nilable(Integer)) }
258
+ attr_reader :max_speaker_count
259
+
260
+ sig { params(max_speaker_count: Integer).void }
261
+ attr_writer :max_speaker_count
262
+
263
+ # Defines minimum number of speakers in the conversation.
264
+ sig { returns(T.nilable(Integer)) }
265
+ attr_reader :min_speaker_count
266
+
267
+ sig { params(min_speaker_count: Integer).void }
268
+ attr_writer :min_speaker_count
269
+
270
+ # The model to use for transcription.
271
+ sig do
272
+ returns(
273
+ T.nilable(
274
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::OrSymbol
275
+ )
276
+ )
277
+ end
278
+ attr_reader :model
279
+
280
+ sig do
281
+ params(
282
+ model:
283
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::OrSymbol
284
+ ).void
285
+ end
286
+ attr_writer :model
287
+
288
+ # Enables profanity_filter.
289
+ sig { returns(T.nilable(T::Boolean)) }
290
+ attr_reader :profanity_filter
291
+
292
+ sig { params(profanity_filter: T::Boolean).void }
293
+ attr_writer :profanity_filter
294
+
295
+ # Speech context to improve transcription accuracy.
296
+ sig do
297
+ returns(
298
+ T.nilable(
299
+ T::Array[
300
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext
301
+ ]
302
+ )
303
+ )
304
+ end
305
+ attr_reader :speech_context
306
+
307
+ sig do
308
+ params(
309
+ speech_context:
310
+ T::Array[
311
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext::OrHash
312
+ ]
313
+ ).void
314
+ end
315
+ attr_writer :speech_context
316
+
317
+ # Engine identifier for Google transcription service
318
+ sig do
319
+ returns(
320
+ T.nilable(
321
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::TranscriptionEngine::OrSymbol
322
+ )
323
+ )
324
+ end
325
+ attr_reader :transcription_engine
326
+
327
+ sig do
328
+ params(
329
+ transcription_engine:
330
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::TranscriptionEngine::OrSymbol
331
+ ).void
332
+ end
333
+ attr_writer :transcription_engine
334
+
335
+ # Enables enhanced transcription, this works for models `phone_call` and `video`.
336
+ sig { returns(T.nilable(T::Boolean)) }
337
+ attr_reader :use_enhanced
338
+
339
+ sig { params(use_enhanced: T::Boolean).void }
340
+ attr_writer :use_enhanced
341
+
342
+ sig do
343
+ params(
344
+ enable_speaker_diarization: T::Boolean,
345
+ hints: T::Array[String],
346
+ interim_results: T::Boolean,
347
+ language: Telnyx::Calls::GoogleTranscriptionLanguage::OrSymbol,
348
+ max_speaker_count: Integer,
349
+ min_speaker_count: Integer,
350
+ model:
351
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::OrSymbol,
352
+ profanity_filter: T::Boolean,
353
+ speech_context:
354
+ T::Array[
355
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext::OrHash
356
+ ],
357
+ transcription_engine:
358
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::TranscriptionEngine::OrSymbol,
359
+ use_enhanced: T::Boolean
360
+ ).returns(T.attached_class)
361
+ end
362
+ def self.new(
363
+ # Enables speaker diarization.
364
+ enable_speaker_diarization: nil,
365
+ # Hints to improve transcription accuracy.
366
+ hints: nil,
367
+ # Whether to send also interim results. If set to false, only final results will
368
+ # be sent.
369
+ interim_results: nil,
370
+ # Language to use for speech recognition
371
+ language: nil,
372
+ # Defines maximum number of speakers in the conversation.
373
+ max_speaker_count: nil,
374
+ # Defines minimum number of speakers in the conversation.
375
+ min_speaker_count: nil,
376
+ # The model to use for transcription.
377
+ model: nil,
378
+ # Enables profanity_filter.
379
+ profanity_filter: nil,
380
+ # Speech context to improve transcription accuracy.
381
+ speech_context: nil,
382
+ # Engine identifier for Google transcription service
383
+ transcription_engine: nil,
384
+ # Enables enhanced transcription, this works for models `phone_call` and `video`.
385
+ use_enhanced: nil
386
+ )
387
+ end
388
+
389
+ sig do
390
+ override.returns(
391
+ {
392
+ enable_speaker_diarization: T::Boolean,
393
+ hints: T::Array[String],
394
+ interim_results: T::Boolean,
395
+ language:
396
+ Telnyx::Calls::GoogleTranscriptionLanguage::OrSymbol,
397
+ max_speaker_count: Integer,
398
+ min_speaker_count: Integer,
399
+ model:
400
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::OrSymbol,
401
+ profanity_filter: T::Boolean,
402
+ speech_context:
403
+ T::Array[
404
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext
405
+ ],
406
+ transcription_engine:
407
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::TranscriptionEngine::OrSymbol,
408
+ use_enhanced: T::Boolean
409
+ }
410
+ )
411
+ end
412
+ def to_hash
413
+ end
414
+
415
+ # The model to use for transcription.
416
+ module Model
417
+ extend Telnyx::Internal::Type::Enum
418
+
419
+ TaggedSymbol =
420
+ T.type_alias do
421
+ T.all(
422
+ Symbol,
423
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model
424
+ )
425
+ end
426
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
427
+
428
+ LATEST_LONG =
429
+ T.let(
430
+ :latest_long,
431
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
432
+ )
433
+ LATEST_SHORT =
434
+ T.let(
435
+ :latest_short,
436
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
437
+ )
438
+ COMMAND_AND_SEARCH =
439
+ T.let(
440
+ :command_and_search,
441
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
442
+ )
443
+ PHONE_CALL =
444
+ T.let(
445
+ :phone_call,
446
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
447
+ )
448
+ VIDEO =
449
+ T.let(
450
+ :video,
451
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
452
+ )
453
+ DEFAULT =
454
+ T.let(
455
+ :default,
456
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
457
+ )
458
+ MEDICAL_CONVERSATION =
459
+ T.let(
460
+ :medical_conversation,
461
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
462
+ )
463
+ MEDICAL_DICTATION =
464
+ T.let(
465
+ :medical_dictation,
466
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
467
+ )
468
+
469
+ sig do
470
+ override.returns(
471
+ T::Array[
472
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::Model::TaggedSymbol
473
+ ]
474
+ )
475
+ end
476
+ def self.values
477
+ end
478
+ end
479
+
480
+ class SpeechContext < Telnyx::Internal::Type::BaseModel
481
+ OrHash =
482
+ T.type_alias do
483
+ T.any(
484
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::SpeechContext,
485
+ Telnyx::Internal::AnyHash
486
+ )
487
+ end
488
+
489
+ # Boost factor for the speech context.
490
+ sig { returns(T.nilable(Float)) }
491
+ attr_reader :boost
492
+
493
+ sig { params(boost: Float).void }
494
+ attr_writer :boost
495
+
496
+ sig { returns(T.nilable(T::Array[String])) }
497
+ attr_reader :phrases
498
+
499
+ sig { params(phrases: T::Array[String]).void }
500
+ attr_writer :phrases
501
+
502
+ sig do
503
+ params(boost: Float, phrases: T::Array[String]).returns(
504
+ T.attached_class
505
+ )
506
+ end
507
+ def self.new(
508
+ # Boost factor for the speech context.
509
+ boost: nil,
510
+ phrases: nil
511
+ )
512
+ end
513
+
514
+ sig do
515
+ override.returns({ boost: Float, phrases: T::Array[String] })
516
+ end
517
+ def to_hash
518
+ end
519
+ end
520
+
521
+ # Engine identifier for Google transcription service
522
+ module TranscriptionEngine
523
+ extend Telnyx::Internal::Type::Enum
524
+
525
+ TaggedSymbol =
526
+ T.type_alias do
527
+ T.all(
528
+ Symbol,
529
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::TranscriptionEngine
530
+ )
531
+ end
532
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
533
+
534
+ GOOGLE =
535
+ T.let(
536
+ :Google,
537
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::TranscriptionEngine::TaggedSymbol
538
+ )
539
+
540
+ sig do
541
+ override.returns(
542
+ T::Array[
543
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::TranscriptionEngine::TaggedSymbol
544
+ ]
545
+ )
546
+ end
547
+ def self.values
548
+ end
549
+ end
550
+ end
551
+
552
+ class Telnyx < Telnyx::Internal::Type::BaseModel
553
+ OrHash =
554
+ T.type_alias do
555
+ T.any(
556
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx,
557
+ Telnyx::Internal::AnyHash
558
+ )
559
+ end
560
+
561
+ # Language to use for speech recognition
562
+ sig do
563
+ returns(
564
+ T.nilable(
565
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::OrSymbol
566
+ )
567
+ )
568
+ end
569
+ attr_reader :language
570
+
571
+ sig do
572
+ params(
573
+ language:
574
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::OrSymbol
575
+ ).void
576
+ end
577
+ attr_writer :language
578
+
579
+ # Engine identifier for Telnyx transcription service
580
+ sig do
581
+ returns(
582
+ T.nilable(
583
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionEngine::OrSymbol
584
+ )
585
+ )
586
+ end
587
+ attr_reader :transcription_engine
588
+
589
+ sig do
590
+ params(
591
+ transcription_engine:
592
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionEngine::OrSymbol
593
+ ).void
594
+ end
595
+ attr_writer :transcription_engine
596
+
597
+ # The model to use for transcription.
598
+ sig do
599
+ returns(
600
+ T.nilable(
601
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel::OrSymbol
602
+ )
603
+ )
604
+ end
605
+ attr_reader :transcription_model
606
+
607
+ sig do
608
+ params(
609
+ transcription_model:
610
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel::OrSymbol
611
+ ).void
612
+ end
613
+ attr_writer :transcription_model
614
+
615
+ sig do
616
+ params(
617
+ language:
618
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::OrSymbol,
619
+ transcription_engine:
620
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionEngine::OrSymbol,
621
+ transcription_model:
622
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel::OrSymbol
623
+ ).returns(T.attached_class)
624
+ end
625
+ def self.new(
626
+ # Language to use for speech recognition
627
+ language: nil,
628
+ # Engine identifier for Telnyx transcription service
629
+ transcription_engine: nil,
630
+ # The model to use for transcription.
631
+ transcription_model: nil
632
+ )
633
+ end
634
+
635
+ sig do
636
+ override.returns(
637
+ {
638
+ language:
639
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::OrSymbol,
640
+ transcription_engine:
641
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionEngine::OrSymbol,
642
+ transcription_model:
643
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel::OrSymbol
644
+ }
645
+ )
646
+ end
647
+ def to_hash
648
+ end
649
+
650
+ # Language to use for speech recognition
651
+ module Language
652
+ extend Telnyx::Internal::Type::Enum
653
+
654
+ TaggedSymbol =
655
+ T.type_alias do
656
+ T.all(
657
+ Symbol,
658
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language
659
+ )
660
+ end
661
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
662
+
663
+ EN =
664
+ T.let(
665
+ :en,
666
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
667
+ )
668
+ ZH =
669
+ T.let(
670
+ :zh,
671
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
672
+ )
673
+ DE =
674
+ T.let(
675
+ :de,
676
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
677
+ )
678
+ ES =
679
+ T.let(
680
+ :es,
681
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
682
+ )
683
+ RU =
684
+ T.let(
685
+ :ru,
686
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
687
+ )
688
+ KO =
689
+ T.let(
690
+ :ko,
691
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
692
+ )
693
+ FR =
694
+ T.let(
695
+ :fr,
696
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
697
+ )
698
+ JA =
699
+ T.let(
700
+ :ja,
701
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
702
+ )
703
+ PT =
704
+ T.let(
705
+ :pt,
706
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
707
+ )
708
+ TR =
709
+ T.let(
710
+ :tr,
711
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
712
+ )
713
+ PL =
714
+ T.let(
715
+ :pl,
716
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
717
+ )
718
+ CA =
719
+ T.let(
720
+ :ca,
721
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
722
+ )
723
+ NL =
724
+ T.let(
725
+ :nl,
726
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
727
+ )
728
+ AR =
729
+ T.let(
730
+ :ar,
731
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
732
+ )
733
+ SV =
734
+ T.let(
735
+ :sv,
736
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
737
+ )
738
+ IT =
739
+ T.let(
740
+ :it,
741
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
742
+ )
743
+ ID =
744
+ T.let(
745
+ :id,
746
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
747
+ )
748
+ HI =
749
+ T.let(
750
+ :hi,
751
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
752
+ )
753
+ FI =
754
+ T.let(
755
+ :fi,
756
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
757
+ )
758
+ VI =
759
+ T.let(
760
+ :vi,
761
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
762
+ )
763
+ HE =
764
+ T.let(
765
+ :he,
766
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
767
+ )
768
+ UK =
769
+ T.let(
770
+ :uk,
771
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
772
+ )
773
+ EL =
774
+ T.let(
775
+ :el,
776
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
777
+ )
778
+ MS =
779
+ T.let(
780
+ :ms,
781
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
782
+ )
783
+ CS =
784
+ T.let(
785
+ :cs,
786
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
787
+ )
788
+ RO =
789
+ T.let(
790
+ :ro,
791
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
792
+ )
793
+ DA =
794
+ T.let(
795
+ :da,
796
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
797
+ )
798
+ HU =
799
+ T.let(
800
+ :hu,
801
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
802
+ )
803
+ TA =
804
+ T.let(
805
+ :ta,
806
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
807
+ )
808
+ NO =
809
+ T.let(
810
+ :no,
811
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
812
+ )
813
+ TH =
814
+ T.let(
815
+ :th,
816
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
817
+ )
818
+ UR =
819
+ T.let(
820
+ :ur,
821
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
822
+ )
823
+ HR =
824
+ T.let(
825
+ :hr,
826
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
827
+ )
828
+ BG =
829
+ T.let(
830
+ :bg,
831
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
832
+ )
833
+ LT =
834
+ T.let(
835
+ :lt,
836
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
837
+ )
838
+ LA =
839
+ T.let(
840
+ :la,
841
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
842
+ )
843
+ MI =
844
+ T.let(
845
+ :mi,
846
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
847
+ )
848
+ ML =
849
+ T.let(
850
+ :ml,
851
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
852
+ )
853
+ CY =
854
+ T.let(
855
+ :cy,
856
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
857
+ )
858
+ SK =
859
+ T.let(
860
+ :sk,
861
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
862
+ )
863
+ TE =
864
+ T.let(
865
+ :te,
866
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
867
+ )
868
+ FA =
869
+ T.let(
870
+ :fa,
871
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
872
+ )
873
+ LV =
874
+ T.let(
875
+ :lv,
876
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
877
+ )
878
+ BN =
879
+ T.let(
880
+ :bn,
881
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
882
+ )
883
+ SR =
884
+ T.let(
885
+ :sr,
886
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
887
+ )
888
+ AZ =
889
+ T.let(
890
+ :az,
891
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
892
+ )
893
+ SL =
894
+ T.let(
895
+ :sl,
896
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
897
+ )
898
+ KN =
899
+ T.let(
900
+ :kn,
901
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
902
+ )
903
+ ET =
904
+ T.let(
905
+ :et,
906
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
907
+ )
908
+ MK =
909
+ T.let(
910
+ :mk,
911
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
912
+ )
913
+ BR =
914
+ T.let(
915
+ :br,
916
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
917
+ )
918
+ EU =
919
+ T.let(
920
+ :eu,
921
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
922
+ )
923
+ IS =
924
+ T.let(
925
+ :is,
926
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
927
+ )
928
+ HY =
929
+ T.let(
930
+ :hy,
931
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
932
+ )
933
+ NE =
934
+ T.let(
935
+ :ne,
936
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
937
+ )
938
+ MN =
939
+ T.let(
940
+ :mn,
941
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
942
+ )
943
+ BS =
944
+ T.let(
945
+ :bs,
946
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
947
+ )
948
+ KK =
949
+ T.let(
950
+ :kk,
951
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
952
+ )
953
+ SQ =
954
+ T.let(
955
+ :sq,
956
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
957
+ )
958
+ SW =
959
+ T.let(
960
+ :sw,
961
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
962
+ )
963
+ GL =
964
+ T.let(
965
+ :gl,
966
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
967
+ )
968
+ MR =
969
+ T.let(
970
+ :mr,
971
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
972
+ )
973
+ PA =
974
+ T.let(
975
+ :pa,
976
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
977
+ )
978
+ SI =
979
+ T.let(
980
+ :si,
981
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
982
+ )
983
+ KM =
984
+ T.let(
985
+ :km,
986
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
987
+ )
988
+ SN =
989
+ T.let(
990
+ :sn,
991
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
992
+ )
993
+ YO =
994
+ T.let(
995
+ :yo,
996
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
997
+ )
998
+ SO =
999
+ T.let(
1000
+ :so,
1001
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1002
+ )
1003
+ AF =
1004
+ T.let(
1005
+ :af,
1006
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1007
+ )
1008
+ OC =
1009
+ T.let(
1010
+ :oc,
1011
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1012
+ )
1013
+ KA =
1014
+ T.let(
1015
+ :ka,
1016
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1017
+ )
1018
+ BE =
1019
+ T.let(
1020
+ :be,
1021
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1022
+ )
1023
+ TG =
1024
+ T.let(
1025
+ :tg,
1026
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1027
+ )
1028
+ SD =
1029
+ T.let(
1030
+ :sd,
1031
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1032
+ )
1033
+ GU =
1034
+ T.let(
1035
+ :gu,
1036
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1037
+ )
1038
+ AM =
1039
+ T.let(
1040
+ :am,
1041
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1042
+ )
1043
+ YI =
1044
+ T.let(
1045
+ :yi,
1046
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1047
+ )
1048
+ LO =
1049
+ T.let(
1050
+ :lo,
1051
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1052
+ )
1053
+ UZ =
1054
+ T.let(
1055
+ :uz,
1056
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1057
+ )
1058
+ FO =
1059
+ T.let(
1060
+ :fo,
1061
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1062
+ )
1063
+ HT =
1064
+ T.let(
1065
+ :ht,
1066
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1067
+ )
1068
+ PS =
1069
+ T.let(
1070
+ :ps,
1071
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1072
+ )
1073
+ TK =
1074
+ T.let(
1075
+ :tk,
1076
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1077
+ )
1078
+ NN =
1079
+ T.let(
1080
+ :nn,
1081
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1082
+ )
1083
+ MT =
1084
+ T.let(
1085
+ :mt,
1086
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1087
+ )
1088
+ SA =
1089
+ T.let(
1090
+ :sa,
1091
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1092
+ )
1093
+ LB =
1094
+ T.let(
1095
+ :lb,
1096
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1097
+ )
1098
+ MY =
1099
+ T.let(
1100
+ :my,
1101
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1102
+ )
1103
+ BO =
1104
+ T.let(
1105
+ :bo,
1106
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1107
+ )
1108
+ TL =
1109
+ T.let(
1110
+ :tl,
1111
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1112
+ )
1113
+ MG =
1114
+ T.let(
1115
+ :mg,
1116
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1117
+ )
1118
+ AS =
1119
+ T.let(
1120
+ :as,
1121
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1122
+ )
1123
+ TT =
1124
+ T.let(
1125
+ :tt,
1126
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1127
+ )
1128
+ HAW =
1129
+ T.let(
1130
+ :haw,
1131
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1132
+ )
1133
+ LN =
1134
+ T.let(
1135
+ :ln,
1136
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1137
+ )
1138
+ HA =
1139
+ T.let(
1140
+ :ha,
1141
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1142
+ )
1143
+ BA =
1144
+ T.let(
1145
+ :ba,
1146
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1147
+ )
1148
+ JW =
1149
+ T.let(
1150
+ :jw,
1151
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1152
+ )
1153
+ SU =
1154
+ T.let(
1155
+ :su,
1156
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1157
+ )
1158
+ AUTO_DETECT =
1159
+ T.let(
1160
+ :auto_detect,
1161
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1162
+ )
1163
+
1164
+ sig do
1165
+ override.returns(
1166
+ T::Array[
1167
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::Language::TaggedSymbol
1168
+ ]
1169
+ )
1170
+ end
1171
+ def self.values
1172
+ end
1173
+ end
1174
+
1175
+ # Engine identifier for Telnyx transcription service
1176
+ module TranscriptionEngine
1177
+ extend Telnyx::Internal::Type::Enum
1178
+
1179
+ TaggedSymbol =
1180
+ T.type_alias do
1181
+ T.all(
1182
+ Symbol,
1183
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionEngine
1184
+ )
1185
+ end
1186
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1187
+
1188
+ TELNYX =
1189
+ T.let(
1190
+ :Telnyx,
1191
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionEngine::TaggedSymbol
1192
+ )
1193
+
1194
+ sig do
1195
+ override.returns(
1196
+ T::Array[
1197
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionEngine::TaggedSymbol
1198
+ ]
1199
+ )
1200
+ end
1201
+ def self.values
1202
+ end
1203
+ end
1204
+
1205
+ # The model to use for transcription.
1206
+ module TranscriptionModel
1207
+ extend Telnyx::Internal::Type::Enum
1208
+
1209
+ TaggedSymbol =
1210
+ T.type_alias do
1211
+ T.all(
1212
+ Symbol,
1213
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel
1214
+ )
1215
+ end
1216
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1217
+
1218
+ OPENAI_WHISPER_TINY =
1219
+ T.let(
1220
+ :"openai/whisper-tiny",
1221
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel::TaggedSymbol
1222
+ )
1223
+ OPENAI_WHISPER_LARGE_V3_TURBO =
1224
+ T.let(
1225
+ :"openai/whisper-large-v3-turbo",
1226
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel::TaggedSymbol
1227
+ )
1228
+
1229
+ sig do
1230
+ override.returns(
1231
+ T::Array[
1232
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::TranscriptionModel::TaggedSymbol
1233
+ ]
1234
+ )
1235
+ end
1236
+ def self.values
1237
+ end
1238
+ end
1239
+ end
1240
+
1241
+ class Deepgram < Telnyx::Internal::Type::BaseModel
1242
+ OrHash =
1243
+ T.type_alias do
1244
+ T.any(
1245
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram,
1246
+ Telnyx::Internal::AnyHash
1247
+ )
1248
+ end
1249
+
1250
+ # Engine identifier for Deepgram transcription service
1251
+ sig { returns(Symbol) }
1252
+ attr_accessor :transcription_engine
1253
+
1254
+ # The model to use for transcription.
1255
+ sig do
1256
+ returns(
1257
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::TranscriptionModel::OrSymbol
1258
+ )
1259
+ end
1260
+ attr_accessor :transcription_model
1261
+
1262
+ # Language to use for speech recognition. Available languages depend on the
1263
+ # selected model.
1264
+ sig do
1265
+ returns(
1266
+ T.nilable(
1267
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::OrSymbol
1268
+ )
1269
+ )
1270
+ end
1271
+ attr_reader :language
1272
+
1273
+ sig do
1274
+ params(
1275
+ language:
1276
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::OrSymbol
1277
+ ).void
1278
+ end
1279
+ attr_writer :language
1280
+
1281
+ sig do
1282
+ params(
1283
+ transcription_model:
1284
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::TranscriptionModel::OrSymbol,
1285
+ language:
1286
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::OrSymbol,
1287
+ transcription_engine: Symbol
1288
+ ).returns(T.attached_class)
1289
+ end
1290
+ def self.new(
1291
+ # The model to use for transcription.
1292
+ transcription_model:,
1293
+ # Language to use for speech recognition. Available languages depend on the
1294
+ # selected model.
1295
+ language: nil,
1296
+ # Engine identifier for Deepgram transcription service
1297
+ transcription_engine: :Deepgram
1298
+ )
1299
+ end
1300
+
1301
+ sig do
1302
+ override.returns(
1303
+ {
1304
+ transcription_engine: Symbol,
1305
+ transcription_model:
1306
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::TranscriptionModel::OrSymbol,
1307
+ language:
1308
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::OrSymbol
1309
+ }
1310
+ )
1311
+ end
1312
+ def to_hash
1313
+ end
1314
+
1315
+ # The model to use for transcription.
1316
+ module TranscriptionModel
1317
+ extend Telnyx::Internal::Type::Enum
1318
+
1319
+ TaggedSymbol =
1320
+ T.type_alias do
1321
+ T.all(
1322
+ Symbol,
1323
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::TranscriptionModel
1324
+ )
1325
+ end
1326
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1327
+
1328
+ DEEPGRAM_NOVA_2 =
1329
+ T.let(
1330
+ :"deepgram/nova-2",
1331
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::TranscriptionModel::TaggedSymbol
1332
+ )
1333
+ DEEPGRAM_NOVA_3 =
1334
+ T.let(
1335
+ :"deepgram/nova-3",
1336
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::TranscriptionModel::TaggedSymbol
1337
+ )
1338
+
1339
+ sig do
1340
+ override.returns(
1341
+ T::Array[
1342
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::TranscriptionModel::TaggedSymbol
1343
+ ]
1344
+ )
1345
+ end
1346
+ def self.values
1347
+ end
1348
+ end
1349
+
1350
+ # Language to use for speech recognition. Available languages depend on the
1351
+ # selected model.
1352
+ module Language
1353
+ extend Telnyx::Internal::Type::Enum
1354
+
1355
+ TaggedSymbol =
1356
+ T.type_alias do
1357
+ T.all(
1358
+ Symbol,
1359
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language
1360
+ )
1361
+ end
1362
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1363
+
1364
+ BG =
1365
+ T.let(
1366
+ :bg,
1367
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1368
+ )
1369
+ CA =
1370
+ T.let(
1371
+ :ca,
1372
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1373
+ )
1374
+ ZH =
1375
+ T.let(
1376
+ :zh,
1377
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1378
+ )
1379
+ ZH_CN =
1380
+ T.let(
1381
+ :"zh-CN",
1382
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1383
+ )
1384
+ ZH_HANS =
1385
+ T.let(
1386
+ :"zh-Hans",
1387
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1388
+ )
1389
+ ZH_TW =
1390
+ T.let(
1391
+ :"zh-TW",
1392
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1393
+ )
1394
+ ZH_HANT =
1395
+ T.let(
1396
+ :"zh-Hant",
1397
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1398
+ )
1399
+ ZH_HK =
1400
+ T.let(
1401
+ :"zh-HK",
1402
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1403
+ )
1404
+ CS =
1405
+ T.let(
1406
+ :cs,
1407
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1408
+ )
1409
+ DA =
1410
+ T.let(
1411
+ :da,
1412
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1413
+ )
1414
+ DA_DK =
1415
+ T.let(
1416
+ :"da-DK",
1417
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1418
+ )
1419
+ NL =
1420
+ T.let(
1421
+ :nl,
1422
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1423
+ )
1424
+ EN =
1425
+ T.let(
1426
+ :en,
1427
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1428
+ )
1429
+ EN_US =
1430
+ T.let(
1431
+ :"en-US",
1432
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1433
+ )
1434
+ EN_AU =
1435
+ T.let(
1436
+ :"en-AU",
1437
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1438
+ )
1439
+ EN_GB =
1440
+ T.let(
1441
+ :"en-GB",
1442
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1443
+ )
1444
+ EN_NZ =
1445
+ T.let(
1446
+ :"en-NZ",
1447
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1448
+ )
1449
+ EN_IN =
1450
+ T.let(
1451
+ :"en-IN",
1452
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1453
+ )
1454
+ ET =
1455
+ T.let(
1456
+ :et,
1457
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1458
+ )
1459
+ FI =
1460
+ T.let(
1461
+ :fi,
1462
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1463
+ )
1464
+ NL_BE =
1465
+ T.let(
1466
+ :"nl-BE",
1467
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1468
+ )
1469
+ FR =
1470
+ T.let(
1471
+ :fr,
1472
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1473
+ )
1474
+ FR_CA =
1475
+ T.let(
1476
+ :"fr-CA",
1477
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1478
+ )
1479
+ DE =
1480
+ T.let(
1481
+ :de,
1482
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1483
+ )
1484
+ DE_CH =
1485
+ T.let(
1486
+ :"de-CH",
1487
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1488
+ )
1489
+ EL =
1490
+ T.let(
1491
+ :el,
1492
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1493
+ )
1494
+ HI =
1495
+ T.let(
1496
+ :hi,
1497
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1498
+ )
1499
+ HU =
1500
+ T.let(
1501
+ :hu,
1502
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1503
+ )
1504
+ ID =
1505
+ T.let(
1506
+ :id,
1507
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1508
+ )
1509
+ IT =
1510
+ T.let(
1511
+ :it,
1512
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1513
+ )
1514
+ JA =
1515
+ T.let(
1516
+ :ja,
1517
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1518
+ )
1519
+ KO =
1520
+ T.let(
1521
+ :ko,
1522
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1523
+ )
1524
+ KO_KR =
1525
+ T.let(
1526
+ :"ko-KR",
1527
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1528
+ )
1529
+ LV =
1530
+ T.let(
1531
+ :lv,
1532
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1533
+ )
1534
+ LT =
1535
+ T.let(
1536
+ :lt,
1537
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1538
+ )
1539
+ MS =
1540
+ T.let(
1541
+ :ms,
1542
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1543
+ )
1544
+ NO =
1545
+ T.let(
1546
+ :no,
1547
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1548
+ )
1549
+ PL =
1550
+ T.let(
1551
+ :pl,
1552
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1553
+ )
1554
+ PT =
1555
+ T.let(
1556
+ :pt,
1557
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1558
+ )
1559
+ PT_BR =
1560
+ T.let(
1561
+ :"pt-BR",
1562
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1563
+ )
1564
+ PT_PT =
1565
+ T.let(
1566
+ :"pt-PT",
1567
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1568
+ )
1569
+ RO =
1570
+ T.let(
1571
+ :ro,
1572
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1573
+ )
1574
+ RU =
1575
+ T.let(
1576
+ :ru,
1577
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1578
+ )
1579
+ SK =
1580
+ T.let(
1581
+ :sk,
1582
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1583
+ )
1584
+ ES =
1585
+ T.let(
1586
+ :es,
1587
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1588
+ )
1589
+ ES_419 =
1590
+ T.let(
1591
+ :"es-419",
1592
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1593
+ )
1594
+ SV =
1595
+ T.let(
1596
+ :sv,
1597
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1598
+ )
1599
+ SV_SE =
1600
+ T.let(
1601
+ :"sv-SE",
1602
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1603
+ )
1604
+ TH =
1605
+ T.let(
1606
+ :th,
1607
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1608
+ )
1609
+ TH_TH =
1610
+ T.let(
1611
+ :"th-TH",
1612
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1613
+ )
1614
+ TR =
1615
+ T.let(
1616
+ :tr,
1617
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1618
+ )
1619
+ UK =
1620
+ T.let(
1621
+ :uk,
1622
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1623
+ )
1624
+ VI =
1625
+ T.let(
1626
+ :vi,
1627
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1628
+ )
1629
+ AUTO_DETECT =
1630
+ T.let(
1631
+ :auto_detect,
1632
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1633
+ )
1634
+
1635
+ sig do
1636
+ override.returns(
1637
+ T::Array[
1638
+ Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::Language::TaggedSymbol
1639
+ ]
1640
+ )
1641
+ end
1642
+ def self.values
1643
+ end
1644
+ end
1645
+ end
1646
+
177
1647
  sig do
178
1648
  override.returns(
179
1649
  T::Array[