public final class SpeakerDiarizationConfig
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Speech-to-Text API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
SpeakerDiarizationConfig() |
| Modifier and Type | Method and Description |
|---|---|
SpeakerDiarizationConfig |
clone() |
java.lang.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.
|
java.lang.Integer |
getMaxSpeakerCount()
Maximum number of speakers in the conversation.
|
java.lang.Integer |
getMinSpeakerCount()
Minimum number of speakers in the conversation.
|
java.lang.Integer |
getSpeakerTag()
Output only.
|
SpeakerDiarizationConfig |
set(java.lang.String fieldName,
java.lang.Object value) |
SpeakerDiarizationConfig |
setEnableSpeakerDiarization(java.lang.Boolean enableSpeakerDiarization)
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.
|
SpeakerDiarizationConfig |
setMaxSpeakerCount(java.lang.Integer maxSpeakerCount)
Maximum number of speakers in the conversation.
|
SpeakerDiarizationConfig |
setMinSpeakerCount(java.lang.Integer minSpeakerCount)
Minimum number of speakers in the conversation.
|
SpeakerDiarizationConfig |
setSpeakerTag(java.lang.Integer speakerTag)
Output only.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Boolean getEnableSpeakerDiarization()
null for nonepublic SpeakerDiarizationConfig setEnableSpeakerDiarization(java.lang.Boolean enableSpeakerDiarization)
enableSpeakerDiarization - enableSpeakerDiarization or null for nonepublic java.lang.Integer getMaxSpeakerCount()
null for nonepublic SpeakerDiarizationConfig setMaxSpeakerCount(java.lang.Integer maxSpeakerCount)
maxSpeakerCount - maxSpeakerCount or null for nonepublic java.lang.Integer getMinSpeakerCount()
null for nonepublic SpeakerDiarizationConfig setMinSpeakerCount(java.lang.Integer minSpeakerCount)
minSpeakerCount - minSpeakerCount or null for nonepublic java.lang.Integer getSpeakerTag()
null for nonepublic SpeakerDiarizationConfig setSpeakerTag(java.lang.Integer speakerTag)
speakerTag - speakerTag or null for nonepublic SpeakerDiarizationConfig set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic SpeakerDiarizationConfig clone()
clone in class com.google.api.client.json.GenericJson