- 4.78.0 (latest)
- 4.77.0
- 4.75.0
- 4.73.0
- 4.71.0
- 4.70.0
- 4.69.0
- 4.68.0
- 4.67.0
- 4.65.0
- 4.63.0
- 4.62.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
public static final class SpeakerDiarizationConfig.Builder extends GeneratedMessage.Builder<SpeakerDiarizationConfig.Builder> implements SpeakerDiarizationConfigOrBuilderConfig to enable speaker diarization.
Protobuf type google.cloud.speech.v1.SpeakerDiarizationConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SpeakerDiarizationConfig.BuilderImplements
SpeakerDiarizationConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SpeakerDiarizationConfig build()| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig |
|
buildPartial()
public SpeakerDiarizationConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig |
|
clear()
public SpeakerDiarizationConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
|
clearEnableSpeakerDiarization()
public SpeakerDiarizationConfig.Builder clearEnableSpeakerDiarization()If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_label provided in the WordInfo.
bool enable_speaker_diarization = 1;
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |
clearMaxSpeakerCount()
public SpeakerDiarizationConfig.Builder clearMaxSpeakerCount()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 | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |
clearMinSpeakerCount()
public SpeakerDiarizationConfig.Builder clearMinSpeakerCount()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 | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |
clearSpeakerTag() (deprecated)
public SpeakerDiarizationConfig.Builder clearSpeakerTag()Deprecated. google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1/cloud_speech.proto;l=493
Output only. Unused.
int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SpeakerDiarizationConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnableSpeakerDiarization()
public boolean getEnableSpeakerDiarization()If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_label provided in the WordInfo.
bool enable_speaker_diarization = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableSpeakerDiarization. |
getMaxSpeakerCount()
public 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 | |
|---|---|
| Type | Description |
int |
The maxSpeakerCount. |
getMinSpeakerCount()
public 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 | |
|---|---|
| Type | Description |
int |
The minSpeakerCount. |
getSpeakerTag() (deprecated)
public int getSpeakerTag()Deprecated. google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1/cloud_speech.proto;l=493
Output only. Unused.
int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The speakerTag. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SpeakerDiarizationConfig other)
public SpeakerDiarizationConfig.Builder mergeFrom(SpeakerDiarizationConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
SpeakerDiarizationConfig |
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeakerDiarizationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SpeakerDiarizationConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
|
setEnableSpeakerDiarization(boolean value)
public SpeakerDiarizationConfig.Builder setEnableSpeakerDiarization(boolean value)If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_label provided in the WordInfo.
bool enable_speaker_diarization = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableSpeakerDiarization to set. |
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |
setMaxSpeakerCount(int value)
public SpeakerDiarizationConfig.Builder setMaxSpeakerCount(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe maxSpeakerCount to set. |
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |
setMinSpeakerCount(int value)
public SpeakerDiarizationConfig.Builder setMinSpeakerCount(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe minSpeakerCount to set. |
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |
setSpeakerTag(int value) (deprecated)
public SpeakerDiarizationConfig.Builder setSpeakerTag(int value)Deprecated. google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1/cloud_speech.proto;l=493
Output only. Unused.
int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe speakerTag to set. |
| Returns | |
|---|---|
| Type | Description |
SpeakerDiarizationConfig.Builder |
This builder for chaining. |