4.34.0 (latest) 4.33.0 4.32.0 4.31.0 4.30.0 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.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](https://learn.microsoft.com/dotnet/api/system.object) \> BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[BidiStreamingAnalyzeContentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types)[Config](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.Types)[VoiceSessionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BidiStreamingAnalyzeContentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types)[Config](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.Types)[VoiceSessionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[BidiStreamingAnalyzeContentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types)[Config](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.Types)[VoiceSessionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.BidiStreamingAnalyzeContentRequest.Types.Config.Types.VoiceSessionConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.md.txt)

## 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

### DisableInterimInputTranscripts

    public bool DisableInterimInputTranscripts { get; set; }

Optional. Disables emission of interim input transcriptions when set to
`true`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### 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` |   |

### HasDisableInterimInputTranscripts

    public bool HasDisableInterimInputTranscripts { get; }

Gets whether the "disable_interim_input_transcripts" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### 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` |   |