public sealed class SpeakerDiarizationConfig : IMessage<SpeakerDiarizationConfig>, IEquatable<SpeakerDiarizationConfig>, IDeepCloneable<SpeakerDiarizationConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class SpeakerDiarizationConfig.
Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be >= min_speaker_count. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
Required. 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.
To fix the number of speakers detected in the audio, set
min_speaker_count = max_speaker_count.
[[["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\u003eThis documentation covers the \u003ccode\u003eSpeakerDiarizationConfig\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API, used for enabling speaker diarization in audio.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpeakerDiarizationConfig\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Speech.V2\u003c/code\u003e namespace and is implemented by several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, a default constructor, and one that takes another \u003ccode\u003eSpeakerDiarizationConfig\u003c/code\u003e object as a parameter for creating a copy.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for setting \u003ccode\u003eMinSpeakerCount\u003c/code\u003e and \u003ccode\u003eMaxSpeakerCount\u003c/code\u003e, which are required and allow users to specify the minimum and maximum number of speakers expected in the audio, respectively, ranging from 1 to 6.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is for version 1.4.0, and older versions are available back to 1.0.0, allowing you to access the documentation for your specific version.\u003c/p\u003e\n"]]],[],null,[]]