Skip to content

CreateVoiceInput

Source code in docs_src/capo_polly/types/create_voice_input.py
class CreateVoiceInput(TypedDict, closed=True):
    name: "capo_polly.types.custom_voice_name.CustomVoiceName"
    """<p>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.</p>"""
    language_code: "capo_polly.types.custom_voice_language_code.CustomVoiceLanguageCode"
    """<p>The language of the recordings, for example, <code>en-US</code>. Amazon Polly doesn't detect the language from the recordings.</p>"""
    terms_accepted: "capo_polly.types.terms_accepted.TermsAccepted"
    """<p>Confirms the following two statements:</p> <ul> <li> <p>"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."</p> </li> <li> <p>"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."</p> </li> </ul> <p>You can read the <a href="https://aws.amazon.com/service-terms/">AWS Service Terms</a>, the <a href="https://aws.amazon.com/legal/biometric-notice-and-consent-terms/">Biometric Notice and Consent Terms</a>, the <a href="https://aws.amazon.com/ai/responsible-ai/policy/">AWS Responsible AI Policy</a>, and the <a href="https://aws.amazon.com/aup/">AWS Acceptable Use Policy</a> on the Amazon Web Services website.</p> <p>You must set this parameter to <code>true</code> to create a voice. Otherwise, the request fails with <code>ValidationException</code>.</p>"""
    voice_creation_data: "capo_polly.types.voice_creation_data.VoiceCreationData"
    """<p>The recordings that Amazon Polly uses to create the voice.</p>"""
    customer_managed_encryption: NotRequired[
        "capo_polly.types.customer_managed_encryption.CustomerManagedEncryption"
    ]
    """<p>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.</p>"""
    tags: NotRequired["capo_polly.types.tag_map.TagMap"]
    """<p>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.</p>"""
    client_token: NotRequired["capo_polly.types.client_token.ClientToken"]
    """<p>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.</p>"""

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

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.