PollyClient.describe_voices
rboto-polly==0.4.0 · Service index · Types
Model summary (excerpt): Returns the list of voices: the voices that Amazon Polly provides and the custom voices in your account. Each voice speaks a specified language and is identified by an ID. A voice that Amazon Polly provides is either male or female, and its ID 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...
Install and imports
from rboto import PollyClient
from rboto_polly.types import (
DescribeVoicesOutput,
Engine,
LanguageCode,
)
Signature
async def describe_voices(
*,
engine: Engine | None = None,
language_code: LanguageCode | None = None,
include_additional_language_codes: bool | None = None,
next_token: str | None = None,
) -> DescribeVoicesOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
engine |
No | Specifies the engine ( standard , neural , long-form or generative ) used by Amazon Polly when processing input text for speech synthesis. |
language_code |
No | 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. |
include_additional_language_codes |
No | 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 specify no . |
next_token |
No | An opaque pagination token returned from the previous DescribeVoices operation. If present, this indicates where to continue the listing. |
Output
DescribeVoicesOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
voices |
list[VoiceOutput] | None |
Always present | VoiceOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
DescribeVoicesOutput, Engine, LanguageCode
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.describe_voices(...) accepts the same arguments and returns AsyncIterator[DescribeVoicesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: not exposed.
No output stream.
Errors
Import from rboto_polly.exceptions:
InvalidNextTokenError, ServiceFailureError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.