sinch.domains.voice.models.v2.shared.voice_relay module

class sinch.domains.voice.models.v2.shared.voice_relay.VoiceRelayDetails(
*,
endpoint: Annotated[str, Strict(strict=True)],
enableInterruptions: Annotated[bool, Strict(strict=True)] | None = None,
ttsVoice: Annotated[str, Strict(strict=True)],
sttLanguage: Annotated[str, Strict(strict=True)],
callHeaders: Annotated[list[CallHeader], Len(min_length=0, max_length=None)] | None = None,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • endpoint (Annotated[str, Strict(strict=True)])

  • enableInterruptions (Annotated[bool, Strict(strict=True)] | None)

  • ttsVoice (Annotated[str, Strict(strict=True)])

  • sttLanguage (Annotated[str, Strict(strict=True)])

  • callHeaders (Annotated[list[CallHeader], Len(min_length=0, max_length=None)] | None)

  • extra_data (Any)

endpoint: Annotated[str, Strict(strict=True)]
enable_interruptions: Annotated[bool, Strict(strict=True)] | None
tts_voice: Annotated[str, Strict(strict=True)]
stt_language: Annotated[str, Strict(strict=True)]
call_headers: Annotated[list[CallHeader], Len(min_length=0, max_length=None)] | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_post_init(_BaseConfigModel__context: Any) None

Marks applied non-None defaults as set.

Parameters:

_BaseConfigModel__context (Any)

Return type:

None

class sinch.domains.voice.models.v2.shared.voice_relay.VoiceRelay(
*,
type: Literal['VOICE_RELAY'] = 'VOICE_RELAY',
voiceRelay: VoiceRelayDetails,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
type: Literal['VOICE_RELAY']
voice_relay: VoiceRelayDetails
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_post_init(_BaseConfigModel__context: Any) None

Marks applied non-None defaults as set.

Parameters:

_BaseConfigModel__context (Any)

Return type:

None