Skip to content

PollyClient.get_voice

rboto-polly==0.4.0 · Service index · Types

Model summary (excerpt): Returns the status and properties of a custom voice. Use this operation after CreateVoice to check whether the status of the voice is active or failed . Unlike DescribeVoices , GetVoice also returns Arn , VoiceCreationData , CustomerManagedEncryption , and StatusReason . If no custom voice with the specified ID exists in your account and Region, the request fails with ResourceNotFoundException...

Install and imports

python -m pip install "rboto[polly]==0.4.0"
from rboto import PollyClient
from rboto_polly.types import (
    GetVoiceOutput,
)

Signature

async def get_voice(
    *,
    voice_id: str,
) -> GetVoiceOutput: ...

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)
voice_id Yes The ID of the custom voice that CreateVoice returned, for example, vc-9a8fa85dd3 . You can't specify the ARN of the voice.

Output

GetVoiceOutput.

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
voice VoiceOutput | None Always present VoiceOutput

| 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.

GetVoiceOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Waiters

from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.

client.waiters.voice_active:

async def voice_active(
    *,
    voice_id: str,
    waiter_config: WaiterConfig | None = None,
) -> GetVoiceOutput: ...

Default fixed delay: 15 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 success stringEquals Voice.Status active
1 failure stringEquals Voice.Status failed

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

Errors

Import from rboto_polly.exceptions:

ResourceNotFoundError, ServiceFailureError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model