OutputAudioConfig constructor

OutputAudioConfig({
  1. OutputAudioEncoding? audioEncoding = OutputAudioEncoding.OUTPUT_AUDIO_ENCODING_LINEAR_16,
  2. int? sampleRateHertz,
  3. SynthesizeSpeechConfig? synthesizeSpeechConfig,
})

Instructs the speech synthesizer on how to generate the output audio content. If this audio config is supplied in a request, it overrides all existing text-to-speech settings applied to the agent.

See: https://cloud.google.com/dialogflow/docs/reference/rest/v2/OutputAudioConfig

Implementation

OutputAudioConfig({
  this.audioEncoding = OutputAudioEncoding.OUTPUT_AUDIO_ENCODING_LINEAR_16,
  this.sampleRateHertz,
  this.synthesizeSpeechConfig,
});