CreateVoiceInput
¶
Source code in docs_src/capo_polly/types/create_voice_input.py
client_token
instance-attribute
¶
client_token: NotRequired[ClientToken]
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, the Amazon Web Services SDKs generate one for you. If you retry a request that succeeded with the same client token and the same parameters, Amazon Polly returns the voice that the first request created and doesn't create a second voice.
customer_managed_encryption
instance-attribute
¶
customer_managed_encryption: NotRequired[CustomerManagedEncryption]
The customer managed key that you want Amazon Polly to encrypt the voice with. If you omit this parameter, Amazon Polly encrypts the voice with an Amazon Web Services owned key.
language_code
instance-attribute
¶
language_code: CustomVoiceLanguageCode
The language of the recordings, for example, en-US. Amazon Polly doesn't detect the language from the recordings.
name
instance-attribute
¶
name: CustomVoiceName
The name of the voice. Use the name to identify the voice in your application. The name can contain letters, digits, hyphens, and underscores, and can be up to 64 characters long. The name doesn't have to be unique. The name isn't the voice ID, which Amazon Polly assigns.
tags
instance-attribute
¶
tags: NotRequired[TagMap]
The tags that you apply to the voice to help you categorize and organize it. Each tag consists of a key and an optional value, both of which you define.
terms_accepted
instance-attribute
¶
terms_accepted: TermsAccepted
Confirms the following two statements:
-
"I confirm that I have obtained all necessary consents required under any applicable laws and regulations, including biometric privacy laws, from the owner of this voice to clone these voice samples."
-
"I confirm that I will not use the generated content for any illegal, fraudulent, or harmful purpose and reaffirm my obligation to abide by the AWS Service Terms, Biometric Notice and Consent Terms, AWS Responsible AI Policy, and AWS Acceptable Use Policy."
You can read the AWS Service Terms, the Biometric Notice and Consent Terms, the AWS Responsible AI Policy, and the AWS Acceptable Use Policy on the Amazon Web Services website.
You must set this parameter to true to create a voice. Otherwise, the request fails with ValidationException.
voice_creation_data
instance-attribute
¶
voice_creation_data: VoiceCreationData
The recordings that Amazon Polly uses to create the voice.