Class WordAlternativeResults
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.speech_to_text.v1.model.WordAlternativeResults
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class WordAlternativeResults
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Information about alternative hypotheses for words from speech recognition results.
-
Constructor Summary
Constructors Constructor Description WordAlternativeResults()
-
Method Summary
Modifier and Type Method Description List<WordAlternativeResult>
getAlternatives()
Gets the alternatives.Double
getEndTime()
Gets the endTime.Double
getStartTime()
Gets the startTime.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
WordAlternativeResults
public WordAlternativeResults()
-
-
Method Details
-
getStartTime
Gets the startTime.The start time in seconds of the word from the input audio that corresponds to the word alternatives.
- Returns:
- the startTime
-
getEndTime
Gets the endTime.The end time in seconds of the word from the input audio that corresponds to the word alternatives.
- Returns:
- the endTime
-
getAlternatives
Gets the alternatives.An array of alternative hypotheses for a word from the input audio.
- Returns:
- the alternatives
-