Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StartSpeechSynthesisTaskCommand

Allows the creation of an asynchronous synthesis task, by starting a new SpeechSynthesisTask. This operation requires all the standard information needed for speech synthesis, plus the name of an Amazon S3 bucket for the service to store the output of the synthesis task and two optional parameters (OutputS3KeyPrefix and SnsTopicArn). Once the synthesis task is created, this operation will return a SpeechSynthesisTask object, which will include an identifier of this task as well as the current status. The SpeechSynthesisTask object is available for 72 hours after starting the asynchronous synthesis task.

example

Use a bare-bones client and the command you need to make an API call.

import { PollyClient, StartSpeechSynthesisTaskCommand } from "@aws-sdk/client-polly"; // ES Modules import
// const { PollyClient, StartSpeechSynthesisTaskCommand } = require("@aws-sdk/client-polly"); // CommonJS import
const client = new PollyClient(config);
const command = new StartSpeechSynthesisTaskCommand(input);
const response = await client.send(command);
see

StartSpeechSynthesisTaskCommandInput for command's input shape.

see

StartSpeechSynthesisTaskCommandOutput for command's response shape.

see

config for PollyClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: StartSpeechSynthesisTaskCommandInput

Readonly middlewareStack