@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Voice extends Object implements Serializable, Cloneable, StructuredPojo
Description of the voice.
Constructor and Description |
---|
Voice() |
Modifier and Type | Method and Description |
---|---|
Voice |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAdditionalLanguageCodes()
Additional codes for languages available for the specified voice in addition to its default language.
|
String |
getGender()
Gender of the voice.
|
String |
getId()
Amazon Polly assigned voice ID.
|
String |
getLanguageCode()
Language code of the voice.
|
String |
getLanguageName()
Human readable name of the language in English.
|
String |
getName()
Name of the voice (for example, Salli, Kendra, etc.).
|
List<String> |
getSupportedEngines()
Specifies which engines (
standard , neural , long-form or
generative ) are supported by a given voice. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalLanguageCodes(Collection<String> additionalLanguageCodes)
Additional codes for languages available for the specified voice in addition to its default language.
|
void |
setGender(Gender gender)
Gender of the voice.
|
void |
setGender(String gender)
Gender of the voice.
|
void |
setId(String id)
Amazon Polly assigned voice ID.
|
void |
setId(VoiceId id)
Amazon Polly assigned voice ID.
|
void |
setLanguageCode(LanguageCode languageCode)
Language code of the voice.
|
void |
setLanguageCode(String languageCode)
Language code of the voice.
|
void |
setLanguageName(String languageName)
Human readable name of the language in English.
|
void |
setName(String name)
Name of the voice (for example, Salli, Kendra, etc.).
|
void |
setSupportedEngines(Collection<String> supportedEngines)
Specifies which engines (
standard , neural , long-form or
generative ) are supported by a given voice. |
String |
toString()
Returns a string representation of this object.
|
Voice |
withAdditionalLanguageCodes(Collection<String> additionalLanguageCodes)
Additional codes for languages available for the specified voice in addition to its default language.
|
Voice |
withAdditionalLanguageCodes(LanguageCode... additionalLanguageCodes)
Additional codes for languages available for the specified voice in addition to its default language.
|
Voice |
withAdditionalLanguageCodes(String... additionalLanguageCodes)
Additional codes for languages available for the specified voice in addition to its default language.
|
Voice |
withGender(Gender gender)
Gender of the voice.
|
Voice |
withGender(String gender)
Gender of the voice.
|
Voice |
withId(String id)
Amazon Polly assigned voice ID.
|
Voice |
withId(VoiceId id)
Amazon Polly assigned voice ID.
|
Voice |
withLanguageCode(LanguageCode languageCode)
Language code of the voice.
|
Voice |
withLanguageCode(String languageCode)
Language code of the voice.
|
Voice |
withLanguageName(String languageName)
Human readable name of the language in English.
|
Voice |
withName(String name)
Name of the voice (for example, Salli, Kendra, etc.).
|
Voice |
withSupportedEngines(Collection<String> supportedEngines)
Specifies which engines (
standard , neural , long-form or
generative ) are supported by a given voice. |
Voice |
withSupportedEngines(Engine... supportedEngines)
Specifies which engines (
standard , neural , long-form or
generative ) are supported by a given voice. |
Voice |
withSupportedEngines(String... supportedEngines)
Specifies which engines (
standard , neural , long-form or
generative ) are supported by a given voice. |
public void setGender(String gender)
Gender of the voice.
gender
- Gender of the voice.Gender
public String getGender()
Gender of the voice.
Gender
public Voice withGender(String gender)
Gender of the voice.
gender
- Gender of the voice.Gender
public void setGender(Gender gender)
Gender of the voice.
gender
- Gender of the voice.Gender
public Voice withGender(Gender gender)
Gender of the voice.
gender
- Gender of the voice.Gender
public void setId(String id)
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
id
- Amazon Polly assigned voice ID. This is the ID that you specify when calling the
SynthesizeSpeech
operation.VoiceId
public String getId()
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
SynthesizeSpeech
operation.VoiceId
public Voice withId(String id)
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
id
- Amazon Polly assigned voice ID. This is the ID that you specify when calling the
SynthesizeSpeech
operation.VoiceId
public void setId(VoiceId id)
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
id
- Amazon Polly assigned voice ID. This is the ID that you specify when calling the
SynthesizeSpeech
operation.VoiceId
public Voice withId(VoiceId id)
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
id
- Amazon Polly assigned voice ID. This is the ID that you specify when calling the
SynthesizeSpeech
operation.VoiceId
public void setLanguageCode(String languageCode)
Language code of the voice.
languageCode
- Language code of the voice.LanguageCode
public String getLanguageCode()
Language code of the voice.
LanguageCode
public Voice withLanguageCode(String languageCode)
Language code of the voice.
languageCode
- Language code of the voice.LanguageCode
public void setLanguageCode(LanguageCode languageCode)
Language code of the voice.
languageCode
- Language code of the voice.LanguageCode
public Voice withLanguageCode(LanguageCode languageCode)
Language code of the voice.
languageCode
- Language code of the voice.LanguageCode
public void setLanguageName(String languageName)
Human readable name of the language in English.
languageName
- Human readable name of the language in English.public String getLanguageName()
Human readable name of the language in English.
public Voice withLanguageName(String languageName)
Human readable name of the language in English.
languageName
- Human readable name of the language in English.public void setName(String name)
Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.
name
- Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you
might display in your application.public String getName()
Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.
public Voice withName(String name)
Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.
name
- Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you
might display in your application.public List<String> getAdditionalLanguageCodes()
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
.
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
.
LanguageCode
public void setAdditionalLanguageCodes(Collection<String> additionalLanguageCodes)
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
.
additionalLanguageCodes
- 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
.
LanguageCode
public Voice withAdditionalLanguageCodes(String... additionalLanguageCodes)
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
.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalLanguageCodes(java.util.Collection)
or
withAdditionalLanguageCodes(java.util.Collection)
if you want to override the existing values.
additionalLanguageCodes
- 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
.
LanguageCode
public Voice withAdditionalLanguageCodes(Collection<String> additionalLanguageCodes)
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
.
additionalLanguageCodes
- 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
.
LanguageCode
public Voice withAdditionalLanguageCodes(LanguageCode... additionalLanguageCodes)
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
.
additionalLanguageCodes
- 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
.
LanguageCode
public List<String> getSupportedEngines()
Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.
standard
, neural
, long-form
or
generative
) are supported by a given voice.Engine
public void setSupportedEngines(Collection<String> supportedEngines)
Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.
supportedEngines
- Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.Engine
public Voice withSupportedEngines(String... supportedEngines)
Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedEngines(java.util.Collection)
or withSupportedEngines(java.util.Collection)
if you
want to override the existing values.
supportedEngines
- Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.Engine
public Voice withSupportedEngines(Collection<String> supportedEngines)
Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.
supportedEngines
- Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.Engine
public Voice withSupportedEngines(Engine... supportedEngines)
Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.
supportedEngines
- Specifies which engines (standard
, neural
, long-form
or
generative
) are supported by a given voice.Engine
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.