public class DescribeVoicesRequest extends AmazonWebServiceRequest implements Serializable
Returns the list of voices that are available for use when requesting speech synthesis. Each voice speaks a specified language, is either male or female, and is identified by an ID, which is the ASCII version of the voice name.
When synthesizing speech ( SynthesizeSpeech ), you provide the
voice ID for the voice you want from the list of voices returned by
DescribeVoices.
For example, you want your news reader application to read news in a specific
language, but giving a user the option to choose the voice. Using the
DescribeVoices operation you can provide the user with a list of
available voices to select from.
You can optionally specify a language code to filter the available voices.
For example, if you specify en-US, the operation returns a list
of all available US English voices.
This operation requires permissions to perform the
polly:DescribeVoices action.
| Constructor and Description |
|---|
DescribeVoicesRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getLanguageCode()
The language identification tag (ISO 639 code for the language name-ISO
3166 country code) for filtering the list of voices returned.
|
String |
getNextToken()
An opaque pagination token returned from the previous
DescribeVoices operation. |
int |
hashCode() |
void |
setLanguageCode(LanguageCode languageCode)
The language identification tag (ISO 639 code for the language name-ISO
3166 country code) for filtering the list of voices returned.
|
void |
setLanguageCode(String languageCode)
The language identification tag (ISO 639 code for the language name-ISO
3166 country code) for filtering the list of voices returned.
|
void |
setNextToken(String nextToken)
An opaque pagination token returned from the previous
DescribeVoices operation. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeVoicesRequest |
withLanguageCode(LanguageCode languageCode)
The language identification tag (ISO 639 code for the language name-ISO
3166 country code) for filtering the list of voices returned.
|
DescribeVoicesRequest |
withLanguageCode(String languageCode)
The language identification tag (ISO 639 code for the language name-ISO
3166 country code) for filtering the list of voices returned.
|
DescribeVoicesRequest |
withNextToken(String nextToken)
An opaque pagination token returned from the previous
DescribeVoices operation. |
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getLanguageCode()
The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
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, ko-KR, ja-JP,
nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
LanguageCodepublic void setLanguageCode(String languageCode)
The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
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, ko-KR, ja-JP,
nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
LanguageCodepublic DescribeVoicesRequest withLanguageCode(String languageCode)
The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
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, ko-KR, ja-JP,
nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
LanguageCodepublic void setLanguageCode(LanguageCode languageCode)
The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
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, ko-KR, ja-JP,
nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
LanguageCodepublic DescribeVoicesRequest withLanguageCode(LanguageCode languageCode)
The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
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, ko-KR, ja-JP,
nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR
languageCode - The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.
LanguageCodepublic String getNextToken()
An opaque pagination token returned from the previous
DescribeVoices operation. If present, this indicates where
to continue the listing.
An opaque pagination token returned from the previous
DescribeVoices operation. If present, this indicates
where to continue the listing.
public void setNextToken(String nextToken)
An opaque pagination token returned from the previous
DescribeVoices operation. If present, this indicates where
to continue the listing.
nextToken -
An opaque pagination token returned from the previous
DescribeVoices operation. If present, this
indicates where to continue the listing.
public DescribeVoicesRequest withNextToken(String nextToken)
An opaque pagination token returned from the previous
DescribeVoices operation. If present, this indicates where
to continue the listing.
Returns a reference to this object so that method calls can be chained together.
nextToken -
An opaque pagination token returned from the previous
DescribeVoices operation. If present, this
indicates where to continue the listing.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.