Skip to content

Type definitions#

Index > Polly > Type definitions

Auto-generated documentation for Polly type annotations stubs module mypy-boto3-polly.

AudioEventTypeDef#

# AudioEventTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import AudioEventTypeDef


def get_value() -> AudioEventTypeDef:
    return {
        "AudioChunk": ...,
    }


# AudioEventTypeDef definition

class AudioEventTypeDef(TypedDict):
    AudioChunk: NotRequired[bytes],

DeleteLexiconInputTypeDef#

# DeleteLexiconInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import DeleteLexiconInputTypeDef


def get_value() -> DeleteLexiconInputTypeDef:
    return {
        "Name": ...,
    }


# DeleteLexiconInputTypeDef definition

class DeleteLexiconInputTypeDef(TypedDict):
    Name: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import PaginatorConfigTypeDef


def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }


# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribeVoicesInputTypeDef#

# DescribeVoicesInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import DescribeVoicesInputTypeDef


def get_value() -> DescribeVoicesInputTypeDef:
    return {
        "Engine": ...,
    }


# DescribeVoicesInputTypeDef definition

class DescribeVoicesInputTypeDef(TypedDict):
    Engine: NotRequired[EngineType],  # (1)
    LanguageCode: NotRequired[LanguageCodeType],  # (2)
    IncludeAdditionalLanguageCodes: NotRequired[bool],
    NextToken: NotRequired[str],
  1. See EngineType
  2. See LanguageCodeType

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ResponseMetadataTypeDef


def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
    }


# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

VoiceTypeDef#

# VoiceTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import VoiceTypeDef


def get_value() -> VoiceTypeDef:
    return {
        "Gender": ...,
    }


# VoiceTypeDef definition

class VoiceTypeDef(TypedDict):
    Gender: NotRequired[GenderType],  # (1)
    Id: NotRequired[VoiceIdType],  # (2)
    LanguageCode: NotRequired[LanguageCodeType],  # (3)
    LanguageName: NotRequired[str],
    Name: NotRequired[str],
    AdditionalLanguageCodes: NotRequired[list[LanguageCodeType]],  # (4)
    SupportedEngines: NotRequired[list[EngineType]],  # (5)
  1. See GenderType
  2. See VoiceIdType
  3. See LanguageCodeType
  4. See list[LanguageCodeType]
  5. See list[EngineType]

FlushStreamConfigurationTypeDef#

# FlushStreamConfigurationTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import FlushStreamConfigurationTypeDef


def get_value() -> FlushStreamConfigurationTypeDef:
    return {
        "Force": ...,
    }


# FlushStreamConfigurationTypeDef definition

class FlushStreamConfigurationTypeDef(TypedDict):
    Force: NotRequired[bool],

GetLexiconInputTypeDef#

# GetLexiconInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import GetLexiconInputTypeDef


def get_value() -> GetLexiconInputTypeDef:
    return {
        "Name": ...,
    }


# GetLexiconInputTypeDef definition

class GetLexiconInputTypeDef(TypedDict):
    Name: str,

LexiconAttributesTypeDef#

# LexiconAttributesTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import LexiconAttributesTypeDef


def get_value() -> LexiconAttributesTypeDef:
    return {
        "Alphabet": ...,
    }


# LexiconAttributesTypeDef definition

class LexiconAttributesTypeDef(TypedDict):
    Alphabet: NotRequired[str],
    LanguageCode: NotRequired[LanguageCodeType],  # (1)
    LastModified: NotRequired[datetime.datetime],
    LexiconArn: NotRequired[str],
    LexemesCount: NotRequired[int],
    Size: NotRequired[int],
  1. See LanguageCodeType

LexiconTypeDef#

# LexiconTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import LexiconTypeDef


def get_value() -> LexiconTypeDef:
    return {
        "Content": ...,
    }


# LexiconTypeDef definition

class LexiconTypeDef(TypedDict):
    Content: NotRequired[str],
    Name: NotRequired[str],

GetSpeechSynthesisTaskInputTypeDef#

# GetSpeechSynthesisTaskInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import GetSpeechSynthesisTaskInputTypeDef


def get_value() -> GetSpeechSynthesisTaskInputTypeDef:
    return {
        "TaskId": ...,
    }


# GetSpeechSynthesisTaskInputTypeDef definition

class GetSpeechSynthesisTaskInputTypeDef(TypedDict):
    TaskId: str,

SynthesisTaskTypeDef#

# SynthesisTaskTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import SynthesisTaskTypeDef


def get_value() -> SynthesisTaskTypeDef:
    return {
        "Engine": ...,
    }


# SynthesisTaskTypeDef definition

class SynthesisTaskTypeDef(TypedDict):
    Engine: NotRequired[EngineType],  # (1)
    TaskId: NotRequired[str],
    TaskStatus: NotRequired[TaskStatusType],  # (2)
    TaskStatusReason: NotRequired[str],
    OutputUri: NotRequired[str],
    CreationTime: NotRequired[datetime.datetime],
    RequestCharacters: NotRequired[int],
    SnsTopicArn: NotRequired[str],
    LexiconNames: NotRequired[list[str]],
    OutputFormat: NotRequired[OutputFormatType],  # (3)
    SampleRate: NotRequired[str],
    SpeechMarkTypes: NotRequired[list[SpeechMarkTypeType]],  # (4)
    TextType: NotRequired[TextTypeType],  # (5)
    VoiceId: NotRequired[VoiceIdType],  # (6)
    LanguageCode: NotRequired[LanguageCodeType],  # (7)
  1. See EngineType
  2. See TaskStatusType
  3. See OutputFormatType
  4. See list[SpeechMarkTypeType]
  5. See TextTypeType
  6. See VoiceIdType
  7. See LanguageCodeType

ListLexiconsInputTypeDef#

# ListLexiconsInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ListLexiconsInputTypeDef


def get_value() -> ListLexiconsInputTypeDef:
    return {
        "NextToken": ...,
    }


# ListLexiconsInputTypeDef definition

class ListLexiconsInputTypeDef(TypedDict):
    NextToken: NotRequired[str],

ListSpeechSynthesisTasksInputTypeDef#

# ListSpeechSynthesisTasksInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ListSpeechSynthesisTasksInputTypeDef


def get_value() -> ListSpeechSynthesisTasksInputTypeDef:
    return {
        "MaxResults": ...,
    }


# ListSpeechSynthesisTasksInputTypeDef definition

class ListSpeechSynthesisTasksInputTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    Status: NotRequired[TaskStatusType],  # (1)
  1. See TaskStatusType

PutLexiconInputTypeDef#

# PutLexiconInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import PutLexiconInputTypeDef


def get_value() -> PutLexiconInputTypeDef:
    return {
        "Name": ...,
    }


# PutLexiconInputTypeDef definition

class PutLexiconInputTypeDef(TypedDict):
    Name: str,
    Content: str,

ServiceFailureExceptionTypeDef#

# ServiceFailureExceptionTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ServiceFailureExceptionTypeDef


def get_value() -> ServiceFailureExceptionTypeDef:
    return {
        "message": ...,
    }


# ServiceFailureExceptionTypeDef definition

class ServiceFailureExceptionTypeDef(TypedDict):
    message: NotRequired[str],

ServiceQuotaExceededExceptionTypeDef#

# ServiceQuotaExceededExceptionTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ServiceQuotaExceededExceptionTypeDef


def get_value() -> ServiceQuotaExceededExceptionTypeDef:
    return {
        "message": ...,
    }


# ServiceQuotaExceededExceptionTypeDef definition

class ServiceQuotaExceededExceptionTypeDef(TypedDict):
    message: str,
    quotaCode: QuotaCodeType,  # (1)
    serviceCode: ServiceCodeType,  # (2)
  1. See QuotaCodeType
  2. See ServiceCodeType

StreamClosedEventTypeDef#

# StreamClosedEventTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import StreamClosedEventTypeDef


def get_value() -> StreamClosedEventTypeDef:
    return {
        "RequestCharacters": ...,
    }


# StreamClosedEventTypeDef definition

class StreamClosedEventTypeDef(TypedDict):
    RequestCharacters: NotRequired[int],

StartSpeechSynthesisTaskInputTypeDef#

# StartSpeechSynthesisTaskInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import StartSpeechSynthesisTaskInputTypeDef


def get_value() -> StartSpeechSynthesisTaskInputTypeDef:
    return {
        "OutputFormat": ...,
    }


# StartSpeechSynthesisTaskInputTypeDef definition

class StartSpeechSynthesisTaskInputTypeDef(TypedDict):
    OutputFormat: OutputFormatType,  # (1)
    OutputS3BucketName: str,
    Text: str,
    VoiceId: VoiceIdType,  # (2)
    Engine: NotRequired[EngineType],  # (3)
    LanguageCode: NotRequired[LanguageCodeType],  # (4)
    LexiconNames: NotRequired[Sequence[str]],
    OutputS3KeyPrefix: NotRequired[str],
    SampleRate: NotRequired[str],
    SnsTopicArn: NotRequired[str],
    SpeechMarkTypes: NotRequired[Sequence[SpeechMarkTypeType]],  # (5)
    TextType: NotRequired[TextTypeType],  # (6)
  1. See OutputFormatType
  2. See VoiceIdType
  3. See EngineType
  4. See LanguageCodeType
  5. See Sequence[SpeechMarkTypeType]
  6. See TextTypeType

SynthesizeSpeechInputTypeDef#

# SynthesizeSpeechInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import SynthesizeSpeechInputTypeDef


def get_value() -> SynthesizeSpeechInputTypeDef:
    return {
        "OutputFormat": ...,
    }


# SynthesizeSpeechInputTypeDef definition

class SynthesizeSpeechInputTypeDef(TypedDict):
    OutputFormat: OutputFormatType,  # (1)
    Text: str,
    VoiceId: VoiceIdType,  # (2)
    Engine: NotRequired[EngineType],  # (3)
    LanguageCode: NotRequired[LanguageCodeType],  # (4)
    LexiconNames: NotRequired[Sequence[str]],
    SampleRate: NotRequired[str],
    SpeechMarkTypes: NotRequired[Sequence[SpeechMarkTypeType]],  # (5)
    TextType: NotRequired[TextTypeType],  # (6)
  1. See OutputFormatType
  2. See VoiceIdType
  3. See EngineType
  4. See LanguageCodeType
  5. See Sequence[SpeechMarkTypeType]
  6. See TextTypeType

ThrottlingReasonTypeDef#

# ThrottlingReasonTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ThrottlingReasonTypeDef


def get_value() -> ThrottlingReasonTypeDef:
    return {
        "reason": ...,
    }


# ThrottlingReasonTypeDef definition

class ThrottlingReasonTypeDef(TypedDict):
    reason: NotRequired[str],
    resource: NotRequired[str],

ValidationExceptionFieldTypeDef#

# ValidationExceptionFieldTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ValidationExceptionFieldTypeDef


def get_value() -> ValidationExceptionFieldTypeDef:
    return {
        "name": ...,
    }


# ValidationExceptionFieldTypeDef definition

class ValidationExceptionFieldTypeDef(TypedDict):
    name: str,
    message: str,

DescribeVoicesInputPaginateTypeDef#

# DescribeVoicesInputPaginateTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import DescribeVoicesInputPaginateTypeDef


def get_value() -> DescribeVoicesInputPaginateTypeDef:
    return {
        "Engine": ...,
    }


# DescribeVoicesInputPaginateTypeDef definition

class DescribeVoicesInputPaginateTypeDef(TypedDict):
    Engine: NotRequired[EngineType],  # (1)
    LanguageCode: NotRequired[LanguageCodeType],  # (2)
    IncludeAdditionalLanguageCodes: NotRequired[bool],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See EngineType
  2. See LanguageCodeType
  3. See PaginatorConfigTypeDef

ListLexiconsInputPaginateTypeDef#

# ListLexiconsInputPaginateTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ListLexiconsInputPaginateTypeDef


def get_value() -> ListLexiconsInputPaginateTypeDef:
    return {
        "PaginationConfig": ...,
    }


# ListLexiconsInputPaginateTypeDef definition

class ListLexiconsInputPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListSpeechSynthesisTasksInputPaginateTypeDef#

# ListSpeechSynthesisTasksInputPaginateTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ListSpeechSynthesisTasksInputPaginateTypeDef


def get_value() -> ListSpeechSynthesisTasksInputPaginateTypeDef:
    return {
        "Status": ...,
    }


# ListSpeechSynthesisTasksInputPaginateTypeDef definition

class ListSpeechSynthesisTasksInputPaginateTypeDef(TypedDict):
    Status: NotRequired[TaskStatusType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See TaskStatusType
  2. See PaginatorConfigTypeDef

SynthesizeSpeechOutputTypeDef#

# SynthesizeSpeechOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import SynthesizeSpeechOutputTypeDef


def get_value() -> SynthesizeSpeechOutputTypeDef:
    return {
        "AudioStream": ...,
    }


# SynthesizeSpeechOutputTypeDef definition

class SynthesizeSpeechOutputTypeDef(TypedDict):
    AudioStream: botocore.response.StreamingBody,
    ContentType: str,
    RequestCharacters: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DescribeVoicesOutputTypeDef#

# DescribeVoicesOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import DescribeVoicesOutputTypeDef


def get_value() -> DescribeVoicesOutputTypeDef:
    return {
        "Voices": ...,
    }


# DescribeVoicesOutputTypeDef definition

class DescribeVoicesOutputTypeDef(TypedDict):
    Voices: list[VoiceTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See list[VoiceTypeDef]
  2. See ResponseMetadataTypeDef

TextEventTypeDef#

# TextEventTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import TextEventTypeDef


def get_value() -> TextEventTypeDef:
    return {
        "Text": ...,
    }


# TextEventTypeDef definition

class TextEventTypeDef(TypedDict):
    Text: str,
    TextType: NotRequired[TextTypeType],  # (1)
    FlushStreamConfiguration: NotRequired[FlushStreamConfigurationTypeDef],  # (2)
  1. See TextTypeType
  2. See FlushStreamConfigurationTypeDef

LexiconDescriptionTypeDef#

# LexiconDescriptionTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import LexiconDescriptionTypeDef


def get_value() -> LexiconDescriptionTypeDef:
    return {
        "Name": ...,
    }


# LexiconDescriptionTypeDef definition

class LexiconDescriptionTypeDef(TypedDict):
    Name: NotRequired[str],
    Attributes: NotRequired[LexiconAttributesTypeDef],  # (1)
  1. See LexiconAttributesTypeDef

GetLexiconOutputTypeDef#

# GetLexiconOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import GetLexiconOutputTypeDef


def get_value() -> GetLexiconOutputTypeDef:
    return {
        "Lexicon": ...,
    }


# GetLexiconOutputTypeDef definition

class GetLexiconOutputTypeDef(TypedDict):
    Lexicon: LexiconTypeDef,  # (1)
    LexiconAttributes: LexiconAttributesTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See LexiconTypeDef
  2. See LexiconAttributesTypeDef
  3. See ResponseMetadataTypeDef

GetSpeechSynthesisTaskOutputTypeDef#

# GetSpeechSynthesisTaskOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import GetSpeechSynthesisTaskOutputTypeDef


def get_value() -> GetSpeechSynthesisTaskOutputTypeDef:
    return {
        "SynthesisTask": ...,
    }


# GetSpeechSynthesisTaskOutputTypeDef definition

class GetSpeechSynthesisTaskOutputTypeDef(TypedDict):
    SynthesisTask: SynthesisTaskTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See SynthesisTaskTypeDef
  2. See ResponseMetadataTypeDef

ListSpeechSynthesisTasksOutputTypeDef#

# ListSpeechSynthesisTasksOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ListSpeechSynthesisTasksOutputTypeDef


def get_value() -> ListSpeechSynthesisTasksOutputTypeDef:
    return {
        "NextToken": ...,
    }


# ListSpeechSynthesisTasksOutputTypeDef definition

class ListSpeechSynthesisTasksOutputTypeDef(TypedDict):
    SynthesisTasks: list[SynthesisTaskTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See list[SynthesisTaskTypeDef]
  2. See ResponseMetadataTypeDef

StartSpeechSynthesisTaskOutputTypeDef#

# StartSpeechSynthesisTaskOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import StartSpeechSynthesisTaskOutputTypeDef


def get_value() -> StartSpeechSynthesisTaskOutputTypeDef:
    return {
        "SynthesisTask": ...,
    }


# StartSpeechSynthesisTaskOutputTypeDef definition

class StartSpeechSynthesisTaskOutputTypeDef(TypedDict):
    SynthesisTask: SynthesisTaskTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See SynthesisTaskTypeDef
  2. See ResponseMetadataTypeDef

ThrottlingExceptionTypeDef#

# ThrottlingExceptionTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ThrottlingExceptionTypeDef


def get_value() -> ThrottlingExceptionTypeDef:
    return {
        "message": ...,
    }


# ThrottlingExceptionTypeDef definition

class ThrottlingExceptionTypeDef(TypedDict):
    message: NotRequired[str],
    throttlingReasons: NotRequired[list[ThrottlingReasonTypeDef]],  # (1)
  1. See list[ThrottlingReasonTypeDef]

ValidationExceptionTypeDef#

# ValidationExceptionTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ValidationExceptionTypeDef


def get_value() -> ValidationExceptionTypeDef:
    return {
        "message": ...,
    }


# ValidationExceptionTypeDef definition

class ValidationExceptionTypeDef(TypedDict):
    message: str,
    reason: ValidationExceptionReasonType,  # (1)
    fields: NotRequired[list[ValidationExceptionFieldTypeDef]],  # (2)
  1. See ValidationExceptionReasonType
  2. See list[ValidationExceptionFieldTypeDef]

StartSpeechSynthesisStreamActionStreamTypeDef#

# StartSpeechSynthesisStreamActionStreamTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import StartSpeechSynthesisStreamActionStreamTypeDef


def get_value() -> StartSpeechSynthesisStreamActionStreamTypeDef:
    return {
        "TextEvent": ...,
    }


# StartSpeechSynthesisStreamActionStreamTypeDef definition

class StartSpeechSynthesisStreamActionStreamTypeDef(TypedDict):
    TextEvent: NotRequired[TextEventTypeDef],  # (1)
    CloseStreamEvent: NotRequired[Mapping[str, Any]],
  1. See TextEventTypeDef

ListLexiconsOutputTypeDef#

# ListLexiconsOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import ListLexiconsOutputTypeDef


def get_value() -> ListLexiconsOutputTypeDef:
    return {
        "Lexicons": ...,
    }


# ListLexiconsOutputTypeDef definition

class ListLexiconsOutputTypeDef(TypedDict):
    Lexicons: list[LexiconDescriptionTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See list[LexiconDescriptionTypeDef]
  2. See ResponseMetadataTypeDef

StartSpeechSynthesisStreamEventStreamTypeDef#

# StartSpeechSynthesisStreamEventStreamTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import StartSpeechSynthesisStreamEventStreamTypeDef


def get_value() -> StartSpeechSynthesisStreamEventStreamTypeDef:
    return {
        "AudioEvent": ...,
    }


# StartSpeechSynthesisStreamEventStreamTypeDef definition

class StartSpeechSynthesisStreamEventStreamTypeDef(TypedDict):
    AudioEvent: NotRequired[AudioEventTypeDef],  # (1)
    StreamClosedEvent: NotRequired[StreamClosedEventTypeDef],  # (2)
    ValidationException: NotRequired[ValidationExceptionTypeDef],  # (3)
    ServiceQuotaExceededException: NotRequired[ServiceQuotaExceededExceptionTypeDef],  # (4)
    ServiceFailureException: NotRequired[ServiceFailureExceptionTypeDef],  # (5)
    ThrottlingException: NotRequired[ThrottlingExceptionTypeDef],  # (6)
  1. See AudioEventTypeDef
  2. See StreamClosedEventTypeDef
  3. See ValidationExceptionTypeDef
  4. See ServiceQuotaExceededExceptionTypeDef
  5. See ServiceFailureExceptionTypeDef
  6. See ThrottlingExceptionTypeDef

StartSpeechSynthesisStreamInputTypeDef#

# StartSpeechSynthesisStreamInputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import StartSpeechSynthesisStreamInputTypeDef


def get_value() -> StartSpeechSynthesisStreamInputTypeDef:
    return {
        "Engine": ...,
    }


# StartSpeechSynthesisStreamInputTypeDef definition

class StartSpeechSynthesisStreamInputTypeDef(TypedDict):
    Engine: EngineType,  # (1)
    OutputFormat: OutputFormatType,  # (2)
    VoiceId: VoiceIdType,  # (3)
    LanguageCode: NotRequired[LanguageCodeType],  # (4)
    LexiconNames: NotRequired[Sequence[str]],
    SampleRate: NotRequired[str],
    ActionStream: NotRequired[botocore.eventstream.EventStream[StartSpeechSynthesisStreamActionStreamTypeDef]],  # (5)
  1. See EngineType
  2. See OutputFormatType
  3. See VoiceIdType
  4. See LanguageCodeType
  5. See EventStream[StartSpeechSynthesisStreamActionStreamTypeDef]

StartSpeechSynthesisStreamOutputTypeDef#

# StartSpeechSynthesisStreamOutputTypeDef TypedDict usage example

from mypy_boto3_polly.type_defs import StartSpeechSynthesisStreamOutputTypeDef


def get_value() -> StartSpeechSynthesisStreamOutputTypeDef:
    return {
        "EventStream": ...,
    }


# StartSpeechSynthesisStreamOutputTypeDef definition

class StartSpeechSynthesisStreamOutputTypeDef(TypedDict):
    EventStream: botocore.eventstream.EventStream[StartSpeechSynthesisStreamEventStreamTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EventStream[StartSpeechSynthesisStreamEventStreamTypeDef]
  2. See ResponseMetadataTypeDef