Google Cloud Dialogflow v2 API - Class BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig (4.32.0)

public sealed class BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig : IMessage<BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig>, IEquatable<BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig>, IDeepCloneable<BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig>, IBufferMessage, IMessage

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

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

Inheritance

object > BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

VoiceSessionConfig()

public VoiceSessionConfig()

VoiceSessionConfig(VoiceSessionConfig)

public VoiceSessionConfig(BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig other)
Parameter
Name Description
other BidiStreamingAnalyzeContentRequestTypesConfigTypesVoiceSessionConfig

Properties

EnableCxProactiveProcessing

public bool EnableCxProactiveProcessing { get; set; }

Optional. Whether to enable CX proactive processing.

Property Value
Type Description
bool

EnableStreamingSynthesize

public bool EnableStreamingSynthesize { get; set; }

Optional. If true, Dialogflow will stream the audio bytes from Cloud TTS for speech synthesis using the StreamingSynthesize api.

Property Value
Type Description
bool

GeminiAsrConfig

public SpeechToTextConfig.Types.GeminiAsrConfig GeminiAsrConfig { get; set; }

Optional. Configuration for using Gemini ASR models served via Vertex AI. This field is only used when use_gemini_asr is true.

Property Value
Type Description
SpeechToTextConfigTypesGeminiAsrConfig

HasUseGeminiAsr

public bool HasUseGeminiAsr { get; }

Gets whether the "use_gemini_asr" field is set

Property Value
Type Description
bool

InputAudioEncoding

public AudioEncoding InputAudioEncoding { get; set; }

Required. The encoding of input audio.

Property Value
Type Description
AudioEncoding

InputAudioSampleRateHertz

public int InputAudioSampleRateHertz { get; set; }

Required. The sample rate of input audio.

Property Value
Type Description
int

OutputAudioEncoding

public OutputAudioEncoding OutputAudioEncoding { get; set; }

Required. The encoding of output audio.

Property Value
Type Description
OutputAudioEncoding

OutputAudioSampleRateHertz

public int OutputAudioSampleRateHertz { get; set; }

Required. The sample rate of output audio.

Property Value
Type Description
int

UseGeminiAsr

public bool UseGeminiAsr { get; set; }

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.

Property Value
Type Description
bool