Type definitions#
Auto-generated documentation for Polly type annotations stubs module types-boto3-polly.
DeleteLexiconInputTypeDef#
# DeleteLexiconInputTypeDef TypedDict usage example
from types_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 types_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 types_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],
- See EngineType
- See LanguageCodeType
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef TypedDict usage example
from types_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 types_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)
- See GenderType
- See VoiceIdType
- See LanguageCodeType
- See LanguageCodeType
- See EngineType
GetLexiconInputTypeDef#
# GetLexiconInputTypeDef TypedDict usage example
from types_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 types_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],
LexiconArn: NotRequired[str],
LexemesCount: NotRequired[int],
Size: NotRequired[int],
- See LanguageCodeType
LexiconTypeDef#
# LexiconTypeDef TypedDict usage example
from types_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 types_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 types_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],
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)
- See EngineType
- See TaskStatusType
- See OutputFormatType
- See SpeechMarkTypeType
- See TextTypeType
- See VoiceIdType
- See LanguageCodeType
ListLexiconsInputTypeDef#
# ListLexiconsInputTypeDef TypedDict usage example
from types_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 types_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)
- See TaskStatusType
PutLexiconInputTypeDef#
# PutLexiconInputTypeDef TypedDict usage example
from types_boto3_polly.type_defs import PutLexiconInputTypeDef
def get_value() -> PutLexiconInputTypeDef:
return {
"Name": ...,
}
# PutLexiconInputTypeDef definition
class PutLexiconInputTypeDef(TypedDict):
Name: str,
Content: str,
StartSpeechSynthesisTaskInputTypeDef#
# StartSpeechSynthesisTaskInputTypeDef TypedDict usage example
from types_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)
- See OutputFormatType
- See VoiceIdType
- See EngineType
- See LanguageCodeType
- See SpeechMarkTypeType
- See TextTypeType
SynthesizeSpeechInputTypeDef#
# SynthesizeSpeechInputTypeDef TypedDict usage example
from types_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)
- See OutputFormatType
- See VoiceIdType
- See EngineType
- See LanguageCodeType
- See SpeechMarkTypeType
- See TextTypeType
DescribeVoicesInputPaginateTypeDef#
# DescribeVoicesInputPaginateTypeDef TypedDict usage example
from types_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)
- See EngineType
- See LanguageCodeType
- See PaginatorConfigTypeDef
ListLexiconsInputPaginateTypeDef#
# ListLexiconsInputPaginateTypeDef TypedDict usage example
from types_boto3_polly.type_defs import ListLexiconsInputPaginateTypeDef
def get_value() -> ListLexiconsInputPaginateTypeDef:
return {
"PaginationConfig": ...,
}
# ListLexiconsInputPaginateTypeDef definition
class ListLexiconsInputPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListSpeechSynthesisTasksInputPaginateTypeDef#
# ListSpeechSynthesisTasksInputPaginateTypeDef TypedDict usage example
from types_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)
- See TaskStatusType
- See PaginatorConfigTypeDef
SynthesizeSpeechOutputTypeDef#
# SynthesizeSpeechOutputTypeDef TypedDict usage example
from types_boto3_polly.type_defs import SynthesizeSpeechOutputTypeDef
def get_value() -> SynthesizeSpeechOutputTypeDef:
return {
"AudioStream": ...,
}
# SynthesizeSpeechOutputTypeDef definition
class SynthesizeSpeechOutputTypeDef(TypedDict):
AudioStream: StreamingBody,
ContentType: str,
RequestCharacters: int,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DescribeVoicesOutputTypeDef#
# DescribeVoicesOutputTypeDef TypedDict usage example
from types_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],
- See VoiceTypeDef
- See ResponseMetadataTypeDef
LexiconDescriptionTypeDef#
# LexiconDescriptionTypeDef TypedDict usage example
from types_boto3_polly.type_defs import LexiconDescriptionTypeDef
def get_value() -> LexiconDescriptionTypeDef:
return {
"Name": ...,
}
# LexiconDescriptionTypeDef definition
class LexiconDescriptionTypeDef(TypedDict):
Name: NotRequired[str],
Attributes: NotRequired[LexiconAttributesTypeDef], # (1)
GetLexiconOutputTypeDef#
# GetLexiconOutputTypeDef TypedDict usage example
from types_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)
GetSpeechSynthesisTaskOutputTypeDef#
# GetSpeechSynthesisTaskOutputTypeDef TypedDict usage example
from types_boto3_polly.type_defs import GetSpeechSynthesisTaskOutputTypeDef
def get_value() -> GetSpeechSynthesisTaskOutputTypeDef:
return {
"SynthesisTask": ...,
}
# GetSpeechSynthesisTaskOutputTypeDef definition
class GetSpeechSynthesisTaskOutputTypeDef(TypedDict):
SynthesisTask: SynthesisTaskTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListSpeechSynthesisTasksOutputTypeDef#
# ListSpeechSynthesisTasksOutputTypeDef TypedDict usage example
from types_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],
StartSpeechSynthesisTaskOutputTypeDef#
# StartSpeechSynthesisTaskOutputTypeDef TypedDict usage example
from types_boto3_polly.type_defs import StartSpeechSynthesisTaskOutputTypeDef
def get_value() -> StartSpeechSynthesisTaskOutputTypeDef:
return {
"SynthesisTask": ...,
}
# StartSpeechSynthesisTaskOutputTypeDef definition
class StartSpeechSynthesisTaskOutputTypeDef(TypedDict):
SynthesisTask: SynthesisTaskTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListLexiconsOutputTypeDef#
# ListLexiconsOutputTypeDef TypedDict usage example
from types_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],