SynthesizeSpeechOutput
import type { SynthesizeSpeechOutput } from "https://aws-api.deno.dev/v0.3/services/polly.ts?docs=full";
interface SynthesizeSpeechOutput {
AudioStream?: Uint8Array | null;
ContentType?: string | null;
RequestCharacters?: number | null;
}§Properties
§
ContentType?: string | null
[src]Specifies the type audio stream.
This should reflect the OutputFormat
parameter in your request.
- If you request
mp3
as theOutputFormat
, theContentType
returned is audio/mpeg. - If you request
ogg_vorbis
as theOutputFormat
, theContentType
returned is audio/ogg. - If you request
pcm
as theOutputFormat
, theContentType
returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format. - If you request
json
as theOutputFormat
, theContentType
returned is audio/json.