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.
|
equals, hashCode, toString
public Double getConfidence()
public List<SpeechTimestamp> getTimestamps()
public String getTranscript()
public List<SpeechWordConfidence> getWordConfidences()
public void setConfidence(Double confidence)
confidence
- The confidencepublic void setTimestamps(List<SpeechTimestamp> timestamps)
timestamps
- The timestampspublic void setTranscript(String transcript)
transcript
- The transcriptpublic void setWordConfidences(List<SpeechWordConfidence> wordConfidences)
wordConfidences
- The wordConfidencesCopyright © 2015–2016 IBM Watson. All rights reserved.