Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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

§
AudioStream?: Uint8Array | null
[src]

Stream containing the synthesized speech.

§
ContentType?: string | null
[src]

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 audio/json.
§
RequestCharacters?: number | null
[src]

Number of characters synthesized.