Skip to content

Voice

Source code in docs_src/capo_polly/types/voice.py
class Voice(TypedDict, closed=True):
    gender: NotRequired["capo_polly.types.gender.Gender"]
    """<p>Gender of the voice.</p>"""
    id: NotRequired["capo_polly.types.voice_id.VoiceId"]
    """<p>Amazon Polly assigned voice ID. This is the ID that you specify when calling the <code>SynthesizeSpeech</code> operation.</p>"""
    language_code: NotRequired["capo_polly.types.language_code.LanguageCode"]
    """<p>Language code of the voice.</p>"""
    language_name: NotRequired["capo_polly.types.language_name.LanguageName"]
    """<p>Human readable name of the language in English.</p>"""
    name: NotRequired["capo_polly.types.voice_name.VoiceName"]
    """<p>Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.</p>"""
    additional_language_codes: NotRequired[
        "capo_polly.types.language_code_list.LanguageCodeList"
    ]
    """<p>Additional codes for languages available for the specified voice in addition to its default language. </p> <p>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 <code>hi-IN</code>.</p>"""
    supported_engines: NotRequired["capo_polly.types.engine_list.EngineList"]
    """<p>Specifies which engines (<code>standard</code>, <code>neural</code>, <code>long-form</code> or <code>generative</code>) are supported by a given voice.</p>"""

additional_language_codes instance-attribute

additional_language_codes: NotRequired[LanguageCodeList]

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 instance-attribute

gender: NotRequired[Gender]

Gender of the voice.

id instance-attribute

id: NotRequired[VoiceId]

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

language_code instance-attribute

language_code: NotRequired[LanguageCode]

Language code of the voice.

language_name instance-attribute

language_name: NotRequired[LanguageName]

Human readable name of the language in English.

name instance-attribute

name: NotRequired[VoiceName]

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 instance-attribute

supported_engines: NotRequired[EngineList]

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