Class: Aws::Polly::Types::Voice

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

Overview

Describes a voice. Amazon Polly provides voices, and you can create custom voices with CreateVoice. Origin indicates whether Amazon Polly provides the voice or you created it. DescribeVoices returns a subset of the fields for each voice. GetVoice returns all fields of a custom voice.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#additional_language_codes ⇒ Array<String>

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.

Returns:

  • (Array<String>)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#arn ⇒ String

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.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#creation_time ⇒ Time

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

Returns:

  • (Time)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#customer_managed_encryption ⇒ Types::CustomerManagedEncryption

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



1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#gender ⇒ String

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

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#id ⇒ String

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.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#language_code ⇒ String

Language code of the voice.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#language_name ⇒ String

Human readable name of the language in English.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#name ⇒ String

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.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#origin ⇒ String

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.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#status ⇒ String

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.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#status_reason ⇒ String

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.

Returns:

  • (String)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

#supported_engines ⇒ Array<String>

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

Returns:

  • (Array<String>)


1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end

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



1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
# File 'gems/aws-sdk-polly/lib/aws-sdk-polly/types.rb', line 1832

class Voice < Struct.new(
  :arn,
  :gender,
  :id,
  :language_code,
  :language_name,
  :name,
  :origin,
  :status,
  :status_reason,
  :additional_language_codes,
  :supported_engines,
  :voice_creation_data,
  :customer_managed_encryption,
  :creation_time)
  SENSITIVE = []
  include Aws::Structure
end