Skip to content

Voice

Source code in docs_src/capo_polly/types/voice.py
class Voice(TypedDict, closed=True):
    arn: NotRequired["capo_polly.types.voice_arn.VoiceArn"]
    """<p>The Amazon Resource Name (ARN) of a custom voice, in the form <code>arn:partition:polly:region:account-id:voice/voice-id</code>. <code>CreateVoice</code> and <code>GetVoice</code> return this field. Voices that Amazon Polly provides don't have an ARN.</p>"""
    gender: NotRequired["capo_polly.types.gender.Gender"]
    """<p>The gender of the voice. Custom voices don't include this field.</p>"""
    id: NotRequired["capo_polly.types.voice_id.VoiceId"]
    """<p>The voice ID that Amazon Polly assigns. You specify this ID when you call the <code>SynthesizeSpeech</code> operation. For a custom voice, Amazon Polly assigns an ID that consists of <code>vc-</code> followed by hexadecimal characters, for example, <code>vc-9a8fa85dd3</code>.</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>The name of the voice, for example, Salli or Kendra. The name is human-readable, and you might display it in your application. For a custom voice, this is the <code>Name</code> that you specified in <code>CreateVoice</code>.</p>"""
    origin: NotRequired["capo_polly.types.voice_origin.VoiceOrigin"]
    """<p>Indicates who provides the voice. The origin is one of the following:</p> <dl> <dt>aws</dt> <dd> <p>A voice that Amazon Polly provides.</p> </dd> <dt>customer</dt> <dd> <p>A custom voice that you created with <code>CreateVoice</code>.</p> </dd> </dl>"""
    status: NotRequired["capo_polly.types.voice_status.VoiceStatus"]
    """<p>The status of a custom voice. Voices that Amazon Polly provides don't include this field. The status is one of the following:</p> <dl> <dt>pending</dt> <dd> <p>Amazon Polly is creating the voice.</p> </dd> <dt>active</dt> <dd> <p>The voice is ready for speech synthesis.</p> </dd> <dt>failed</dt> <dd> <p>Amazon Polly couldn't create the voice. <code>StatusReason</code> describes why.</p> </dd> </dl>"""
    status_reason: NotRequired["capo_polly.types.status_reason.StatusReason"]
    """<p>Additional information about the status of a custom voice. When the status is <code>failed</code>, this field describes why Amazon Polly couldn't create the voice.</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>"""
    voice_creation_data: NotRequired[
        "capo_polly.types.voice_creation_data.VoiceCreationData"
    ]
    """<p>The data from which you created the custom voice. <code>CreateVoice</code> and <code>GetVoice</code> return this field. The response doesn't include the audio: a recording that Amazon Polly read from Amazon S3 includes its <code>S3Url</code>, and a recording that you passed as <code>Bytes</code> has no fields in <code>Data</code>.</p>"""
    customer_managed_encryption: NotRequired[
        "capo_polly.types.customer_managed_encryption.CustomerManagedEncryption"
    ]
    """<p>The customer managed key that encrypts your custom voice. <code>CreateVoice</code> and <code>GetVoice</code> return this field if you specified a key in <code>CreateVoice</code>.</p>"""
    creation_time: NotRequired["capo_polly.types.date_time.DateTime"]
    """<p>The date and time when you created the custom voice. Voices that Amazon Polly provides don't include this field.</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.

arn instance-attribute

arn: NotRequired[VoiceArn]

The Amazon Resource Name (ARN) of a custom voice, in the form arn:partition:polly:region:account-id:voice/voice-id. CreateVoice and GetVoice return this field. Voices that Amazon Polly provides don't have an ARN.

creation_time instance-attribute

creation_time: NotRequired[DateTime]

The date and time when you created the custom voice. Voices that Amazon Polly provides don't include this field.

customer_managed_encryption instance-attribute

customer_managed_encryption: NotRequired[CustomerManagedEncryption]

The customer managed key that encrypts your custom voice. CreateVoice and GetVoice return this field if you specified a key in CreateVoice.

gender instance-attribute

gender: NotRequired[Gender]

The gender of the voice. Custom voices don't include this field.

id instance-attribute

id: NotRequired[VoiceId]

The voice ID that Amazon Polly assigns. You specify this ID when you call the SynthesizeSpeech operation. For a custom voice, Amazon Polly assigns an ID that consists of vc- followed by hexadecimal characters, for example, vc-9a8fa85dd3.

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]

The name of the voice, for example, Salli or Kendra. The name is human-readable, and you might display it in your application. For a custom voice, this is the Name that you specified in CreateVoice.

origin instance-attribute

origin: NotRequired[VoiceOrigin]

Indicates who provides the voice. The origin is one of the following:

aws

A voice that Amazon Polly provides.

customer

A custom voice that you created with CreateVoice.

status instance-attribute

status: NotRequired[VoiceStatus]

The status of a custom voice. Voices that Amazon Polly provides don't include this field. The status is one of the following:

pending

Amazon Polly is creating the voice.

active

The voice is ready for speech synthesis.

failed

Amazon Polly couldn't create the voice. StatusReason describes why.

status_reason instance-attribute

status_reason: NotRequired[StatusReason]

Additional information about the status of a custom voice. When the status is failed, this field describes why Amazon Polly couldn't create the voice.

supported_engines instance-attribute

supported_engines: NotRequired[EngineList]

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

voice_creation_data instance-attribute

voice_creation_data: NotRequired[VoiceCreationData]

The data from which you created the custom voice. CreateVoice and GetVoice return this field. The response doesn't include the audio: a recording that Amazon Polly read from Amazon S3 includes its S3Url, and a recording that you passed as Bytes has no fields in Data.