Skip to content

PollyClient.list_speech_synthesis_tasks

rboto-polly==0.4.0 · Service index · Types

Model summary (excerpt): Returns a list of SpeechSynthesisTask objects ordered by their creation date. This operation can filter the tasks by their status, for example, allowing users to list only tasks that are completed.

Install and imports

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

Signature

async def list_speech_synthesis_tasks(
    *,
    max_results: int | None = None,
    next_token: str | None = None,
    status: TaskStatus | None = None,
) -> ListSpeechSynthesisTasksOutput: ...

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)
max_results No Maximum number of speech synthesis tasks returned in a List operation.
next_token No The pagination token to use in the next request to continue the listing of speech synthesis tasks.
status No Status of the speech synthesis tasks returned in a List operation

Output

ListSpeechSynthesisTasksOutput.

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
next_token str | None Always present —
synthesis_tasks list[SynthesisTaskOutput] | None Always present SynthesisTaskOutput

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

ListSpeechSynthesisTasksOutput, TaskStatus

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

Pagination and streaming

client.paginators.list_speech_synthesis_tasks(...) accepts the same arguments and returns AsyncIterator[ListSpeechSynthesisTasksOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

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.

Service guide · Pinned model