Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::TextToSpeechSettings (v1.1.0)

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

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#enable_text_to_speech

def enable_text_to_speech() -> ::Boolean
Returns
  • (::Boolean) — Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.

#enable_text_to_speech=

def enable_text_to_speech=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
Returns
  • (::Boolean) — Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.

#output_audio_encoding

def output_audio_encoding() -> ::Google::Cloud::Dialogflow::V2::OutputAudioEncoding
Returns

#output_audio_encoding=

def output_audio_encoding=(value) -> ::Google::Cloud::Dialogflow::V2::OutputAudioEncoding
Parameter
Returns

#sample_rate_hertz

def sample_rate_hertz() -> ::Integer
Returns
  • (::Integer) — 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).

#sample_rate_hertz=

def sample_rate_hertz=(value) -> ::Integer
Parameter
  • value (::Integer) — 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).
Returns
  • (::Integer) — 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).

#synthesize_speech_configs

def synthesize_speech_configs() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}) — Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.

#synthesize_speech_configs=

def synthesize_speech_configs=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}) — Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}) — Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.