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\u003eThe \u003ccode\u003eSpeakerDiarizationConfig\u003c/code\u003e class in the Cloud Speech-to-Text v2 API provides configuration options for enabling speaker diarization.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows setting the minimum and maximum number of speakers (\u003ccode\u003eMinSpeakerCount\u003c/code\u003e and \u003ccode\u003eMaxSpeakerCount\u003c/code\u003e) expected in a conversation, providing flexibility in speaker detection.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eSpeakerDiarizationConfig\u003c/code\u003e is 1.4.0, while the current page documents version 1.3.0, with prior versions also being 1.2.0, 1.1.0 and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpeakerDiarizationConfig\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \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\u003eTo ensure a fixed number of speakers are detected, the \u003ccode\u003emin_speaker_count\u003c/code\u003e should be equal to \u003ccode\u003emax_speaker_count\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]