Skip to content

Typed dictionaries

Index > Polly > Typed dictionaries

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

DeleteLexiconInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import DeleteLexiconInputRequestTypeDef

def get_value() -> DeleteLexiconInputRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class DeleteLexiconInputRequestTypeDef(TypedDict):
    Name: str,

PaginatorConfigTypeDef

Usage Example
from mypy_boto3_polly.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribeVoicesInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import DescribeVoicesInputRequestTypeDef

def get_value() -> DescribeVoicesInputRequestTypeDef:
    return {
        "Engine": ...,
    }
Definition
class DescribeVoicesInputRequestTypeDef(TypedDict):
    Engine: NotRequired[EngineType],  # (1)
    LanguageCode: NotRequired[LanguageCodeType],  # (2)
    IncludeAdditionalLanguageCodes: NotRequired[bool],
    NextToken: NotRequired[str],
  1. See EngineType
  2. See LanguageCodeType

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_polly.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

VoiceTypeDef

Usage Example
from mypy_boto3_polly.type_defs import VoiceTypeDef

def get_value() -> VoiceTypeDef:
    return {
        "Gender": ...,
    }
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 LanguageCodeType
  5. See EngineType

GetLexiconInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import GetLexiconInputRequestTypeDef

def get_value() -> GetLexiconInputRequestTypeDef:
    return {
        "Name": ...,
    }
Definition
class GetLexiconInputRequestTypeDef(TypedDict):
    Name: str,

LexiconAttributesTypeDef

Usage Example
from mypy_boto3_polly.type_defs import LexiconAttributesTypeDef

def get_value() -> LexiconAttributesTypeDef:
    return {
        "Alphabet": ...,
    }
Definition
class LexiconAttributesTypeDef(TypedDict):
    Alphabet: NotRequired[str],
    LanguageCode: NotRequired[LanguageCodeType],  # (1)
    LastModified: NotRequired[datetime],
    LexiconArn: NotRequired[str],
    LexemesCount: NotRequired[int],
    Size: NotRequired[int],
  1. See LanguageCodeType

LexiconTypeDef

Usage Example
from mypy_boto3_polly.type_defs import LexiconTypeDef

def get_value() -> LexiconTypeDef:
    return {
        "Content": ...,
    }
Definition
class LexiconTypeDef(TypedDict):
    Content: NotRequired[str],
    Name: NotRequired[str],

GetSpeechSynthesisTaskInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import GetSpeechSynthesisTaskInputRequestTypeDef

def get_value() -> GetSpeechSynthesisTaskInputRequestTypeDef:
    return {
        "TaskId": ...,
    }
Definition
class GetSpeechSynthesisTaskInputRequestTypeDef(TypedDict):
    TaskId: str,

SynthesisTaskTypeDef

Usage Example
from mypy_boto3_polly.type_defs import SynthesisTaskTypeDef

def get_value() -> SynthesisTaskTypeDef:
    return {
        "Engine": ...,
    }
Definition
class SynthesisTaskTypeDef(TypedDict):
    Engine: NotRequired[EngineType],  # (1)
    TaskId: NotRequired[str],
    TaskStatus: NotRequired[TaskStatusType],  # (2)
    TaskStatusReason: NotRequired[str],
    OutputUri: NotRequired[str],
    CreationTime: NotRequired[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 SpeechMarkTypeType
  5. See TextTypeType
  6. See VoiceIdType
  7. See LanguageCodeType

ListLexiconsInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import ListLexiconsInputRequestTypeDef

def get_value() -> ListLexiconsInputRequestTypeDef:
    return {
        "NextToken": ...,
    }
Definition
class ListLexiconsInputRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],

ListSpeechSynthesisTasksInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import ListSpeechSynthesisTasksInputRequestTypeDef

def get_value() -> ListSpeechSynthesisTasksInputRequestTypeDef:
    return {
        "MaxResults": ...,
    }
Definition
class ListSpeechSynthesisTasksInputRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    Status: NotRequired[TaskStatusType],  # (1)
  1. See TaskStatusType

PutLexiconInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import PutLexiconInputRequestTypeDef

def get_value() -> PutLexiconInputRequestTypeDef:
    return {
        "Name": ...,
        "Content": ...,
    }
Definition
class PutLexiconInputRequestTypeDef(TypedDict):
    Name: str,
    Content: str,

StartSpeechSynthesisTaskInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import StartSpeechSynthesisTaskInputRequestTypeDef

def get_value() -> StartSpeechSynthesisTaskInputRequestTypeDef:
    return {
        "OutputFormat": ...,
        "OutputS3BucketName": ...,
        "Text": ...,
        "VoiceId": ...,
    }
Definition
class StartSpeechSynthesisTaskInputRequestTypeDef(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 SpeechMarkTypeType
  6. See TextTypeType

SynthesizeSpeechInputRequestTypeDef

Usage Example
from mypy_boto3_polly.type_defs import SynthesizeSpeechInputRequestTypeDef

def get_value() -> SynthesizeSpeechInputRequestTypeDef:
    return {
        "OutputFormat": ...,
        "Text": ...,
        "VoiceId": ...,
    }
Definition
class SynthesizeSpeechInputRequestTypeDef(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 SpeechMarkTypeType
  6. See TextTypeType

DescribeVoicesInputDescribeVoicesPaginateTypeDef

Usage Example
from mypy_boto3_polly.type_defs import DescribeVoicesInputDescribeVoicesPaginateTypeDef

def get_value() -> DescribeVoicesInputDescribeVoicesPaginateTypeDef:
    return {
        "Engine": ...,
    }
Definition
class DescribeVoicesInputDescribeVoicesPaginateTypeDef(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

ListLexiconsInputListLexiconsPaginateTypeDef

Usage Example
from mypy_boto3_polly.type_defs import ListLexiconsInputListLexiconsPaginateTypeDef

def get_value() -> ListLexiconsInputListLexiconsPaginateTypeDef:
    return {
        "PaginationConfig": ...,
    }
Definition
class ListLexiconsInputListLexiconsPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListSpeechSynthesisTasksInputListSpeechSynthesisTasksPaginateTypeDef

Usage Example
from mypy_boto3_polly.type_defs import ListSpeechSynthesisTasksInputListSpeechSynthesisTasksPaginateTypeDef

def get_value() -> ListSpeechSynthesisTasksInputListSpeechSynthesisTasksPaginateTypeDef:
    return {
        "Status": ...,
    }
Definition
class ListSpeechSynthesisTasksInputListSpeechSynthesisTasksPaginateTypeDef(TypedDict):
    Status: NotRequired[TaskStatusType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See TaskStatusType
  2. See PaginatorConfigTypeDef

SynthesizeSpeechOutputTypeDef

Usage Example
from mypy_boto3_polly.type_defs import SynthesizeSpeechOutputTypeDef

def get_value() -> SynthesizeSpeechOutputTypeDef:
    return {
        "AudioStream": ...,
        "ContentType": ...,
        "RequestCharacters": ...,
        "ResponseMetadata": ...,
    }
Definition
class SynthesizeSpeechOutputTypeDef(TypedDict):
    AudioStream: StreamingBody,
    ContentType: str,
    RequestCharacters: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DescribeVoicesOutputTypeDef

Usage Example
from mypy_boto3_polly.type_defs import DescribeVoicesOutputTypeDef

def get_value() -> DescribeVoicesOutputTypeDef:
    return {
        "Voices": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeVoicesOutputTypeDef(TypedDict):
    Voices: List[VoiceTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See VoiceTypeDef
  2. See ResponseMetadataTypeDef

LexiconDescriptionTypeDef

Usage Example
from mypy_boto3_polly.type_defs import LexiconDescriptionTypeDef

def get_value() -> LexiconDescriptionTypeDef:
    return {
        "Name": ...,
    }
Definition
class LexiconDescriptionTypeDef(TypedDict):
    Name: NotRequired[str],
    Attributes: NotRequired[LexiconAttributesTypeDef],  # (1)
  1. See LexiconAttributesTypeDef

GetLexiconOutputTypeDef

Usage Example
from mypy_boto3_polly.type_defs import GetLexiconOutputTypeDef

def get_value() -> GetLexiconOutputTypeDef:
    return {
        "Lexicon": ...,
        "LexiconAttributes": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetLexiconOutputTypeDef(TypedDict):
    Lexicon: LexiconTypeDef,  # (1)
    LexiconAttributes: LexiconAttributesTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See LexiconTypeDef
  2. See LexiconAttributesTypeDef
  3. See ResponseMetadataTypeDef

GetSpeechSynthesisTaskOutputTypeDef

Usage Example
from mypy_boto3_polly.type_defs import GetSpeechSynthesisTaskOutputTypeDef

def get_value() -> GetSpeechSynthesisTaskOutputTypeDef:
    return {
        "SynthesisTask": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetSpeechSynthesisTaskOutputTypeDef(TypedDict):
    SynthesisTask: SynthesisTaskTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See SynthesisTaskTypeDef
  2. See ResponseMetadataTypeDef

ListSpeechSynthesisTasksOutputTypeDef

Usage Example
from mypy_boto3_polly.type_defs import ListSpeechSynthesisTasksOutputTypeDef

def get_value() -> ListSpeechSynthesisTasksOutputTypeDef:
    return {
        "NextToken": ...,
        "SynthesisTasks": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListSpeechSynthesisTasksOutputTypeDef(TypedDict):
    NextToken: str,
    SynthesisTasks: List[SynthesisTaskTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See SynthesisTaskTypeDef
  2. See ResponseMetadataTypeDef

StartSpeechSynthesisTaskOutputTypeDef

Usage Example
from mypy_boto3_polly.type_defs import StartSpeechSynthesisTaskOutputTypeDef

def get_value() -> StartSpeechSynthesisTaskOutputTypeDef:
    return {
        "SynthesisTask": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartSpeechSynthesisTaskOutputTypeDef(TypedDict):
    SynthesisTask: SynthesisTaskTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See SynthesisTaskTypeDef
  2. See ResponseMetadataTypeDef

ListLexiconsOutputTypeDef

Usage Example
from mypy_boto3_polly.type_defs import ListLexiconsOutputTypeDef

def get_value() -> ListLexiconsOutputTypeDef:
    return {
        "Lexicons": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListLexiconsOutputTypeDef(TypedDict):
    Lexicons: List[LexiconDescriptionTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See LexiconDescriptionTypeDef
  2. See ResponseMetadataTypeDef