public class Voice
extends java.lang.Object
implements java.io.Serializable
Description of the voice.
Constructor and Description |
---|
Voice() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAdditionalLanguageCodes()
Additional codes for languages available for the specified voice in
addition to its default language.
|
java.lang.String |
getGender()
Gender of the voice.
|
java.lang.String |
getId()
Amazon Polly assigned voice ID.
|
java.lang.String |
getLanguageCode()
Language code of the voice.
|
java.lang.String |
getLanguageName()
Human readable name of the language in English.
|
java.lang.String |
getName()
Name of the voice (for example, Salli, Kendra, etc.).
|
java.util.List<java.lang.String> |
getSupportedEngines()
Specifies which engines (
standard or neural )
that are supported by a given voice. |
int |
hashCode() |
void |
setAdditionalLanguageCodes(java.util.Collection<java.lang.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(java.lang.String gender)
Gender of the voice.
|
void |
setId(java.lang.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(java.lang.String languageCode)
Language code of the voice.
|
void |
setLanguageName(java.lang.String languageName)
Human readable name of the language in English.
|
void |
setName(java.lang.String name)
Name of the voice (for example, Salli, Kendra, etc.).
|
void |
setSupportedEngines(java.util.Collection<java.lang.String> supportedEngines)
Specifies which engines (
standard or neural )
that are supported by a given voice. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Voice |
withAdditionalLanguageCodes(java.util.Collection<java.lang.String> additionalLanguageCodes)
Additional codes for languages available for the specified voice in
addition to its default language.
|
Voice |
withAdditionalLanguageCodes(java.lang.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(java.lang.String gender)
Gender of the voice.
|
Voice |
withId(java.lang.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(java.lang.String languageCode)
Language code of the voice.
|
Voice |
withLanguageName(java.lang.String languageName)
Human readable name of the language in English.
|
Voice |
withName(java.lang.String name)
Name of the voice (for example, Salli, Kendra, etc.).
|
Voice |
withSupportedEngines(java.util.Collection<java.lang.String> supportedEngines)
Specifies which engines (
standard or neural )
that are supported by a given voice. |
Voice |
withSupportedEngines(java.lang.String... supportedEngines)
Specifies which engines (
standard or neural )
that are supported by a given voice. |
public java.lang.String getGender()
Gender of the voice.
Constraints:
Allowed Values: Female, Male
Gender of the voice.
Gender
public void setGender(java.lang.String gender)
Gender of the voice.
Constraints:
Allowed Values: Female, Male
gender
- Gender of the voice.
Gender
public Voice withGender(java.lang.String gender)
Gender of the voice.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Female, Male
gender
- Gender of the voice.
Gender
public void setGender(Gender gender)
Gender of the voice.
Constraints:
Allowed Values: Female, Male
gender
- Gender of the voice.
Gender
public Voice withGender(Gender gender)
Gender of the voice.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Female, Male
gender
- Gender of the voice.
Gender
public java.lang.String getId()
Amazon Polly assigned voice ID. This is the ID that you specify when
calling the SynthesizeSpeech
operation.
Constraints:
Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna,
Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia,
Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki,
Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli,
Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
Amazon Polly assigned voice ID. This is the ID that you specify
when calling the SynthesizeSpeech
operation.
VoiceId
public void setId(java.lang.String id)
Amazon Polly assigned voice ID. This is the ID that you specify when
calling the SynthesizeSpeech
operation.
Constraints:
Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna,
Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia,
Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki,
Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli,
Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
id
-
Amazon Polly assigned voice ID. This is the ID that you
specify when calling the SynthesizeSpeech
operation.
VoiceId
public Voice withId(java.lang.String id)
Amazon Polly assigned voice ID. This is the ID that you specify when
calling the SynthesizeSpeech
operation.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna,
Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia,
Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki,
Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli,
Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
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.
Constraints:
Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna,
Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia,
Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki,
Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli,
Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Aditi, Amy, Astrid, Bianca, Brian, Camila, Carla,
Carmen, Celine, Chantal, Conchita, Cristiano, Dora, Emma, Enrique, Ewa,
Filiz, Geraint, Giorgio, Gwyneth, Hans, Ines, Ivy, Jacek, Jan, Joanna,
Joey, Justin, Karl, Kendra, Kevin, Kimberly, Lea, Liv, Lotte, Lucia,
Lupe, Mads, Maja, Marlene, Mathieu, Matthew, Maxim, Mia, Miguel, Mizuki,
Naja, Nicole, Olivia, Penelope, Raveena, Ricardo, Ruben, Russell, Salli,
Seoyeon, Takumi, Tatyana, Vicki, Vitoria, Zeina, Zhiyu
id
-
Amazon Polly assigned voice ID. This is the ID that you
specify when calling the SynthesizeSpeech
operation.
VoiceId
public java.lang.String getLanguageCode()
Language code of the voice.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
Language code of the voice.
LanguageCode
public void setLanguageCode(java.lang.String languageCode)
Language code of the voice.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code of the voice.
LanguageCode
public Voice withLanguageCode(java.lang.String languageCode)
Language code of the voice.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code of the voice.
LanguageCode
public void setLanguageCode(LanguageCode languageCode)
Language code of the voice.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code of the voice.
LanguageCode
public Voice withLanguageCode(LanguageCode languageCode)
Language code of the voice.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: arb, cmn-CN, cy-GB, da-DK, de-DE, en-AU, en-GB,
en-GB-WLS, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, is-IS, it-IT,
ja-JP, hi-IN, ko-KR, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU,
sv-SE, tr-TR
languageCode
- Language code of the voice.
LanguageCode
public java.lang.String getLanguageName()
Human readable name of the language in English.
Human readable name of the language in English.
public void setLanguageName(java.lang.String languageName)
Human readable name of the language in English.
languageName
- Human readable name of the language in English.
public Voice withLanguageName(java.lang.String languageName)
Human readable name of the language in English.
Returns a reference to this object so that method calls can be chained together.
languageName
- Human readable name of the language in English.
public java.lang.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.
Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.
public void setName(java.lang.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 Voice withName(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.util.List<java.lang.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
.
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
.
public void setAdditionalLanguageCodes(java.util.Collection<java.lang.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
.
public Voice withAdditionalLanguageCodes(java.lang.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
.
Returns a reference to this object so that method calls can be chained together.
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
.
public Voice withAdditionalLanguageCodes(java.util.Collection<java.lang.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
.
Returns a reference to this object so that method calls can be chained together.
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
.
public java.util.List<java.lang.String> getSupportedEngines()
Specifies which engines (standard
or neural
)
that are supported by a given voice.
Specifies which engines (standard
or
neural
) that are supported by a given voice.
public void setSupportedEngines(java.util.Collection<java.lang.String> supportedEngines)
Specifies which engines (standard
or neural
)
that are supported by a given voice.
supportedEngines
-
Specifies which engines (standard
or
neural
) that are supported by a given voice.
public Voice withSupportedEngines(java.lang.String... supportedEngines)
Specifies which engines (standard
or neural
)
that are supported by a given voice.
Returns a reference to this object so that method calls can be chained together.
supportedEngines
-
Specifies which engines (standard
or
neural
) that are supported by a given voice.
public Voice withSupportedEngines(java.util.Collection<java.lang.String> supportedEngines)
Specifies which engines (standard
or neural
)
that are supported by a given voice.
Returns a reference to this object so that method calls can be chained together.
supportedEngines
-
Specifies which engines (standard
or
neural
) that are supported by a given voice.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.