1919from .shared_params .xai_voice_settings import XaiVoiceSettings
2020from .stream_bidirectional_target_legs import StreamBidirectionalTargetLegs
2121from .calls .telnyx_voice_settings_param import TelnyxVoiceSettingsParam
22+ from .conversation_relay_language_param import ConversationRelayLanguageParam
2223from .shared_params .rime_voice_settings import RimeVoiceSettings
2324from .shared_params .azure_voice_settings import AzureVoiceSettings
2425from .stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate
26+ from .shared_params .inworld_voice_settings import InworldVoiceSettings
2527from .shared_params .minimax_voice_settings import MinimaxVoiceSettings
2628from .shared_params .resemble_voice_settings import ResembleVoiceSettings
2729from .calls .eleven_labs_voice_settings_param import ElevenLabsVoiceSettingsParam
2830from .calls .transcription_start_request_param import TranscriptionStartRequestParam
31+ from .conversation_relay_interruption_settings_param import ConversationRelayInterruptionSettingsParam
2932
3033__all__ = [
3134 "CallDialParams" ,
3235 "AnsweringMachineDetectionConfig" ,
3336 "ConferenceConfig" ,
3437 "ConversationRelayConfig" ,
35- "ConversationRelayConfigInterruptionSettings" ,
36- "ConversationRelayConfigLanguage" ,
37- "ConversationRelayConfigLanguageVoiceSettings" ,
38- "ConversationRelayConfigLanguageVoiceSettingsInworldVoiceSettings" ,
3938 "ConversationRelayConfigVoiceSettings" ,
40- "ConversationRelayConfigVoiceSettingsInworldVoiceSettings" ,
4139 "DeepfakeDetection" ,
4240 "WebhookRetriesPolicies" ,
4341]
@@ -567,112 +565,6 @@ class ConferenceConfig(TypedDict, total=False):
567565 """
568566
569567
570- class ConversationRelayConfigInterruptionSettings (TypedDict , total = False ):
571- """Settings for handling caller interruptions during Conversation Relay speech."""
572-
573- enable : bool
574- """Legacy boolean form.
575-
576- `true` is equivalent to `interruptible=any`; `false` is equivalent to
577- `interruptible=none`.
578- """
579-
580- interruptible : Literal ["none" , "any" , "speech" , "dtmf" ]
581- """Controls when caller input can interrupt assistant speech.
582-
583- `any` allows speech or DTMF interruptions; `none` disables interruptions;
584- `speech` allows speech only; `dtmf` allows DTMF only.
585- """
586-
587- interruptible_greeting : Literal ["none" , "any" , "speech" , "dtmf" ]
588- """Controls when caller input can interrupt assistant speech.
589-
590- `any` allows speech or DTMF interruptions; `none` disables interruptions;
591- `speech` allows speech only; `dtmf` allows DTMF only.
592- """
593-
594- welcome_greeting_interruptible : Literal ["none" , "any" , "speech" , "dtmf" ]
595- """Controls when caller input can interrupt assistant speech.
596-
597- `any` allows speech or DTMF interruptions; `none` disables interruptions;
598- `speech` allows speech only; `dtmf` allows DTMF only.
599- """
600-
601-
602- class ConversationRelayConfigLanguageVoiceSettingsInworldVoiceSettings (TypedDict , total = False ):
603- type : Required [Literal ["inworld" ]]
604- """Voice settings provider type"""
605-
606-
607- ConversationRelayConfigLanguageVoiceSettings : TypeAlias = Union [
608- ElevenLabsVoiceSettingsParam ,
609- TelnyxVoiceSettingsParam ,
610- AwsVoiceSettingsParam ,
611- MinimaxVoiceSettings ,
612- AzureVoiceSettings ,
613- RimeVoiceSettings ,
614- ResembleVoiceSettings ,
615- ConversationRelayConfigLanguageVoiceSettingsInworldVoiceSettings ,
616- XaiVoiceSettings ,
617- ]
618-
619-
620- class ConversationRelayConfigLanguage (TypedDict , total = False ):
621- """Language-specific TTS and transcription settings for Conversation Relay."""
622-
623- language : Required [str ]
624- """BCP 47 language tag for this language configuration."""
625-
626- speech_model : str
627- """Conversation Relay speech model.
628-
629- Prefer `transcription_engine_config.transcription_model` when configuring
630- speech-to-text.
631- """
632-
633- transcription_engine : Literal [
634- "Google" , "Telnyx" , "Deepgram" , "Azure" , "xAI" , "AssemblyAI" , "Speechmatics" , "Soniox" , "A" , "B"
635- ]
636- """Engine to use for speech recognition.
637-
638- Legacy values `A` - `Google`, `B` - `Telnyx` are supported for backward
639- compatibility. When provided in a Conversation Relay language entry, Telnyx
640- derives `transcription_provider` and `speech_model` for that language.
641- """
642-
643- transcription_engine_config : Dict [str , object ]
644- """Engine-specific transcription settings for Conversation Relay.
645-
646- This accepts the same provider-specific options used by the Call Transcription
647- Start command, such as `transcription_model`, without requiring the engine
648- discriminator to be repeated inside this object.
649- """
650-
651- transcription_provider : str
652- """Conversation Relay transcription provider name.
653-
654- Prefer `transcription_engine` when configuring speech-to-text.
655- """
656-
657- tts_provider : str
658- """Text-to-speech provider for this language.
659-
660- If omitted and `voice` is provided, Telnyx derives the provider from the voice
661- identifier.
662- """
663-
664- voice : str
665- """Voice identifier for this language."""
666-
667- voice_settings : ConversationRelayConfigLanguageVoiceSettings
668- """The settings associated with the voice selected"""
669-
670-
671- class ConversationRelayConfigVoiceSettingsInworldVoiceSettings (TypedDict , total = False ):
672- type : Required [Literal ["inworld" ]]
673- """Voice settings provider type"""
674-
675-
676568ConversationRelayConfigVoiceSettings : TypeAlias = Union [
677569 ElevenLabsVoiceSettingsParam ,
678570 TelnyxVoiceSettingsParam ,
@@ -681,7 +573,7 @@ class ConversationRelayConfigVoiceSettingsInworldVoiceSettings(TypedDict, total=
681573 AzureVoiceSettings ,
682574 RimeVoiceSettings ,
683575 ResembleVoiceSettings ,
684- ConversationRelayConfigVoiceSettingsInworldVoiceSettings ,
576+ InworldVoiceSettings ,
685577 XaiVoiceSettings ,
686578]
687579
@@ -723,13 +615,13 @@ class ConversationRelayConfig(TypedDict, total=False):
723615 `speech` allows speech only; `dtmf` allows DTMF only.
724616 """
725617
726- interruption_settings : ConversationRelayConfigInterruptionSettings
618+ interruption_settings : ConversationRelayInterruptionSettingsParam
727619 """Settings for handling caller interruptions during Conversation Relay speech."""
728620
729621 language : str
730622 """Default language for both text-to-speech and speech recognition."""
731623
732- languages : Iterable [ConversationRelayConfigLanguage ]
624+ languages : Iterable [ConversationRelayLanguageParam ]
733625 """Per-language TTS and transcription settings."""
734626
735627 provider : str
0 commit comments