Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Interface SynthesizeSpeechCommandOutputProtected

The output of SynthesizeSpeechCommand.

Hierarchy

Properties

$metadata: ResponseMetadata

Metadata pertaining to this request.

AudioStream?: SdkStream<undefined | Readable | ReadableStream<any> | Blob>

Stream containing the synthesized speech.

ContentType?: string

Specifies the type audio stream. This should reflect the OutputFormat parameter in your request.

  • If you request mp3 as the OutputFormat, the ContentType returned is audio/mpeg.

  • If you request ogg_vorbis as the OutputFormat, the ContentType returned is audio/ogg.

  • If you request pcm as the OutputFormat, the ContentType returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.

  • If you request json as the OutputFormat, the ContentType returned is application/x-json-stream.

RequestCharacters?: number

Number of characters synthesized.