OutputAudioConfig class

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

Annotations
  • @JsonSerializable()

Constructors

OutputAudioConfig({OutputAudioEncoding? audioEncoding = OutputAudioEncoding.OUTPUT_AUDIO_ENCODING_LINEAR_16, int? sampleRateHertz, 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.
OutputAudioConfig.fromJson(Map<String, dynamic> json)
factory

Properties

audioEncoding OutputAudioEncoding?
Audio encoding of the synthesized audio content.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRateHertz int?
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).
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
synthesizeSpeechConfig SynthesizeSpeechConfig?
Configuration of how speech should be synthesized.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited