Skip to content

Polly  >  Operations  >  list_speech_synthesis_tasks

list_speech_synthesis_tasks

Operation

list_speech_synthesis_tasks async

list_speech_synthesis_tasks(input: ListSpeechSynthesisTasksInput, plugins: list[Plugin] | None = None) -> ListSpeechSynthesisTasksOutput

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.

Parameters:

Name Type Description Default
input ListSpeechSynthesisTasksInput

An instance of ListSpeechSynthesisTasksInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ListSpeechSynthesisTasksOutput

An instance of ListSpeechSynthesisTasksOutput.

Input

ListSpeechSynthesisTasksInput dataclass

Dataclass for ListSpeechSynthesisTasksInput structure.

Attributes

max_results class-attribute instance-attribute
max_results: int | None = None

Maximum number of speech synthesis tasks returned in a List operation.

next_token class-attribute instance-attribute
next_token: str | None = None

The pagination token to use in the next request to continue the listing of speech synthesis tasks.

status class-attribute instance-attribute
status: TaskStatus | None = None

Status of the speech synthesis tasks returned in a List operation

Output

ListSpeechSynthesisTasksOutput dataclass

Dataclass for ListSpeechSynthesisTasksOutput structure.

Attributes

next_token class-attribute instance-attribute
next_token: str | None = None

An opaque pagination token returned from the previous List operation in this request. If present, this indicates where to continue the listing.

synthesis_tasks class-attribute instance-attribute
synthesis_tasks: list[SynthesisTask] | None = None

List of SynthesisTask objects that provides information from the specified task in the list request, including output format, creation time, task status, and so on.