telnyx 5.119.0 → 5.121.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 +21 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +6 -0
- data/lib/telnyx/models/call_dial_params.rb +551 -1
- data/lib/telnyx/models/calls/action_answer_params.rb +556 -1
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +2 -2
- data/lib/telnyx/models/calls/action_speak_params.rb +2 -2
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +411 -84
- data/lib/telnyx/models/conferences/action_speak_params.rb +2 -2
- data/lib/telnyx/models/voice_sdk_call_report_list_params.rb +56 -0
- data/lib/telnyx/models/voice_sdk_call_report_list_response.rb +385 -0
- data/lib/telnyx/models/voice_sdk_call_report_retrieve_params.rb +20 -0
- data/lib/telnyx/models/voice_sdk_call_report_retrieve_response.rb +390 -0
- data/lib/telnyx/models.rb +4 -0
- data/lib/telnyx/resources/calls/actions.rb +26 -8
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/voice_sdk_call_reports.rb +71 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +5 -0
- data/rbi/telnyx/client.rbi +5 -0
- data/rbi/telnyx/models/call_dial_params.rbi +1273 -0
- data/rbi/telnyx/models/calls/action_answer_params.rbi +1279 -0
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +4 -4
- data/rbi/telnyx/models/calls/action_speak_params.rbi +4 -4
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +928 -133
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +4 -4
- data/rbi/telnyx/models/voice_sdk_call_report_list_params.rbi +108 -0
- data/rbi/telnyx/models/voice_sdk_call_report_list_response.rbi +774 -0
- data/rbi/telnyx/models/voice_sdk_call_report_retrieve_params.rbi +38 -0
- data/rbi/telnyx/models/voice_sdk_call_report_retrieve_response.rbi +782 -0
- data/rbi/telnyx/models.rbi +5 -0
- data/rbi/telnyx/resources/calls/actions.rbi +73 -24
- data/rbi/telnyx/resources/calls.rbi +9 -0
- data/rbi/telnyx/resources/conferences/actions.rbi +2 -2
- data/rbi/telnyx/resources/voice_sdk_call_reports.rbi +58 -0
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/call_dial_params.rbs +440 -0
- data/sig/telnyx/models/calls/action_answer_params.rbs +440 -0
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +317 -51
- data/sig/telnyx/models/voice_sdk_call_report_list_params.rbs +57 -0
- data/sig/telnyx/models/voice_sdk_call_report_list_response.rbs +340 -0
- data/sig/telnyx/models/voice_sdk_call_report_retrieve_params.rbs +23 -0
- data/sig/telnyx/models/voice_sdk_call_report_retrieve_response.rbs +345 -0
- data/sig/telnyx/models.rbs +4 -0
- data/sig/telnyx/resources/calls/actions.rbs +12 -3
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/voice_sdk_call_reports.rbs +19 -0
- metadata +17 -2
|
@@ -8,6 +8,7 @@ module Telnyx
|
|
|
8
8
|
billing_group_id: String,
|
|
9
9
|
client_state: String,
|
|
10
10
|
command_id: String,
|
|
11
|
+
conversation_relay_config: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig,
|
|
11
12
|
custom_headers: ::Array[Telnyx::CustomSipHeader],
|
|
12
13
|
deepfake_detection: Telnyx::Calls::ActionAnswerParams::DeepfakeDetection,
|
|
13
14
|
preferred_codecs: Telnyx::Models::Calls::ActionAnswerParams::preferred_codecs,
|
|
@@ -62,6 +63,12 @@ module Telnyx
|
|
|
62
63
|
|
|
63
64
|
def command_id=: (String) -> String
|
|
64
65
|
|
|
66
|
+
attr_reader conversation_relay_config: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig?
|
|
67
|
+
|
|
68
|
+
def conversation_relay_config=: (
|
|
69
|
+
Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig
|
|
70
|
+
) -> Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig
|
|
71
|
+
|
|
65
72
|
attr_reader custom_headers: ::Array[Telnyx::CustomSipHeader]?
|
|
66
73
|
|
|
67
74
|
def custom_headers=: (
|
|
@@ -214,6 +221,7 @@ module Telnyx
|
|
|
214
221
|
?billing_group_id: String,
|
|
215
222
|
?client_state: String,
|
|
216
223
|
?command_id: String,
|
|
224
|
+
?conversation_relay_config: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig,
|
|
217
225
|
?custom_headers: ::Array[Telnyx::CustomSipHeader],
|
|
218
226
|
?deepfake_detection: Telnyx::Calls::ActionAnswerParams::DeepfakeDetection,
|
|
219
227
|
?preferred_codecs: Telnyx::Models::Calls::ActionAnswerParams::preferred_codecs,
|
|
@@ -250,6 +258,7 @@ module Telnyx
|
|
|
250
258
|
billing_group_id: String,
|
|
251
259
|
client_state: String,
|
|
252
260
|
command_id: String,
|
|
261
|
+
conversation_relay_config: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig,
|
|
253
262
|
custom_headers: ::Array[Telnyx::CustomSipHeader],
|
|
254
263
|
deepfake_detection: Telnyx::Calls::ActionAnswerParams::DeepfakeDetection,
|
|
255
264
|
preferred_codecs: Telnyx::Models::Calls::ActionAnswerParams::preferred_codecs,
|
|
@@ -280,6 +289,437 @@ module Telnyx
|
|
|
280
289
|
request_options: Telnyx::RequestOptions
|
|
281
290
|
}
|
|
282
291
|
|
|
292
|
+
type conversation_relay_config =
|
|
293
|
+
{
|
|
294
|
+
url: String,
|
|
295
|
+
custom_parameters: ::Hash[Symbol, top],
|
|
296
|
+
dtmf_detection: bool,
|
|
297
|
+
greeting: String,
|
|
298
|
+
interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible,
|
|
299
|
+
interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible_greeting,
|
|
300
|
+
interruption_settings: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings,
|
|
301
|
+
language: String,
|
|
302
|
+
languages: ::Array[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language],
|
|
303
|
+
provider: String,
|
|
304
|
+
structured_provider: ::Hash[Symbol, top],
|
|
305
|
+
transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::transcription_engine,
|
|
306
|
+
transcription_engine_config: ::Hash[Symbol, top],
|
|
307
|
+
tts_provider: String,
|
|
308
|
+
voice: String,
|
|
309
|
+
voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::voice_settings
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
class ConversationRelayConfig < Telnyx::Internal::Type::BaseModel
|
|
313
|
+
attr_accessor url: String
|
|
314
|
+
|
|
315
|
+
attr_reader custom_parameters: ::Hash[Symbol, top]?
|
|
316
|
+
|
|
317
|
+
def custom_parameters=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
318
|
+
|
|
319
|
+
attr_reader dtmf_detection: bool?
|
|
320
|
+
|
|
321
|
+
def dtmf_detection=: (bool) -> bool
|
|
322
|
+
|
|
323
|
+
attr_reader greeting: String?
|
|
324
|
+
|
|
325
|
+
def greeting=: (String) -> String
|
|
326
|
+
|
|
327
|
+
attr_reader interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible?
|
|
328
|
+
|
|
329
|
+
def interruptible=: (
|
|
330
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible
|
|
331
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible
|
|
332
|
+
|
|
333
|
+
attr_reader interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible_greeting?
|
|
334
|
+
|
|
335
|
+
def interruptible_greeting=: (
|
|
336
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible_greeting
|
|
337
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible_greeting
|
|
338
|
+
|
|
339
|
+
attr_reader interruption_settings: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings?
|
|
340
|
+
|
|
341
|
+
def interruption_settings=: (
|
|
342
|
+
Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings
|
|
343
|
+
) -> Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings
|
|
344
|
+
|
|
345
|
+
attr_reader language: String?
|
|
346
|
+
|
|
347
|
+
def language=: (String) -> String
|
|
348
|
+
|
|
349
|
+
attr_reader languages: ::Array[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language]?
|
|
350
|
+
|
|
351
|
+
def languages=: (
|
|
352
|
+
::Array[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language]
|
|
353
|
+
) -> ::Array[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language]
|
|
354
|
+
|
|
355
|
+
attr_reader provider: String?
|
|
356
|
+
|
|
357
|
+
def provider=: (String) -> String
|
|
358
|
+
|
|
359
|
+
attr_reader structured_provider: ::Hash[Symbol, top]?
|
|
360
|
+
|
|
361
|
+
def structured_provider=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
362
|
+
|
|
363
|
+
attr_reader transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::transcription_engine?
|
|
364
|
+
|
|
365
|
+
def transcription_engine=: (
|
|
366
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::transcription_engine
|
|
367
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::transcription_engine
|
|
368
|
+
|
|
369
|
+
attr_reader transcription_engine_config: ::Hash[Symbol, top]?
|
|
370
|
+
|
|
371
|
+
def transcription_engine_config=: (
|
|
372
|
+
::Hash[Symbol, top]
|
|
373
|
+
) -> ::Hash[Symbol, top]
|
|
374
|
+
|
|
375
|
+
attr_reader tts_provider: String?
|
|
376
|
+
|
|
377
|
+
def tts_provider=: (String) -> String
|
|
378
|
+
|
|
379
|
+
attr_reader voice: String?
|
|
380
|
+
|
|
381
|
+
def voice=: (String) -> String
|
|
382
|
+
|
|
383
|
+
attr_reader voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::voice_settings?
|
|
384
|
+
|
|
385
|
+
def voice_settings=: (
|
|
386
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::voice_settings
|
|
387
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::voice_settings
|
|
388
|
+
|
|
389
|
+
def initialize: (
|
|
390
|
+
url: String,
|
|
391
|
+
?custom_parameters: ::Hash[Symbol, top],
|
|
392
|
+
?dtmf_detection: bool,
|
|
393
|
+
?greeting: String,
|
|
394
|
+
?interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible,
|
|
395
|
+
?interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible_greeting,
|
|
396
|
+
?interruption_settings: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings,
|
|
397
|
+
?language: String,
|
|
398
|
+
?languages: ::Array[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language],
|
|
399
|
+
?provider: String,
|
|
400
|
+
?structured_provider: ::Hash[Symbol, top],
|
|
401
|
+
?transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::transcription_engine,
|
|
402
|
+
?transcription_engine_config: ::Hash[Symbol, top],
|
|
403
|
+
?tts_provider: String,
|
|
404
|
+
?voice: String,
|
|
405
|
+
?voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::voice_settings
|
|
406
|
+
) -> void
|
|
407
|
+
|
|
408
|
+
def to_hash: -> {
|
|
409
|
+
url: String,
|
|
410
|
+
custom_parameters: ::Hash[Symbol, top],
|
|
411
|
+
dtmf_detection: bool,
|
|
412
|
+
greeting: String,
|
|
413
|
+
interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible,
|
|
414
|
+
interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible_greeting,
|
|
415
|
+
interruption_settings: Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings,
|
|
416
|
+
language: String,
|
|
417
|
+
languages: ::Array[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language],
|
|
418
|
+
provider: String,
|
|
419
|
+
structured_provider: ::Hash[Symbol, top],
|
|
420
|
+
transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::transcription_engine,
|
|
421
|
+
transcription_engine_config: ::Hash[Symbol, top],
|
|
422
|
+
tts_provider: String,
|
|
423
|
+
voice: String,
|
|
424
|
+
voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::voice_settings
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
type interruptible = :none | :any | :speech | :dtmf
|
|
428
|
+
|
|
429
|
+
module Interruptible
|
|
430
|
+
extend Telnyx::Internal::Type::Enum
|
|
431
|
+
|
|
432
|
+
NONE: :none
|
|
433
|
+
ANY: :any
|
|
434
|
+
SPEECH: :speech
|
|
435
|
+
DTMF: :dtmf
|
|
436
|
+
|
|
437
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible]
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
type interruptible_greeting = :none | :any | :speech | :dtmf
|
|
441
|
+
|
|
442
|
+
module InterruptibleGreeting
|
|
443
|
+
extend Telnyx::Internal::Type::Enum
|
|
444
|
+
|
|
445
|
+
NONE: :none
|
|
446
|
+
ANY: :any
|
|
447
|
+
SPEECH: :speech
|
|
448
|
+
DTMF: :dtmf
|
|
449
|
+
|
|
450
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::interruptible_greeting]
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
type interruption_settings =
|
|
454
|
+
{
|
|
455
|
+
enable: bool,
|
|
456
|
+
interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible,
|
|
457
|
+
interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible_greeting,
|
|
458
|
+
welcome_greeting_interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::welcome_greeting_interruptible
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
class InterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
462
|
+
attr_reader enable: bool?
|
|
463
|
+
|
|
464
|
+
def enable=: (bool) -> bool
|
|
465
|
+
|
|
466
|
+
attr_reader interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible?
|
|
467
|
+
|
|
468
|
+
def interruptible=: (
|
|
469
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible
|
|
470
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible
|
|
471
|
+
|
|
472
|
+
attr_reader interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible_greeting?
|
|
473
|
+
|
|
474
|
+
def interruptible_greeting=: (
|
|
475
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible_greeting
|
|
476
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible_greeting
|
|
477
|
+
|
|
478
|
+
attr_reader welcome_greeting_interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::welcome_greeting_interruptible?
|
|
479
|
+
|
|
480
|
+
def welcome_greeting_interruptible=: (
|
|
481
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::welcome_greeting_interruptible
|
|
482
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::welcome_greeting_interruptible
|
|
483
|
+
|
|
484
|
+
def initialize: (
|
|
485
|
+
?enable: bool,
|
|
486
|
+
?interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible,
|
|
487
|
+
?interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible_greeting,
|
|
488
|
+
?welcome_greeting_interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::welcome_greeting_interruptible
|
|
489
|
+
) -> void
|
|
490
|
+
|
|
491
|
+
def to_hash: -> {
|
|
492
|
+
enable: bool,
|
|
493
|
+
interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible,
|
|
494
|
+
interruptible_greeting: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible_greeting,
|
|
495
|
+
welcome_greeting_interruptible: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::welcome_greeting_interruptible
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
type interruptible = :none | :any | :speech | :dtmf
|
|
499
|
+
|
|
500
|
+
module Interruptible
|
|
501
|
+
extend Telnyx::Internal::Type::Enum
|
|
502
|
+
|
|
503
|
+
NONE: :none
|
|
504
|
+
ANY: :any
|
|
505
|
+
SPEECH: :speech
|
|
506
|
+
DTMF: :dtmf
|
|
507
|
+
|
|
508
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible]
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
type interruptible_greeting = :none | :any | :speech | :dtmf
|
|
512
|
+
|
|
513
|
+
module InterruptibleGreeting
|
|
514
|
+
extend Telnyx::Internal::Type::Enum
|
|
515
|
+
|
|
516
|
+
NONE: :none
|
|
517
|
+
ANY: :any
|
|
518
|
+
SPEECH: :speech
|
|
519
|
+
DTMF: :dtmf
|
|
520
|
+
|
|
521
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::interruptible_greeting]
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
type welcome_greeting_interruptible = :none | :any | :speech | :dtmf
|
|
525
|
+
|
|
526
|
+
module WelcomeGreetingInterruptible
|
|
527
|
+
extend Telnyx::Internal::Type::Enum
|
|
528
|
+
|
|
529
|
+
NONE: :none
|
|
530
|
+
ANY: :any
|
|
531
|
+
SPEECH: :speech
|
|
532
|
+
DTMF: :dtmf
|
|
533
|
+
|
|
534
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::welcome_greeting_interruptible]
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
type language =
|
|
539
|
+
{
|
|
540
|
+
language: String,
|
|
541
|
+
speech_model: String,
|
|
542
|
+
transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::transcription_engine,
|
|
543
|
+
transcription_engine_config: ::Hash[Symbol, top],
|
|
544
|
+
transcription_provider: String,
|
|
545
|
+
tts_provider: String,
|
|
546
|
+
voice: String,
|
|
547
|
+
voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::voice_settings
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
class Language < Telnyx::Internal::Type::BaseModel
|
|
551
|
+
attr_accessor language: String
|
|
552
|
+
|
|
553
|
+
attr_reader speech_model: String?
|
|
554
|
+
|
|
555
|
+
def speech_model=: (String) -> String
|
|
556
|
+
|
|
557
|
+
attr_reader transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::transcription_engine?
|
|
558
|
+
|
|
559
|
+
def transcription_engine=: (
|
|
560
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::transcription_engine
|
|
561
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::transcription_engine
|
|
562
|
+
|
|
563
|
+
attr_reader transcription_engine_config: ::Hash[Symbol, top]?
|
|
564
|
+
|
|
565
|
+
def transcription_engine_config=: (
|
|
566
|
+
::Hash[Symbol, top]
|
|
567
|
+
) -> ::Hash[Symbol, top]
|
|
568
|
+
|
|
569
|
+
attr_reader transcription_provider: String?
|
|
570
|
+
|
|
571
|
+
def transcription_provider=: (String) -> String
|
|
572
|
+
|
|
573
|
+
attr_reader tts_provider: String?
|
|
574
|
+
|
|
575
|
+
def tts_provider=: (String) -> String
|
|
576
|
+
|
|
577
|
+
attr_reader voice: String?
|
|
578
|
+
|
|
579
|
+
def voice=: (String) -> String
|
|
580
|
+
|
|
581
|
+
attr_reader voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::voice_settings?
|
|
582
|
+
|
|
583
|
+
def voice_settings=: (
|
|
584
|
+
Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::voice_settings
|
|
585
|
+
) -> Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::voice_settings
|
|
586
|
+
|
|
587
|
+
def initialize: (
|
|
588
|
+
language: String,
|
|
589
|
+
?speech_model: String,
|
|
590
|
+
?transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::transcription_engine,
|
|
591
|
+
?transcription_engine_config: ::Hash[Symbol, top],
|
|
592
|
+
?transcription_provider: String,
|
|
593
|
+
?tts_provider: String,
|
|
594
|
+
?voice: String,
|
|
595
|
+
?voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::voice_settings
|
|
596
|
+
) -> void
|
|
597
|
+
|
|
598
|
+
def to_hash: -> {
|
|
599
|
+
language: String,
|
|
600
|
+
speech_model: String,
|
|
601
|
+
transcription_engine: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::transcription_engine,
|
|
602
|
+
transcription_engine_config: ::Hash[Symbol, top],
|
|
603
|
+
transcription_provider: String,
|
|
604
|
+
tts_provider: String,
|
|
605
|
+
voice: String,
|
|
606
|
+
voice_settings: Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::voice_settings
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
type transcription_engine =
|
|
610
|
+
:Google
|
|
611
|
+
| :Telnyx
|
|
612
|
+
| :Deepgram
|
|
613
|
+
| :Azure
|
|
614
|
+
| :xAI
|
|
615
|
+
| :AssemblyAI
|
|
616
|
+
| :Speechmatics
|
|
617
|
+
| :Soniox
|
|
618
|
+
| :A
|
|
619
|
+
| :B
|
|
620
|
+
|
|
621
|
+
module TranscriptionEngine
|
|
622
|
+
extend Telnyx::Internal::Type::Enum
|
|
623
|
+
|
|
624
|
+
GOOGLE: :Google
|
|
625
|
+
TELNYX: :Telnyx
|
|
626
|
+
DEEPGRAM: :Deepgram
|
|
627
|
+
AZURE: :Azure
|
|
628
|
+
X_AI: :xAI
|
|
629
|
+
ASSEMBLY_AI: :AssemblyAI
|
|
630
|
+
SPEECHMATICS: :Speechmatics
|
|
631
|
+
SONIOX: :Soniox
|
|
632
|
+
A: :A
|
|
633
|
+
B: :B
|
|
634
|
+
|
|
635
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::transcription_engine]
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
type voice_settings =
|
|
639
|
+
Telnyx::Calls::ElevenLabsVoiceSettings
|
|
640
|
+
| Telnyx::Calls::TelnyxVoiceSettings
|
|
641
|
+
| Telnyx::Calls::AwsVoiceSettings
|
|
642
|
+
| Telnyx::MinimaxVoiceSettings
|
|
643
|
+
| Telnyx::AzureVoiceSettings
|
|
644
|
+
| Telnyx::RimeVoiceSettings
|
|
645
|
+
| Telnyx::ResembleVoiceSettings
|
|
646
|
+
| Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld
|
|
647
|
+
| Telnyx::XaiVoiceSettings
|
|
648
|
+
|
|
649
|
+
module VoiceSettings
|
|
650
|
+
extend Telnyx::Internal::Type::Union
|
|
651
|
+
|
|
652
|
+
type inworld = { type: :inworld }
|
|
653
|
+
|
|
654
|
+
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
655
|
+
attr_accessor type: :inworld
|
|
656
|
+
|
|
657
|
+
def initialize: (?type: :inworld) -> void
|
|
658
|
+
|
|
659
|
+
def to_hash: -> { type: :inworld }
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::voice_settings]
|
|
663
|
+
end
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
type transcription_engine =
|
|
667
|
+
:Google
|
|
668
|
+
| :Telnyx
|
|
669
|
+
| :Deepgram
|
|
670
|
+
| :Azure
|
|
671
|
+
| :xAI
|
|
672
|
+
| :AssemblyAI
|
|
673
|
+
| :Speechmatics
|
|
674
|
+
| :Soniox
|
|
675
|
+
| :A
|
|
676
|
+
| :B
|
|
677
|
+
|
|
678
|
+
module TranscriptionEngine
|
|
679
|
+
extend Telnyx::Internal::Type::Enum
|
|
680
|
+
|
|
681
|
+
GOOGLE: :Google
|
|
682
|
+
TELNYX: :Telnyx
|
|
683
|
+
DEEPGRAM: :Deepgram
|
|
684
|
+
AZURE: :Azure
|
|
685
|
+
X_AI: :xAI
|
|
686
|
+
ASSEMBLY_AI: :AssemblyAI
|
|
687
|
+
SPEECHMATICS: :Speechmatics
|
|
688
|
+
SONIOX: :Soniox
|
|
689
|
+
A: :A
|
|
690
|
+
B: :B
|
|
691
|
+
|
|
692
|
+
def self?.values: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::transcription_engine]
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
type voice_settings =
|
|
696
|
+
Telnyx::Calls::ElevenLabsVoiceSettings
|
|
697
|
+
| Telnyx::Calls::TelnyxVoiceSettings
|
|
698
|
+
| Telnyx::Calls::AwsVoiceSettings
|
|
699
|
+
| Telnyx::MinimaxVoiceSettings
|
|
700
|
+
| Telnyx::AzureVoiceSettings
|
|
701
|
+
| Telnyx::RimeVoiceSettings
|
|
702
|
+
| Telnyx::ResembleVoiceSettings
|
|
703
|
+
| Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld
|
|
704
|
+
| Telnyx::XaiVoiceSettings
|
|
705
|
+
|
|
706
|
+
module VoiceSettings
|
|
707
|
+
extend Telnyx::Internal::Type::Union
|
|
708
|
+
|
|
709
|
+
type inworld = { type: :inworld }
|
|
710
|
+
|
|
711
|
+
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
712
|
+
attr_accessor type: :inworld
|
|
713
|
+
|
|
714
|
+
def initialize: (?type: :inworld) -> void
|
|
715
|
+
|
|
716
|
+
def to_hash: -> { type: :inworld }
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::voice_settings]
|
|
720
|
+
end
|
|
721
|
+
end
|
|
722
|
+
|
|
283
723
|
type deepfake_detection =
|
|
284
724
|
{ enabled: bool, rtp_timeout: Integer, timeout: Integer }
|
|
285
725
|
|