Skip to content

Polly  >  Structures  >  Voice

Voice

Structure Class

Voice dataclass

Description of the voice.

Attributes

additional_language_codes class-attribute instance-attribute
additional_language_codes: list[LanguageCode] | None = None

Additional codes for languages available for the specified voice in addition to its default language.

For example, the default language for Aditi is Indian English (en-IN) because it was first used for that language. Since Aditi is bilingual and fluent in both Indian English and Hindi, this parameter would show the code hi-IN.

gender class-attribute instance-attribute
gender: Gender | None = None

Gender of the voice.

id class-attribute instance-attribute
id: VoiceId | None = None

Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech operation.

language_code class-attribute instance-attribute
language_code: LanguageCode | None = None

Language code of the voice.

language_name class-attribute instance-attribute
language_name: str | None = None

Human readable name of the language in English.

name class-attribute instance-attribute
name: str | None = None

Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.

supported_engines class-attribute instance-attribute
supported_engines: list[Engine] | None = None

Specifies which engines (standard, neural, long-form or generative) are supported by a given voice.