public sealed class SpeakerDiarizationConfig : IMessage<SpeakerDiarizationConfig>, IEquatable<SpeakerDiarizationConfig>, IDeepCloneable<SpeakerDiarizationConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Speech v1p1beta1 API class SpeakerDiarizationConfig.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eSpeakerDiarizationConfig is a class within the Google Cloud Speech v1p1beta1 API, designed to enable speaker diarization for speech recognition.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces like IMessage, IEquatable, IDeepCloneable, and IBufferMessage, supporting advanced functionalities and memory management.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the SpeakerDiarizationConfig class include \u003ccode\u003eEnableSpeakerDiarization\u003c/code\u003e to turn on speaker detection, \u003ccode\u003eMaxSpeakerCount\u003c/code\u003e to set the upper limit of speakers, and \u003ccode\u003eMinSpeakerCount\u003c/code\u003e to set the lower limit of speakers, as well as a deprecated \u003ccode\u003eSpeakerTag\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSpeakerDiarizationConfig\u003c/code\u003e is \u003ccode\u003e3.0.0-beta08\u003c/code\u003e, with previous versions, \u003ccode\u003e3.0.0-beta07\u003c/code\u003e, and \u003ccode\u003e2.0.0-beta09\u003c/code\u003e also available.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Speech v1p1beta1 API - Class SpeakerDiarizationConfig (3.0.0-beta09)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta09 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeakerDiarizationConfig)\n- [3.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta08/Google.Cloud.Speech.V1P1Beta1.SpeakerDiarizationConfig)\n- [2.0.0-beta09](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.SpeakerDiarizationConfig) \n\n public sealed class SpeakerDiarizationConfig : IMessage\u003cSpeakerDiarizationConfig\u003e, IEquatable\u003cSpeakerDiarizationConfig\u003e, IDeepCloneable\u003cSpeakerDiarizationConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Speech v1p1beta1 API class SpeakerDiarizationConfig.\n\nConfig to enable speaker diarization. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SpeakerDiarizationConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SpeakerDiarizationConfig](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeakerDiarizationConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SpeakerDiarizationConfig](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeakerDiarizationConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SpeakerDiarizationConfig](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Speech.V1P1Beta1](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V1P1Beta1.dll\n\nConstructors\n------------\n\n### SpeakerDiarizationConfig()\n\n public SpeakerDiarizationConfig()\n\n### SpeakerDiarizationConfig(SpeakerDiarizationConfig)\n\n public SpeakerDiarizationConfig(SpeakerDiarizationConfig other)\n\nProperties\n----------\n\n### EnableSpeakerDiarization\n\n public bool EnableSpeakerDiarization { get; set; }\n\nIf 'true', enables speaker detection for each recognized word in\nthe top alternative of the recognition result using a speaker_label\nprovided in the WordInfo.\n\n### MaxSpeakerCount\n\n public int MaxSpeakerCount { get; set; }\n\nMaximum number of speakers in the conversation. This range gives you more\nflexibility by allowing the system to automatically determine the correct\nnumber of speakers. If not set, the default value is 6.\n\n### MinSpeakerCount\n\n public int MinSpeakerCount { get; set; }\n\nMinimum number of speakers in the conversation. This range gives you more\nflexibility by allowing the system to automatically determine the correct\nnumber of speakers. If not set, the default value is 2.\n\n### SpeakerTag\n\n [Obsolete]\n public int SpeakerTag { get; set; }\n\nOutput only. Unused."]]