Google Cloud Dialogflow v2 API - Class TextToSpeechSettings (4.24.0)

public sealed class TextToSpeechSettings : IMessage<TextToSpeechSettings>, IEquatable<TextToSpeechSettings>, IDeepCloneable<TextToSpeechSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class TextToSpeechSettings.

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

Inheritance

object > TextToSpeechSettings

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

TextToSpeechSettings()

public TextToSpeechSettings()

TextToSpeechSettings(TextToSpeechSettings)

public TextToSpeechSettings(TextToSpeechSettings other)
Parameter
Name Description
other TextToSpeechSettings

Properties

EnableTextToSpeech

public bool EnableTextToSpeech { get; set; }

Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.

Property Value
Type Description
bool

OutputAudioEncoding

public OutputAudioEncoding OutputAudioEncoding { get; set; }

Required. Audio encoding of the synthesized audio content.

Property Value
Type Description
OutputAudioEncoding

SampleRateHertz

public int SampleRateHertz { get; set; }

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).

Property Value
Type Description
int

SynthesizeSpeechConfigs

public MapField<string, SynthesizeSpeechConfig> SynthesizeSpeechConfigs { get; }

Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.

Property Value
Type Description
MapFieldstringSynthesizeSpeechConfig