public class Voice extends Object implements Serializable
Description of the voice.
| Constructor and Description |
|---|
Voice() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.).
|
int |
hashCode() |
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.).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
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.).
|
public String getGender()
Gender of the voice.
Constraints:
Allowed Values: Female, Male
Gender of the voice.
Genderpublic void setGender(String gender)
Gender of the voice.
Constraints:
Allowed Values: Female, Male
gender - Gender of the voice.
Genderpublic Voice withGender(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.
Genderpublic void setGender(Gender gender)
Gender of the voice.
Constraints:
Allowed Values: Female, Male
gender - Gender of the voice.
Genderpublic 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.
Genderpublic String getId()
Amazon Polly assigned voice ID. This is the ID that you specify when
calling the SynthesizeSpeech operation.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz
Amazon Polly assigned voice ID. This is the ID that you specify
when calling the SynthesizeSpeech operation.
VoiceIdpublic void setId(String id)
Amazon Polly assigned voice ID. This is the ID that you specify when
calling the SynthesizeSpeech operation.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz
id -
Amazon Polly assigned voice ID. This is the ID that you
specify when calling the SynthesizeSpeech
operation.
VoiceIdpublic Voice withId(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: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz
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.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene,
Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin,
Kendra, Kimberly, Salli, Conchita, Enrique, Miguel, Penelope, Chantal,
Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben,
Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim,
Tatyana, Astrid, Filiz
id -
Amazon Polly assigned voice ID. This is the ID that you
specify when calling the SynthesizeSpeech
operation.
VoiceIdpublic String getLanguageCode()
Language code of the voice.
Constraints:
Allowed Values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, nb-NO,
nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
Language code of the voice.
LanguageCodepublic void setLanguageCode(String languageCode)
Language code of the voice.
Constraints:
Allowed Values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, nb-NO,
nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - Language code of the voice.
LanguageCodepublic Voice withLanguageCode(String languageCode)
Language code of the voice.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, nb-NO,
nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - Language code of the voice.
LanguageCodepublic void setLanguageCode(LanguageCode languageCode)
Language code of the voice.
Constraints:
Allowed Values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, nb-NO,
nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - Language code of the voice.
LanguageCodepublic 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: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS,
en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ja-JP, nb-NO,
nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - Language code of the voice.
LanguageCodepublic String getLanguageName()
Human readable name of the language in English.
Human readable name of the language in English.
public void setLanguageName(String languageName)
Human readable name of the language in English.
languageName - Human readable name of the language in English.
public Voice withLanguageName(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 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(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(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 String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.