OutputAudioConfig constructor

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

Implementation

factory OutputAudioConfig({
  OutputAudioEncoding? audioEncoding,
  $core.int? sampleRateHertz,
  SynthesizeSpeechConfig? synthesizeSpeechConfig,
}) {
  final _result = create();
  if (audioEncoding != null) {
    _result.audioEncoding = audioEncoding;
  }
  if (sampleRateHertz != null) {
    _result.sampleRateHertz = sampleRateHertz;
  }
  if (synthesizeSpeechConfig != null) {
    _result.synthesizeSpeechConfig = synthesizeSpeechConfig;
  }
  return _result;
}