sinch.domains.voice.models.v2.shared.stream module
- class sinch.domains.voice.models.v2.shared.stream.StreamOptions(
- *,
- version: Annotated[int, Strict(strict=True)] | None = None,
- codec: Literal['PCM'] | Annotated[str, Strict(strict=True)] | None = None,
- sampleRate: Literal[8000, 16000, 24000, 44100, 48000, 96000] | Annotated[int, Strict(strict=True)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
version (Annotated[int, Strict(strict=True)] | None)
codec (Literal['PCM'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)
sampleRate (Literal[8000, 16000, 24000, 44100, 48000, 96000] | ~typing.Annotated[int, ~pydantic.types.Strict(strict=True)] | None)
extra_data (Any)
- version: Annotated[int, Strict(strict=True)] | None
- codec: Literal['PCM'] | Annotated[str, Strict(strict=True)] | None
- sample_rate: Literal[8000, 16000, 24000, 44100, 48000, 96000] | Annotated[int, Strict(strict=True)] | 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-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.voice.models.v2.shared.stream.StreamDetails(
- *,
- endpoint: Annotated[str, Strict(strict=True)],
- streamOptions: StreamOptions | None = None,
- callHeaders: Annotated[list[CallHeader], Len(min_length=0, max_length=None)] | None = None,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
endpoint (Annotated[str, Strict(strict=True)])
streamOptions (StreamOptions | None)
callHeaders (Annotated[list[CallHeader], Len(min_length=0, max_length=None)] | None)
extra_data (Any)
- endpoint: Annotated[str, Strict(strict=True)]
- stream_options: StreamOptions | None
- 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-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None
- class sinch.domains.voice.models.v2.shared.stream.Stream(
- *,
- type: Literal['STREAM'] = 'STREAM',
- stream: StreamDetails,
- **extra_data: Any,
Bases:
BaseConfigModel- Parameters:
type (Literal['STREAM'])
stream (StreamDetails)
extra_data (Any)
- type: Literal['STREAM']
- stream: StreamDetails
- 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-
Nonedefaults as set.- Parameters:
_BaseConfigModel__context (Any)
- Return type:
None