Class: Aws::Polly::Types::CreateVoiceInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_token ⇒ String

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.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


154
155
156
157
158
159
160
161
162
163
164
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 154

class CreateVoiceInput < Struct.new(
  :name,
  :language_code,
  :terms_accepted,
  :voice_creation_data,
  :customer_managed_encryption,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#customer_managed_encryption ⇒ Types::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.



154
155
156
157
158
159
160
161
162
163
164
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 154

class CreateVoiceInput < Struct.new(
  :name,
  :language_code,
  :terms_accepted,
  :voice_creation_data,
  :customer_managed_encryption,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#language_code ⇒ String

The language of the recordings, for example, en-US. Amazon Polly doesn't detect the language from the recordings.

Returns:

  • (String)


154
155
156
157
158
159
160
161
162
163
164
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 154

class CreateVoiceInput < Struct.new(
  :name,
  :language_code,
  :terms_accepted,
  :voice_creation_data,
  :customer_managed_encryption,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#name ⇒ String

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.

Returns:

  • (String)


154
155
156
157
158
159
160
161
162
163
164
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 154

class CreateVoiceInput < Struct.new(
  :name,
  :language_code,
  :terms_accepted,
  :voice_creation_data,
  :customer_managed_encryption,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#tags ⇒ Hash<String,String>

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.

Returns:

  • (Hash<String,String>)


154
155
156
157
158
159
160
161
162
163
164
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 154

class CreateVoiceInput < Struct.new(
  :name,
  :language_code,
  :terms_accepted,
  :voice_creation_data,
  :customer_managed_encryption,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#terms_accepted ⇒ Boolean

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.

Returns:

  • (Boolean)


154
155
156
157
158
159
160
161
162
163
164
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 154

class CreateVoiceInput < Struct.new(
  :name,
  :language_code,
  :terms_accepted,
  :voice_creation_data,
  :customer_managed_encryption,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#voice_creation_data ⇒ Types::VoiceCreationData

The recordings that Amazon Polly uses to create the voice.



154
155
156
157
158
159
160
161
162
163
164
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 154

class CreateVoiceInput < Struct.new(
  :name,
  :language_code,
  :terms_accepted,
  :voice_creation_data,
  :customer_managed_encryption,
  :tags,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end