public class SpeechRecognizerBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
FRAME_LENGTH_MILLISECONDS |
protected static int |
RECORD_FRAMES |
protected int |
RESERVED_INPUT_LENGTH_MILLISECONDS |
protected static java.lang.String |
SDK_TYPE |
protected int |
VAD_TAIL_SILENCE_LEVEL |
| Constructor and Description |
|---|
SpeechRecognizerBase() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getFrameSize() |
protected int |
getFrequencyToGettingResult() |
protected int |
getMinFrequencyToGettingResult() |
protected int |
getMinUploadAudioLengthMilliseconds() |
protected int |
getRecordDataSize() |
protected int |
getUploadAudioLengthMilliseconds() |
protected int |
getVADEndMilliseconds() |
protected void |
setFrameSize(int size) |
protected void |
setFrequencyToGettingResult(int frequency) |
void |
setLengthOfVADEnd(int milliseconds)
Set length of end time of the VAD in milliseconds to stop voice recording automatically.
|
protected void |
setMinFrequencyToGettingResult(int frequency) |
protected void |
setMinUploadAudioLengthMilliseconds(int milliseconds) |
protected void |
setRecordDataSize(int size) |
void |
setResultQueryFrequency(int milliseconds)
Set the frequency in milliseconds of the recognition result query,
then the recognizer client will query the result once every milliseconds you set.
|
void |
setSpeechUploadLength(int milliseconds)
Set audio length in milliseconds to upload,
then the recognizer client will upload parts of audio once every milliseconds you set.
|
protected void |
setUploadAudioLengthMilliseconds(int milliseconds) |
protected void |
setVADEndMilliseconds(int milliseconds) |
protected static final java.lang.String SDK_TYPE
protected static final int RECORD_FRAMES
protected final int FRAME_LENGTH_MILLISECONDS
protected final int RESERVED_INPUT_LENGTH_MILLISECONDS
protected final int VAD_TAIL_SILENCE_LEVEL
protected int getFrameSize()
protected void setFrameSize(int size)
protected int getRecordDataSize()
protected void setRecordDataSize(int size)
protected int getMinUploadAudioLengthMilliseconds()
protected void setMinUploadAudioLengthMilliseconds(int milliseconds)
protected int getUploadAudioLengthMilliseconds()
protected void setUploadAudioLengthMilliseconds(int milliseconds)
protected int getMinFrequencyToGettingResult()
protected void setMinFrequencyToGettingResult(int frequency)
protected int getFrequencyToGettingResult()
protected void setFrequencyToGettingResult(int frequency)
protected int getVADEndMilliseconds()
protected void setVADEndMilliseconds(int milliseconds)
public void setSpeechUploadLength(int milliseconds)
milliseconds - - How long of the audio in milliseconds do you want to upload once.public void setResultQueryFrequency(int milliseconds)
milliseconds - - How long in milliseconds do you want to query once.public void setLengthOfVADEnd(int milliseconds)
milliseconds - - length of end time in milliseconds for the speech input idle.