Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::BidiStreamingAnalyzeContentRequest::Config::VoiceSessionConfig (v1.18.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::BidiStreamingAnalyzeContentRequest::Config::VoiceSessionConfig.

The config about how to process the audio for a voice-based session.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#enable_cx_proactive_processing

def enable_cx_proactive_processing() -> ::Boolean
Returns
  • (::Boolean) — Optional. Whether to enable CX proactive processing.

#enable_cx_proactive_processing=

def enable_cx_proactive_processing=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether to enable CX proactive processing.
Returns
  • (::Boolean) — Optional. Whether to enable CX proactive processing.

#enable_streaming_synthesize

def enable_streaming_synthesize() -> ::Boolean
Returns
  • (::Boolean) — Optional. If true, Dialogflow will stream the audio bytes from Cloud TTS for speech synthesis using the StreamingSynthesize api.

#enable_streaming_synthesize=

def enable_streaming_synthesize=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. If true, Dialogflow will stream the audio bytes from Cloud TTS for speech synthesis using the StreamingSynthesize api.
Returns
  • (::Boolean) — Optional. If true, Dialogflow will stream the audio bytes from Cloud TTS for speech synthesis using the StreamingSynthesize api.

#gemini_asr_config

def gemini_asr_config() -> ::Google::Cloud::Dialogflow::V2::SpeechToTextConfig::GeminiAsrConfig
Returns

#gemini_asr_config=

def gemini_asr_config=(value) -> ::Google::Cloud::Dialogflow::V2::SpeechToTextConfig::GeminiAsrConfig
Parameter
Returns

#input_audio_encoding

def input_audio_encoding() -> ::Google::Cloud::Dialogflow::V2::AudioEncoding
Returns

#input_audio_encoding=

def input_audio_encoding=(value) -> ::Google::Cloud::Dialogflow::V2::AudioEncoding
Parameter
Returns

#input_audio_sample_rate_hertz

def input_audio_sample_rate_hertz() -> ::Integer
Returns
  • (::Integer) — Required. The sample rate of input audio.

#input_audio_sample_rate_hertz=

def input_audio_sample_rate_hertz=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. The sample rate of input audio.
Returns
  • (::Integer) — Required. The sample rate of input audio.

#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

#output_audio_sample_rate_hertz

def output_audio_sample_rate_hertz() -> ::Integer
Returns
  • (::Integer) — Required. The sample rate of output audio.

#output_audio_sample_rate_hertz=

def output_audio_sample_rate_hertz=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. The sample rate of output audio.
Returns
  • (::Integer) — Required. The sample rate of output audio.

#use_gemini_asr

def use_gemini_asr() -> ::Boolean
Returns
  • (::Boolean) — Optional. If true, Gemini ASR will be used for transcription instead of Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. If unset, this setting is inherited from the ConversationProfile.

#use_gemini_asr=

def use_gemini_asr=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. If true, Gemini ASR will be used for transcription instead of Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. If unset, this setting is inherited from the ConversationProfile.
Returns
  • (::Boolean) — Optional. If true, Gemini ASR will be used for transcription instead of Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used. If unset, this setting is inherited from the ConversationProfile.