public class SpeechRecognitionResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
SpeechRecognitionResult.EndOfUtterance
If the `split_transcript_at_phrase_end` parameter is `true`, describes the reason for the split:
* `end_of_data` - The end of the input audio stream.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<SpeechRecognitionAlternative> |
alternatives |
protected java.lang.String |
endOfUtterance |
protected java.util.Map<java.lang.String,java.util.List<KeywordResult>> |
keywordsResult |
protected java.util.List<WordAlternativeResults> |
wordAlternatives |
protected java.lang.Boolean |
xFinal |
Constructor and Description |
---|
SpeechRecognitionResult() |
Modifier and Type | Method and Description |
---|---|
java.util.List<SpeechRecognitionAlternative> |
getAlternatives()
Gets the alternatives.
|
java.lang.String |
getEndOfUtterance()
Gets the endOfUtterance.
|
java.util.Map<java.lang.String,java.util.List<KeywordResult>> |
getKeywordsResult()
Gets the keywordsResult.
|
java.util.List<WordAlternativeResults> |
getWordAlternatives()
Gets the wordAlternatives.
|
java.lang.Boolean |
isXFinal()
Gets the xFinal.
|
@SerializedName(value="final") protected java.lang.Boolean xFinal
protected java.util.List<SpeechRecognitionAlternative> alternatives
@SerializedName(value="keywords_result") protected java.util.Map<java.lang.String,java.util.List<KeywordResult>> keywordsResult
@SerializedName(value="word_alternatives") protected java.util.List<WordAlternativeResults> wordAlternatives
@SerializedName(value="end_of_utterance") protected java.lang.String endOfUtterance
public java.lang.Boolean isXFinal()
public java.util.List<SpeechRecognitionAlternative> getAlternatives()
public java.util.Map<java.lang.String,java.util.List<KeywordResult>> getKeywordsResult()
public java.util.List<WordAlternativeResults> getWordAlternatives()
public java.lang.String getEndOfUtterance()