Type definitions#
Auto-generated documentation for Polly type annotations stubs module mypy-boto3-polly.
DeleteLexiconInputRequestTypeDef#
# DeleteLexiconInputRequestTypeDef definition
class DeleteLexiconInputRequestTypeDef(TypedDict):
Name: str,
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
DescribeVoicesInputRequestTypeDef#
# DescribeVoicesInputRequestTypeDef definition
class DescribeVoicesInputRequestTypeDef(TypedDict):
Engine: NotRequired[EngineType], # (1)
LanguageCode: NotRequired[LanguageCodeType], # (2)
IncludeAdditionalLanguageCodes: NotRequired[bool],
NextToken: NotRequired[str],
- See EngineType
- See LanguageCodeType
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
VoiceTypeDef#
# 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
GetLexiconInputRequestTypeDef#
# GetLexiconInputRequestTypeDef definition
class GetLexiconInputRequestTypeDef(TypedDict):
Name: str,
LexiconAttributesTypeDef#
# 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 definition
class LexiconTypeDef(TypedDict):
Content: NotRequired[str],
Name: NotRequired[str],
GetSpeechSynthesisTaskInputRequestTypeDef#
# GetSpeechSynthesisTaskInputRequestTypeDef definition
class GetSpeechSynthesisTaskInputRequestTypeDef(TypedDict):
TaskId: str,
SynthesisTaskTypeDef#
# 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
ListLexiconsInputRequestTypeDef#
# ListLexiconsInputRequestTypeDef definition
class ListLexiconsInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
ListSpeechSynthesisTasksInputRequestTypeDef#
# ListSpeechSynthesisTasksInputRequestTypeDef definition
class ListSpeechSynthesisTasksInputRequestTypeDef(TypedDict):
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
Status: NotRequired[TaskStatusType], # (1)
- See TaskStatusType
PutLexiconInputRequestTypeDef#
# PutLexiconInputRequestTypeDef definition
class PutLexiconInputRequestTypeDef(TypedDict):
Name: str,
Content: str,
StartSpeechSynthesisTaskInputRequestTypeDef#
# StartSpeechSynthesisTaskInputRequestTypeDef 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)
- See OutputFormatType
- See VoiceIdType
- See EngineType
- See LanguageCodeType
- See SpeechMarkTypeType
- See TextTypeType
SynthesizeSpeechInputRequestTypeDef#
# SynthesizeSpeechInputRequestTypeDef 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)
- See OutputFormatType
- See VoiceIdType
- See EngineType
- See LanguageCodeType
- See SpeechMarkTypeType
- See TextTypeType
DescribeVoicesInputDescribeVoicesPaginateTypeDef#
# DescribeVoicesInputDescribeVoicesPaginateTypeDef definition
class DescribeVoicesInputDescribeVoicesPaginateTypeDef(TypedDict):
Engine: NotRequired[EngineType], # (1)
LanguageCode: NotRequired[LanguageCodeType], # (2)
IncludeAdditionalLanguageCodes: NotRequired[bool],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (3)
- See EngineType
- See LanguageCodeType
- See PaginatorConfigTypeDef
ListLexiconsInputListLexiconsPaginateTypeDef#
# ListLexiconsInputListLexiconsPaginateTypeDef definition
class ListLexiconsInputListLexiconsPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListSpeechSynthesisTasksInputListSpeechSynthesisTasksPaginateTypeDef#
# ListSpeechSynthesisTasksInputListSpeechSynthesisTasksPaginateTypeDef definition
class ListSpeechSynthesisTasksInputListSpeechSynthesisTasksPaginateTypeDef(TypedDict):
Status: NotRequired[TaskStatusType], # (1)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
- See TaskStatusType
- See PaginatorConfigTypeDef
SynthesizeSpeechOutputTypeDef#
# SynthesizeSpeechOutputTypeDef definition
class SynthesizeSpeechOutputTypeDef(TypedDict):
AudioStream: StreamingBody,
ContentType: str,
RequestCharacters: int,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DescribeVoicesOutputTypeDef#
# DescribeVoicesOutputTypeDef definition
class DescribeVoicesOutputTypeDef(TypedDict):
Voices: List[VoiceTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
- See VoiceTypeDef
- See ResponseMetadataTypeDef
LexiconDescriptionTypeDef#
# LexiconDescriptionTypeDef definition
class LexiconDescriptionTypeDef(TypedDict):
Name: NotRequired[str],
Attributes: NotRequired[LexiconAttributesTypeDef], # (1)
GetLexiconOutputTypeDef#
# GetLexiconOutputTypeDef definition
class GetLexiconOutputTypeDef(TypedDict):
Lexicon: LexiconTypeDef, # (1)
LexiconAttributes: LexiconAttributesTypeDef, # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
GetSpeechSynthesisTaskOutputTypeDef#
# GetSpeechSynthesisTaskOutputTypeDef definition
class GetSpeechSynthesisTaskOutputTypeDef(TypedDict):
SynthesisTask: SynthesisTaskTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListSpeechSynthesisTasksOutputTypeDef#
# ListSpeechSynthesisTasksOutputTypeDef definition
class ListSpeechSynthesisTasksOutputTypeDef(TypedDict):
SynthesisTasks: List[SynthesisTaskTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],
StartSpeechSynthesisTaskOutputTypeDef#
# StartSpeechSynthesisTaskOutputTypeDef definition
class StartSpeechSynthesisTaskOutputTypeDef(TypedDict):
SynthesisTask: SynthesisTaskTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListLexiconsOutputTypeDef#
# ListLexiconsOutputTypeDef definition
class ListLexiconsOutputTypeDef(TypedDict):
Lexicons: List[LexiconDescriptionTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
NextToken: NotRequired[str],