Skip to content

ListSpeechSynthesisTasks

Source: src/AWS/Polly/ListSpeechSynthesisTasks.ts

Runtime binding for polly:ListSpeechSynthesisTasks — list asynchronous synthesis tasks ordered by creation date, optionally filtered by status.

The binding takes no arguments and grants the function polly:ListSpeechSynthesisTasks. Provide the implementation with Effect.provide(AWS.Polly.ListSpeechSynthesisTasksHttp).

// init
const listSpeechSynthesisTasks = yield* AWS.Polly.ListSpeechSynthesisTasks();
// runtime
const result = yield* listSpeechSynthesisTasks({
Status: "completed",
MaxResults: 10,
});
const taskIds = (result.SynthesisTasks ?? []).map((task) => task.TaskId);