public class SpeechAlternative extends GenericModel
| Constructor and Description |
|---|
SpeechAlternative() |
| Modifier and Type | Method and Description |
|---|---|
Double |
getConfidence()
Gets the confidence.
|
List<SpeechTimestamp> |
getTimestamps()
Gets the timestamps.
|
String |
getTranscript()
Gets the transcript.
|
List<SpeechWordConfidence> |
getWordConfidences()
Gets the word confidences.
|
void |
setConfidence(Double confidence)
Sets the confidence.
|
void |
setTimestamps(List<SpeechTimestamp> timestamps)
Sets the timestamps.
|
void |
setTranscript(String transcript)
Sets the transcript.
|
void |
setWordConfidences(List<SpeechWordConfidence> wordConfidences)
Sets the word confidences.
|
SpeechAlternative |
withTimestamps(List<SpeechTimestamp> timestamps)
With timestamps.
|
SpeechAlternative |
withWordConfidences(List<SpeechWordConfidence> wordConfidences)
With word confidences.
|
equals, hashCode, toStringpublic String getTranscript()
public void setTranscript(String transcript)
transcript - The transcriptpublic Double getConfidence()
public void setConfidence(Double confidence)
confidence - The confidencepublic List<SpeechTimestamp> getTimestamps()
public void setTimestamps(List<SpeechTimestamp> timestamps)
timestamps - The timestampspublic SpeechAlternative withTimestamps(List<SpeechTimestamp> timestamps)
timestamps - the timestampspublic List<SpeechWordConfidence> getWordConfidences()
public void setWordConfidences(List<SpeechWordConfidence> wordConfidences)
wordConfidences - The wordConfidencespublic SpeechAlternative withWordConfidences(List<SpeechWordConfidence> wordConfidences)
wordConfidences - the wordConfidencesCopyright © 2015–2016. All rights reserved.