@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.Genderpublic String getGender()
Gender of the voice.
Genderpublic Voice withGender(String gender)
Gender of the voice.
gender - Gender of the voice.Genderpublic void setGender(Gender gender)
Gender of the voice.
gender - Gender of the voice.Genderpublic Voice withGender(Gender gender)
Gender of the voice.
gender - Gender of the voice.Genderpublic 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.VoiceIdpublic String getId()
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
SynthesizeSpeech operation.VoiceIdpublic 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.VoiceIdpublic 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.VoiceIdpublic 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.VoiceIdpublic void setLanguageCode(String languageCode)
Language code of the voice.
languageCode - Language code of the voice.LanguageCodepublic String getLanguageCode()
Language code of the voice.
LanguageCodepublic Voice withLanguageCode(String languageCode)
Language code of the voice.
languageCode - Language code of the voice.LanguageCodepublic void setLanguageCode(LanguageCode languageCode)
Language code of the voice.
languageCode - Language code of the voice.LanguageCodepublic Voice withLanguageCode(LanguageCode languageCode)
Language code of the voice.
languageCode - Language code of the voice.LanguageCodepublic 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.
LanguageCodepublic 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.
LanguageCodepublic 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.
LanguageCodepublic 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.
LanguageCodepublic 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.
LanguageCodepublic 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.Enginepublic 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.Enginepublic 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.Enginepublic 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.Enginepublic 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.Enginepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.