public final class SpeechRecognitionAlternative
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 |
---|
SpeechRecognitionAlternative() |
Modifier and Type | Method and Description |
---|---|
SpeechRecognitionAlternative |
clone() |
java.lang.Float |
getConfidence()
The confidence estimate between 0.0 and 1.0.
|
java.lang.String |
getTranscript()
Transcript text representing the words that the user spoke.
|
java.util.List<WordInfo> |
getWords()
A list of word-specific information for each recognized word.
|
SpeechRecognitionAlternative |
set(java.lang.String fieldName,
java.lang.Object value) |
SpeechRecognitionAlternative |
setConfidence(java.lang.Float confidence)
The confidence estimate between 0.0 and 1.0.
|
SpeechRecognitionAlternative |
setTranscript(java.lang.String transcript)
Transcript text representing the words that the user spoke.
|
SpeechRecognitionAlternative |
setWords(java.util.List<WordInfo> words)
A list of word-specific information for each recognized word.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Float getConfidence()
null
for nonepublic SpeechRecognitionAlternative setConfidence(java.lang.Float confidence)
confidence
- confidence or null
for nonepublic java.lang.String getTranscript()
null
for nonepublic SpeechRecognitionAlternative setTranscript(java.lang.String transcript)
transcript
- transcript or null
for nonepublic java.util.List<WordInfo> getWords()
null
for nonepublic SpeechRecognitionAlternative setWords(java.util.List<WordInfo> words)
words
- words or null
for nonepublic SpeechRecognitionAlternative set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SpeechRecognitionAlternative clone()
clone
in class com.google.api.client.json.GenericJson