sinch.domains.voice.models.v2.svaml.shared.message module

class sinch.domains.voice.models.v2.svaml.shared.message.Say(
*,
text: Annotated[str, Strict(strict=True)],
format: Literal['TEXT', 'SSML'] | Annotated[str, Strict(strict=True)] | None = None,
voiceName: Annotated[str, Strict(strict=True)],
**extra_data: Any,
)[source]

Bases: BaseConfigModel

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

  • format (Literal['TEXT', 'SSML'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

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

  • extra_data (Any)

text: Annotated[str, Strict(strict=True)]
format: Literal['TEXT', 'SSML'] | Annotated[str, Strict(strict=True)] | None
voice_name: Annotated[str, Strict(strict=True)]
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.svaml.shared.message.SayMessage(
*,
type: Literal['SAY'] = 'SAY',
say: Say,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • type (Literal['SAY'])

  • say (Say)

  • extra_data (Any)

type: Literal['SAY']
say: Say
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.svaml.shared.message.Play(
*,
url: Annotated[str, Strict(strict=True)],
**extra_data: Any,
)[source]

Bases: BaseConfigModel

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

  • extra_data (Any)

url: Annotated[str, Strict(strict=True)]
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.svaml.shared.message.PlayMessage(
*,
type: Literal['PLAY'] = 'PLAY',
play: Play,
**extra_data: Any,
)[source]

Bases: BaseConfigModel

Parameters:
  • type (Literal['PLAY'])

  • play (Play)

  • extra_data (Any)

type: Literal['PLAY']
play: Play
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