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

GoogleCloudDialogflowCxV3OutputAudioConfig

import type { GoogleCloudDialogflowCxV3OutputAudioConfig } from "https://googleapis.deno.dev/v1/dialogflow:v3.ts";

Instructs the speech synthesizer how to generate the output audio content.

interface GoogleCloudDialogflowCxV3OutputAudioConfig {
audioEncoding?:
| "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"
| "OUTPUT_AUDIO_ENCODING_LINEAR_16"
| "OUTPUT_AUDIO_ENCODING_MP3"
| "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS"
| "OUTPUT_AUDIO_ENCODING_OGG_OPUS"
| "OUTPUT_AUDIO_ENCODING_MULAW";
sampleRateHertz?: number;
}

§Properties

§
audioEncoding?: "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" | "OUTPUT_AUDIO_ENCODING_LINEAR_16" | "OUTPUT_AUDIO_ENCODING_MP3" | "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" | "OUTPUT_AUDIO_ENCODING_OGG_OPUS" | "OUTPUT_AUDIO_ENCODING_MULAW"
[src]

Required. Audio encoding of the synthesized audio content.

§
sampleRateHertz?: number
[src]

Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality).

§

Optional. Configuration of how speech should be synthesized. If not specified, Agent.text_to_speech_settings is applied.