# Google Cloud Speech v1 API - Class SpeakerDiarizationConfig (3.9.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.9.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/latest/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.8.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.7.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.6.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.5.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.4.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.3.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.2.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.1.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/3.0.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.9.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.8.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.7.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.6.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.5.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.4.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.3.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/2.2.0/Google.Cloud.Speech.V1.SpeakerDiarizationConfig)

    public sealed class SpeakerDiarizationConfig : IMessage<SpeakerDiarizationConfig>, IEquatable<SpeakerDiarizationConfig>, IDeepCloneable<SpeakerDiarizationConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Speech v1 API class SpeakerDiarizationConfig.

Config to enable speaker diarization.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SpeakerDiarizationConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SpeakerDiarizationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/latest/Google.Cloud.Speech.V1.SpeakerDiarizationConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SpeakerDiarizationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/latest/Google.Cloud.Speech.V1.SpeakerDiarizationConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SpeakerDiarizationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/latest/Google.Cloud.Speech.V1.SpeakerDiarizationConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.Speech.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/latest/Google.Cloud.Speech.V1)

## Assembly

Google.Cloud.Speech.V1.dll

## Constructors

### SpeakerDiarizationConfig()

    public SpeakerDiarizationConfig()

### SpeakerDiarizationConfig(SpeakerDiarizationConfig)

    public SpeakerDiarizationConfig(SpeakerDiarizationConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1/latest/Google.Cloud.Speech.V1.SpeakerDiarizationConfig` |

## Properties

### EnableSpeakerDiarization

    public bool EnableSpeakerDiarization { get; set; }

If 'true', enables speaker detection for each recognized word in
the top alternative of the recognition result using a speaker_label
provided in the WordInfo.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### MaxSpeakerCount

    public int MaxSpeakerCount { get; set; }

Maximum number of speakers in the conversation. This range gives you more
flexibility by allowing the system to automatically determine the correct
number of speakers. If not set, the default value is 6.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### MinSpeakerCount

    public int MinSpeakerCount { get; set; }

Minimum number of speakers in the conversation. This range gives you more
flexibility by allowing the system to automatically determine the correct
number of speakers. If not set, the default value is 2.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### SpeakerTag

    [Obsolete]
    public int SpeakerTag { get; set; }

Output only. Unused.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |