telnyx 5.121.0 → 5.123.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +5 -0
  5. data/lib/telnyx/models/call_dial_params.rb +10 -276
  6. data/lib/telnyx/models/calls/action_answer_params.rb +10 -278
  7. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -15
  8. data/lib/telnyx/models/calls/action_speak_params.rb +4 -15
  9. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +13 -431
  10. data/lib/telnyx/models/calls/transcription_engine_soniox_config.rb +91 -0
  11. data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
  12. data/lib/telnyx/models/calls/transcription_start_request.rb +5 -173
  13. data/lib/telnyx/models/conferences/action_speak_params.rb +4 -15
  14. data/lib/telnyx/models/conversation_relay_interruption_settings.rb +105 -0
  15. data/lib/telnyx/models/conversation_relay_language.rb +141 -0
  16. data/lib/telnyx/models/inworld_voice_settings.rb +28 -0
  17. data/lib/telnyx/models/speech_to_text_list_providers_params.rb +71 -0
  18. data/lib/telnyx/models/speech_to_text_list_providers_response.rb +91 -0
  19. data/lib/telnyx/models/voice_sdk_call_report_list_response.rb +9 -114
  20. data/lib/telnyx/models/voice_sdk_call_report_log_entry.rb +57 -0
  21. data/lib/telnyx/models/voice_sdk_call_report_retrieve_response.rb +9 -116
  22. data/lib/telnyx/models/whatsapp/user_data_retrieve_response.rb +3 -44
  23. data/lib/telnyx/models/whatsapp/user_data_update_response.rb +3 -44
  24. data/lib/telnyx/models/whatsapp/whatsapp_user_data.rb +49 -0
  25. data/lib/telnyx/models.rb +10 -0
  26. data/lib/telnyx/resources/calls/actions.rb +6 -6
  27. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  28. data/lib/telnyx/resources/speech_to_text.rb +59 -0
  29. data/lib/telnyx/version.rb +1 -1
  30. data/lib/telnyx.rb +10 -0
  31. data/rbi/telnyx/client.rbi +4 -0
  32. data/rbi/telnyx/models/call_dial_params.rbi +13 -661
  33. data/rbi/telnyx/models/calls/action_answer_params.rbi +13 -659
  34. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -30
  35. data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -30
  36. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +17 -1016
  37. data/rbi/telnyx/models/calls/transcription_engine_soniox_config.rbi +184 -0
  38. data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
  39. data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -433
  40. data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -30
  41. data/rbi/telnyx/models/conversation_relay_interruption_settings.rbi +271 -0
  42. data/rbi/telnyx/models/conversation_relay_language.rbi +309 -0
  43. data/rbi/telnyx/models/inworld_voice_settings.rbi +53 -0
  44. data/rbi/telnyx/models/speech_to_text_list_providers_params.rbi +198 -0
  45. data/rbi/telnyx/models/speech_to_text_list_providers_response.rbi +196 -0
  46. data/rbi/telnyx/models/voice_sdk_call_report_list_response.rbi +9 -294
  47. data/rbi/telnyx/models/voice_sdk_call_report_log_entry.rbi +108 -0
  48. data/rbi/telnyx/models/voice_sdk_call_report_retrieve_response.rbi +9 -294
  49. data/rbi/telnyx/models/whatsapp/user_data_retrieve_response.rbi +6 -96
  50. data/rbi/telnyx/models/whatsapp/user_data_update_response.rbi +6 -94
  51. data/rbi/telnyx/models/whatsapp/whatsapp_user_data.rbi +82 -0
  52. data/rbi/telnyx/models.rbi +12 -0
  53. data/rbi/telnyx/resources/calls/actions.rbi +7 -10
  54. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  55. data/rbi/telnyx/resources/speech_to_text.rbi +49 -0
  56. data/sig/telnyx/client.rbs +2 -0
  57. data/sig/telnyx/models/call_dial_params.rbs +13 -236
  58. data/sig/telnyx/models/calls/action_answer_params.rbs +13 -236
  59. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -11
  60. data/sig/telnyx/models/calls/action_speak_params.rbs +1 -11
  61. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +19 -370
  62. data/sig/telnyx/models/calls/transcription_engine_soniox_config.rbs +79 -0
  63. data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
  64. data/sig/telnyx/models/calls/transcription_start_request.rbs +2 -175
  65. data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -11
  66. data/sig/telnyx/models/conversation_relay_interruption_settings.rbs +88 -0
  67. data/sig/telnyx/models/conversation_relay_language.rbs +121 -0
  68. data/sig/telnyx/models/inworld_voice_settings.rbs +26 -0
  69. data/sig/telnyx/models/speech_to_text_list_providers_params.rbs +79 -0
  70. data/sig/telnyx/models/speech_to_text_list_providers_response.rbs +80 -0
  71. data/sig/telnyx/models/voice_sdk_call_report_list_response.rbs +8 -121
  72. data/sig/telnyx/models/voice_sdk_call_report_log_entry.rbs +58 -0
  73. data/sig/telnyx/models/voice_sdk_call_report_retrieve_response.rbs +8 -121
  74. data/sig/telnyx/models/whatsapp/user_data_retrieve_response.rbs +6 -57
  75. data/sig/telnyx/models/whatsapp/user_data_update_response.rbs +6 -57
  76. data/sig/telnyx/models/whatsapp/whatsapp_user_data.rbs +54 -0
  77. data/sig/telnyx/models.rbs +10 -0
  78. data/sig/telnyx/resources/calls/actions.rbs +2 -2
  79. data/sig/telnyx/resources/speech_to_text.rbs +13 -0
  80. metadata +32 -2
@@ -359,9 +359,8 @@ module Telnyx
359
359
  # @!attribute interruption_settings
360
360
  # Settings for handling caller interruptions during Conversation Relay speech.
361
361
  #
362
- # @return [Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings, nil]
363
- optional :interruption_settings,
364
- -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings }
362
+ # @return [Telnyx::Models::ConversationRelayInterruptionSettings, nil]
363
+ optional :interruption_settings, -> { Telnyx::ConversationRelayInterruptionSettings }
365
364
 
366
365
  # @!attribute language
367
366
  # Default language for both text-to-speech and speech recognition.
@@ -372,9 +371,8 @@ module Telnyx
372
371
  # @!attribute languages
373
372
  # Per-language TTS and transcription settings.
374
373
  #
375
- # @return [Array<Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language>, nil]
376
- optional :languages,
377
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language] }
374
+ # @return [Array<Telnyx::Models::ConversationRelayLanguage>, nil]
375
+ optional :languages, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::ConversationRelayLanguage] }
378
376
 
379
377
  # @!attribute provider
380
378
  # Structured voice provider. Must be supplied together with `structured_provider`.
@@ -450,7 +448,7 @@ module Telnyx
450
448
  # @!attribute voice_settings
451
449
  # The settings associated with the voice selected
452
450
  #
453
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
451
+ # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
454
452
  optional :voice_settings,
455
453
  union: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings }
456
454
 
@@ -478,11 +476,11 @@ module Telnyx
478
476
  #
479
477
  # @param interruptible_greeting [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptibleGreeting] Controls when caller input can interrupt assistant speech. `any` allows speech o
480
478
  #
481
- # @param interruption_settings [Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings] Settings for handling caller interruptions during Conversation Relay speech.
479
+ # @param interruption_settings [Telnyx::Models::ConversationRelayInterruptionSettings] Settings for handling caller interruptions during Conversation Relay speech.
482
480
  #
483
481
  # @param language [String] Default language for both text-to-speech and speech recognition.
484
482
  #
485
- # @param languages [Array<Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language>] Per-language TTS and transcription settings.
483
+ # @param languages [Array<Telnyx::Models::ConversationRelayLanguage>] Per-language TTS and transcription settings.
486
484
  #
487
485
  # @param provider [String] Structured voice provider. Must be supplied together with `structured_provider`.
488
486
  #
@@ -496,7 +494,7 @@ module Telnyx
496
494
  #
497
495
  # @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
498
496
  #
499
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
497
+ # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
500
498
 
501
499
  # Controls when caller input can interrupt assistant speech. `any` allows speech
502
500
  # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
@@ -532,260 +530,6 @@ module Telnyx
532
530
  # @return [Array<Symbol>]
533
531
  end
534
532
 
535
- # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig#interruption_settings
536
- class InterruptionSettings < Telnyx::Internal::Type::BaseModel
537
- # @!attribute enable
538
- # Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is
539
- # equivalent to `interruptible=none`.
540
- #
541
- # @return [Boolean, nil]
542
- optional :enable, Telnyx::Internal::Type::Boolean
543
-
544
- # @!attribute interruptible
545
- # Controls when caller input can interrupt assistant speech. `any` allows speech
546
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
547
- # only; `dtmf` allows DTMF only.
548
- #
549
- # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::Interruptible, nil]
550
- optional :interruptible,
551
- enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::Interruptible }
552
-
553
- # @!attribute interruptible_greeting
554
- # Controls when caller input can interrupt assistant speech. `any` allows speech
555
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
556
- # only; `dtmf` allows DTMF only.
557
- #
558
- # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting, nil]
559
- optional :interruptible_greeting,
560
- enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting }
561
-
562
- # @!attribute welcome_greeting_interruptible
563
- # Controls when caller input can interrupt assistant speech. `any` allows speech
564
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
565
- # only; `dtmf` allows DTMF only.
566
- #
567
- # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible, nil]
568
- optional :welcome_greeting_interruptible,
569
- enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible }
570
-
571
- # @!method initialize(enable: nil, interruptible: nil, interruptible_greeting: nil, welcome_greeting_interruptible: nil)
572
- # Some parameter documentations has been truncated, see
573
- # {Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings}
574
- # for more details.
575
- #
576
- # Settings for handling caller interruptions during Conversation Relay speech.
577
- #
578
- # @param enable [Boolean] Legacy boolean form. `true` is equivalent to `interruptible=any`; `false` is equ
579
- #
580
- # @param interruptible [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::Interruptible] Controls when caller input can interrupt assistant speech. `any` allows speech o
581
- #
582
- # @param interruptible_greeting [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::InterruptibleGreeting] Controls when caller input can interrupt assistant speech. `any` allows speech o
583
- #
584
- # @param welcome_greeting_interruptible [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings::WelcomeGreetingInterruptible] Controls when caller input can interrupt assistant speech. `any` allows speech o
585
-
586
- # Controls when caller input can interrupt assistant speech. `any` allows speech
587
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
588
- # only; `dtmf` allows DTMF only.
589
- #
590
- # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings#interruptible
591
- module Interruptible
592
- extend Telnyx::Internal::Type::Enum
593
-
594
- NONE = :none
595
- ANY = :any
596
- SPEECH = :speech
597
- DTMF = :dtmf
598
-
599
- # @!method self.values
600
- # @return [Array<Symbol>]
601
- end
602
-
603
- # Controls when caller input can interrupt assistant speech. `any` allows speech
604
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
605
- # only; `dtmf` allows DTMF only.
606
- #
607
- # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings#interruptible_greeting
608
- module InterruptibleGreeting
609
- extend Telnyx::Internal::Type::Enum
610
-
611
- NONE = :none
612
- ANY = :any
613
- SPEECH = :speech
614
- DTMF = :dtmf
615
-
616
- # @!method self.values
617
- # @return [Array<Symbol>]
618
- end
619
-
620
- # Controls when caller input can interrupt assistant speech. `any` allows speech
621
- # or DTMF interruptions; `none` disables interruptions; `speech` allows speech
622
- # only; `dtmf` allows DTMF only.
623
- #
624
- # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::InterruptionSettings#welcome_greeting_interruptible
625
- module WelcomeGreetingInterruptible
626
- extend Telnyx::Internal::Type::Enum
627
-
628
- NONE = :none
629
- ANY = :any
630
- SPEECH = :speech
631
- DTMF = :dtmf
632
-
633
- # @!method self.values
634
- # @return [Array<Symbol>]
635
- end
636
- end
637
-
638
- class Language < Telnyx::Internal::Type::BaseModel
639
- # @!attribute language
640
- # BCP 47 language tag for this language configuration.
641
- #
642
- # @return [String]
643
- required :language, String
644
-
645
- # @!attribute speech_model
646
- # Conversation Relay speech model. Prefer
647
- # `transcription_engine_config.transcription_model` when configuring
648
- # speech-to-text.
649
- #
650
- # @return [String, nil]
651
- optional :speech_model, String
652
-
653
- # @!attribute transcription_engine
654
- # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
655
- # `Telnyx` are supported for backward compatibility. When provided in a
656
- # Conversation Relay language entry, Telnyx derives `transcription_provider` and
657
- # `speech_model` for that language.
658
- #
659
- # @return [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::TranscriptionEngine, nil]
660
- optional :transcription_engine,
661
- enum: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::TranscriptionEngine }
662
-
663
- # @!attribute transcription_engine_config
664
- # Engine-specific transcription settings for Conversation Relay. This accepts the
665
- # same provider-specific options used by the Call Transcription Start command,
666
- # such as `transcription_model`, without requiring the engine discriminator to be
667
- # repeated inside this object.
668
- #
669
- # @return [Hash{Symbol=>Object}, nil]
670
- optional :transcription_engine_config, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
671
-
672
- # @!attribute transcription_provider
673
- # Conversation Relay transcription provider name. Prefer `transcription_engine`
674
- # when configuring speech-to-text.
675
- #
676
- # @return [String, nil]
677
- optional :transcription_provider, String
678
-
679
- # @!attribute tts_provider
680
- # Text-to-speech provider for this language. If omitted and `voice` is provided,
681
- # Telnyx derives the provider from the voice identifier.
682
- #
683
- # @return [String, nil]
684
- optional :tts_provider, String
685
-
686
- # @!attribute voice
687
- # Voice identifier for this language.
688
- #
689
- # @return [String, nil]
690
- optional :voice, String
691
-
692
- # @!attribute voice_settings
693
- # The settings associated with the voice selected
694
- #
695
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
696
- optional :voice_settings,
697
- union: -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings }
698
-
699
- # @!method initialize(language:, speech_model: nil, transcription_engine: nil, transcription_engine_config: nil, transcription_provider: nil, tts_provider: nil, voice: nil, voice_settings: nil)
700
- # Some parameter documentations has been truncated, see
701
- # {Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language}
702
- # for more details.
703
- #
704
- # Language-specific TTS and transcription settings for Conversation Relay.
705
- #
706
- # @param language [String] BCP 47 language tag for this language configuration.
707
- #
708
- # @param speech_model [String] Conversation Relay speech model. Prefer `transcription_engine_config.transcripti
709
- #
710
- # @param transcription_engine [Symbol, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
711
- #
712
- # @param transcription_engine_config [Hash{Symbol=>Object}] Engine-specific transcription settings for Conversation Relay. This accepts the
713
- #
714
- # @param transcription_provider [String] Conversation Relay transcription provider name. Prefer `transcription_engine` wh
715
- #
716
- # @param tts_provider [String] Text-to-speech provider for this language. If omitted and `voice` is provided, T
717
- #
718
- # @param voice [String] Voice identifier for this language.
719
- #
720
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
721
-
722
- # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
723
- # `Telnyx` are supported for backward compatibility. When provided in a
724
- # Conversation Relay language entry, Telnyx derives `transcription_provider` and
725
- # `speech_model` for that language.
726
- #
727
- # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language#transcription_engine
728
- module TranscriptionEngine
729
- extend Telnyx::Internal::Type::Enum
730
-
731
- GOOGLE = :Google
732
- TELNYX = :Telnyx
733
- DEEPGRAM = :Deepgram
734
- AZURE = :Azure
735
- X_AI = :xAI
736
- ASSEMBLY_AI = :AssemblyAI
737
- SPEECHMATICS = :Speechmatics
738
- SONIOX = :Soniox
739
- A = :A
740
- B = :B
741
-
742
- # @!method self.values
743
- # @return [Array<Symbol>]
744
- end
745
-
746
- # The settings associated with the voice selected
747
- #
748
- # @see Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language#voice_settings
749
- module VoiceSettings
750
- extend Telnyx::Internal::Type::Union
751
-
752
- discriminator :type
753
-
754
- variant :elevenlabs, -> { Telnyx::Calls::ElevenLabsVoiceSettings }
755
-
756
- variant :telnyx, -> { Telnyx::Calls::TelnyxVoiceSettings }
757
-
758
- variant :aws, -> { Telnyx::Calls::AwsVoiceSettings }
759
-
760
- variant :minimax, -> { Telnyx::MinimaxVoiceSettings }
761
-
762
- variant :azure, -> { Telnyx::AzureVoiceSettings }
763
-
764
- variant :rime, -> { Telnyx::RimeVoiceSettings }
765
-
766
- variant :resemble, -> { Telnyx::ResembleVoiceSettings }
767
-
768
- variant :inworld,
769
- -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld }
770
-
771
- variant :xai, -> { Telnyx::XaiVoiceSettings }
772
-
773
- class Inworld < Telnyx::Internal::Type::BaseModel
774
- # @!attribute type
775
- # Voice settings provider type
776
- #
777
- # @return [Symbol, :inworld]
778
- required :type, const: :inworld
779
-
780
- # @!method initialize(type: :inworld)
781
- # @param type [Symbol, :inworld] Voice settings provider type
782
- end
783
-
784
- # @!method self.variants
785
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::Language::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
786
- end
787
- end
788
-
789
533
  # Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
790
534
  # `Telnyx` are supported for backward compatibility. For Conversation Relay, use
791
535
  # this field with `transcription_engine_config`; the `transcription` object is not
@@ -832,24 +576,12 @@ module Telnyx
832
576
 
833
577
  variant :resemble, -> { Telnyx::ResembleVoiceSettings }
834
578
 
835
- variant :inworld,
836
- -> { Telnyx::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld }
579
+ variant :inworld, -> { Telnyx::InworldVoiceSettings }
837
580
 
838
581
  variant :xai, -> { Telnyx::XaiVoiceSettings }
839
582
 
840
- class Inworld < Telnyx::Internal::Type::BaseModel
841
- # @!attribute type
842
- # Voice settings provider type
843
- #
844
- # @return [Symbol, :inworld]
845
- required :type, const: :inworld
846
-
847
- # @!method initialize(type: :inworld)
848
- # @param type [Symbol, :inworld] Voice settings provider type
849
- end
850
-
851
583
  # @!method self.variants
852
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionAnswerParams::ConversationRelayConfig::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
584
+ # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
853
585
  end
854
586
  end
855
587
 
@@ -160,7 +160,7 @@ module Telnyx
160
160
  # @!attribute voice_settings
161
161
  # The settings associated with the voice selected
162
162
  #
163
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
163
+ # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
164
164
  optional :voice_settings, union: -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings }
165
165
 
166
166
  # @!method initialize(call_control_id:, payload:, voice:, client_state: nil, command_id: nil, inter_digit_timeout_millis: nil, invalid_payload: nil, language: nil, maximum_digits: nil, maximum_tries: nil, minimum_digits: nil, payload_type: nil, service_level: nil, terminating_digit: nil, timeout_millis: nil, valid_digits: nil, voice_settings: nil, request_options: {})
@@ -200,7 +200,7 @@ module Telnyx
200
200
  #
201
201
  # @param valid_digits [String] A list of all digits accepted as valid.
202
202
  #
203
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
203
+ # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
204
204
  #
205
205
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
206
206
 
@@ -287,23 +287,12 @@ module Telnyx
287
287
 
288
288
  variant :resemble, -> { Telnyx::ResembleVoiceSettings }
289
289
 
290
- variant :inworld, -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld }
290
+ variant :inworld, -> { Telnyx::InworldVoiceSettings }
291
291
 
292
292
  variant :xai, -> { Telnyx::XaiVoiceSettings }
293
293
 
294
- class Inworld < Telnyx::Internal::Type::BaseModel
295
- # @!attribute type
296
- # Voice settings provider type
297
- #
298
- # @return [Symbol, :inworld]
299
- required :type, const: :inworld
300
-
301
- # @!method initialize(type: :inworld)
302
- # @param type [Symbol, :inworld] Voice settings provider type
303
- end
304
-
305
294
  # @!method self.variants
306
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
295
+ # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
307
296
  end
308
297
  end
309
298
  end
@@ -128,7 +128,7 @@ module Telnyx
128
128
  # @!attribute voice_settings
129
129
  # The settings associated with the voice selected
130
130
  #
131
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
131
+ # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
132
132
  optional :voice_settings, union: -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings }
133
133
 
134
134
  # @!method initialize(call_control_id:, payload:, voice:, client_state: nil, command_id: nil, language: nil, loop_: nil, payload_type: nil, service_level: nil, stop: nil, target_legs: nil, voice_settings: nil, request_options: {})
@@ -157,7 +157,7 @@ module Telnyx
157
157
  #
158
158
  # @param target_legs [Symbol, Telnyx::Models::Calls::ActionSpeakParams::TargetLegs] Specifies which legs of the call should receive the spoken audio.
159
159
  #
160
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
160
+ # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
161
161
  #
162
162
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
163
163
 
@@ -256,23 +256,12 @@ module Telnyx
256
256
 
257
257
  variant :resemble, -> { Telnyx::ResembleVoiceSettings }
258
258
 
259
- variant :inworld, -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld }
259
+ variant :inworld, -> { Telnyx::InworldVoiceSettings }
260
260
 
261
261
  variant :xai, -> { Telnyx::XaiVoiceSettings }
262
262
 
263
- class Inworld < Telnyx::Internal::Type::BaseModel
264
- # @!attribute type
265
- # Voice settings provider type
266
- #
267
- # @return [Symbol, :inworld]
268
- required :type, const: :inworld
269
-
270
- # @!method initialize(type: :inworld)
271
- # @param type [Symbol, :inworld] Voice settings provider type
272
- end
273
-
274
263
  # @!method self.variants
275
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
264
+ # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::InworldVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
276
265
  end
277
266
  end
278
267
  end