public final class SpeechRecognitionResult
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 |
---|
SpeechRecognitionResult() |
Modifier and Type | Method and Description |
---|---|
SpeechRecognitionResult |
clone() |
java.util.List<SpeechRecognitionAlternative> |
getAlternatives()
May contain one or more recognition hypotheses (up to the maximum specified in
`max_alternatives`).
|
java.lang.Integer |
getChannelTag()
For multi-channel audio, this is the channel number corresponding to the recognized result for
the audio from that channel.
|
java.lang.String |
getLanguageCode()
Output only.
|
SpeechRecognitionResult |
set(java.lang.String fieldName,
java.lang.Object value) |
SpeechRecognitionResult |
setAlternatives(java.util.List<SpeechRecognitionAlternative> alternatives)
May contain one or more recognition hypotheses (up to the maximum specified in
`max_alternatives`).
|
SpeechRecognitionResult |
setChannelTag(java.lang.Integer channelTag)
For multi-channel audio, this is the channel number corresponding to the recognized result for
the audio from that channel.
|
SpeechRecognitionResult |
setLanguageCode(java.lang.String languageCode)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<SpeechRecognitionAlternative> getAlternatives()
null
for nonepublic SpeechRecognitionResult setAlternatives(java.util.List<SpeechRecognitionAlternative> alternatives)
alternatives
- alternatives or null
for nonepublic java.lang.Integer getChannelTag()
null
for nonepublic SpeechRecognitionResult setChannelTag(java.lang.Integer channelTag)
channelTag
- channelTag or null
for nonepublic java.lang.String getLanguageCode()
null
for nonepublic SpeechRecognitionResult setLanguageCode(java.lang.String languageCode)
languageCode
- languageCode or null
for nonepublic SpeechRecognitionResult set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SpeechRecognitionResult clone()
clone
in class com.google.api.client.json.GenericJson