기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
DescribeVoices
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.
Request Syntax
GET /v1/voices?Engine=Engine
&IncludeAdditionalLanguageCodes=IncludeAdditionalLanguageCodes
&LanguageCode=LanguageCode
&NextToken=NextToken
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- Engine
-
Specifies the engine (
standard
orneural
) used by Amazon Polly when processing input text for speech synthesis.Valid Values:
standard | neural
- IncludeAdditionalLanguageCodes
-
Boolean value indicating whether to return any bilingual voices that use the specified language as an additional language. For instance, if you request all languages that use US English (es-US), and there is an Italian voice that speaks both Italian (it-IT) and US English, that voice will be included if you specify
yes
but not if you specifyno
. - 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.
Valid 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
- NextToken
-
An opaque pagination token returned from the previous
DescribeVoices
operation. If present, this indicates where to continue the listing.Length Constraints: Minimum length of 0. Maximum length of 4096.
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"NextToken": "string",
"Voices": [
{
"AdditionalLanguageCodes": [ "string" ],
"Gender": "string",
"Id": "string",
"LanguageCode": "string",
"LanguageName": "string",
"Name": "string",
"SupportedEngines": [ "string" ]
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- NextToken
-
The pagination token to use in the next request to continue the listing of voices.
NextToken
is returned only if the response is truncated.Type: String
Length Constraints: Minimum length of 0. Maximum length of 4096.
- Voices
-
A list of voices with their properties.
Type: Array of Voice objects
Errors
- InvalidNextTokenException
-
The NextToken is invalid. Verify that it's spelled correctly, and then try again.
HTTP Status Code: 400
- ServiceFailureException
-
An unknown condition has caused a service failure.
HTTP Status Code: 500
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: