Class TextToSpeechSettings

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

Attributes
NameDescription
boolenable_text_to_speech
Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
google.cloud.dialogflow_v2beta1.types.OutputAudioEncodingoutput_audio_encoding
Required. Audio encoding of the synthesized audio content.
intsample_rate_hertz
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).
Sequence[google.cloud.dialogflow_v2beta1.types.TextToSpeechSettings.SynthesizeSpeechConfigsEntry]synthesize_speech_configs
Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.

Inheritance

builtins.object > proto.message.Message > TextToSpeechSettings

Classes

SynthesizeSpeechConfigsEntry

SynthesizeSpeechConfigsEntry(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

API documentation for dialogflow_v2beta1.types.TextToSpeechSettings.SynthesizeSpeechConfigsEntry class.