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).
Asynchronous Synthesis
Section titled “Asynchronous Synthesis”// initconst listSpeechSynthesisTasks = yield* AWS.Polly.ListSpeechSynthesisTasks();
// runtimeconst result = yield* listSpeechSynthesisTasks({ Status: "completed", MaxResults: 10,});const taskIds = (result.SynthesisTasks ?? []).map((task) => task.TaskId);