Cloud Speech-to-Text v2 API - Class SpeakerDiarizationConfig (1.0.0-beta07)

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.

Inheritance

object > SpeakerDiarizationConfig

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

SpeakerDiarizationConfig()

public SpeakerDiarizationConfig()

SpeakerDiarizationConfig(SpeakerDiarizationConfig)

public SpeakerDiarizationConfig(SpeakerDiarizationConfig other)
Parameter
NameDescription
otherSpeakerDiarizationConfig

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
TypeDescription
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
TypeDescription
int