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.
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
andSnsTopicArn
). Once the synthesis task is created, this operation will return aSpeechSynthesisTask
object, which will include an identifier of this task as well as the current status. TheSpeechSynthesisTask
object is available for 72 hours after starting the asynchronous synthesis task.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);
StartSpeechSynthesisTaskCommandInput for command's
input
shape.StartSpeechSynthesisTaskCommandOutput for command's
response
shape.config for PollyClient's
config
shape.