Interface SpeakerDiarizationConfigOrBuilder (4.7.0)

public interface SpeakerDiarizationConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnableSpeakerDiarization()

public abstract boolean getEnableSpeakerDiarization()

If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo.

bool enable_speaker_diarization = 1;

Returns
TypeDescription
boolean

The enableSpeakerDiarization.

getMaxSpeakerCount()

public abstract int getMaxSpeakerCount()

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.

int32 max_speaker_count = 3;

Returns
TypeDescription
int

The maxSpeakerCount.

getMinSpeakerCount()

public abstract int getMinSpeakerCount()

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.

int32 min_speaker_count = 2;

Returns
TypeDescription
int

The minSpeakerCount.

getSpeakerTag() (deprecated)

public abstract int getSpeakerTag()

Deprecated. google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=503

Output only. Unused.

int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The speakerTag.