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.
Configuration to enable speaker diarization.
Implements
IMessageSpeakerDiarizationConfig, IEquatableSpeakerDiarizationConfig, IDeepCloneableSpeakerDiarizationConfig, IBufferMessage, IMessageNamespace
Google.Cloud.Speech.V2Assembly
Google.Cloud.Speech.V2.dll
Constructors
SpeakerDiarizationConfig()
public SpeakerDiarizationConfig()
SpeakerDiarizationConfig(SpeakerDiarizationConfig)
public SpeakerDiarizationConfig(SpeakerDiarizationConfig other)
Parameter | |
---|---|
Name | Description |
other | SpeakerDiarizationConfig |
Properties
MaxSpeakerCount
public int MaxSpeakerCount { get; set; }
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.
Property Value | |
---|---|
Type | Description |
int |
MinSpeakerCount
public int MinSpeakerCount { get; set; }
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
.
Property Value | |
---|---|
Type | Description |
int |