Voice
¶
Source code in docs_src/capo_polly/types/voice.py
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.
StatusReasondescribes 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.