public class RecognizeOptions extends Object
SpeechToText.recognize(java.io.File, String, RecognizeOptions) method.| Constructor and Description |
|---|
RecognizeOptions() |
| Modifier and Type | Method and Description |
|---|---|
RecognizeOptions |
continuous(Boolean continuous)
If true, multiple final results that represent multiple consecutive phrases separated by pauses
are returned.
|
Boolean |
getContinuous()
Gets the continuous.
|
Integer |
getInactivityTimeout()
Gets the inactivity timeout.
|
Integer |
getMaxAlternatives()
Gets the max alternatives.
|
String |
getModel()
Gets the model.
|
String |
getSessionId()
Gets the session id.
|
Boolean |
getTimestamps()
Gets the timestamps.
|
Boolean |
getWordConfidence()
Gets the word confidence.
|
RecognizeOptions |
inactivityTimeout(Integer inactivityTimeout)
Inactivity timeout.
|
RecognizeOptions |
maxAlternatives(Integer maxAlternatives)
Maximum number of alternative transcripts returned
|
RecognizeOptions |
model(String model)
Sets the model name used for the recognition
|
RecognizeOptions |
session(SpeechSession session)
Sets the session id.
|
RecognizeOptions |
sessionId(String sessionId)
Sets session id.
|
RecognizeOptions |
timestamps(Boolean timestamps)
If true, time alignment for each word is returned
|
RecognizeOptions |
wordConfidence(Boolean wordConfidence)
If true, confidence measure per word is returned if available
|
public RecognizeOptions continuous(Boolean continuous)
continuous - the continuouspublic Boolean getContinuous()
public Integer getInactivityTimeout()
public Integer getMaxAlternatives()
public String getModel()
public String getSessionId()
public Boolean getTimestamps()
public Boolean getWordConfidence()
public RecognizeOptions inactivityTimeout(Integer inactivityTimeout)
inactivityTimeout - the inactivity timeoutpublic RecognizeOptions maxAlternatives(Integer maxAlternatives)
maxAlternatives - the max alternativespublic RecognizeOptions model(String model)
model - the modelpublic RecognizeOptions sessionId(String sessionId)
sessionId - the session idpublic RecognizeOptions session(SpeechSession session)
session - the SpeechSessionpublic RecognizeOptions timestamps(Boolean timestamps)
timestamps - the timestampspublic RecognizeOptions wordConfidence(Boolean wordConfidence)
wordConfidence - the word confidenceCopyright © 2015–2016. All rights reserved.