Google Cloud Dialogflow v2 API - Class TextToSpeechSettings (4.15.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
NameDescription
otherTextToSpeechSettings

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
TypeDescription
bool

OutputAudioEncoding

public OutputAudioEncoding OutputAudioEncoding { get; set; }

Required. Audio encoding of the synthesized audio content.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
MapFieldstringSynthesizeSpeechConfig