public interface AsrDriver
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,String> parameters)
Configures the driver.
|
void |
finishRecognizing()
Stops the speech recognition process.
|
int |
getResponseTimeoutInMilliseconds()
Gets the amount of time the driver will wait for the provider to reply with a transcription.
|
void |
setListener(AsrDriverEventListener listener)
Attaches a listener to the driver.
|
void |
startRecognizing(String lang,
List<String> hints)
Starts the speech recognition process.
|
void |
write(byte[] data)
Provide audio to the ASR engine.
|
void |
write(byte[] data,
int offset,
int len)
Provide audio to the ASR engine.
|
void configure(Map<String,String> parameters)
parameters - The set of configuration parameters.void startRecognizing(String lang, List<String> hints)
lang - The language code as defined by BCP-47.hints - A list of words and setences to help improve the detection accuracy.void finishRecognizing()
void write(byte[] data,
int offset,
int len)
data - The audio payload.offset - The payload offset.len - The length of data to be passed.void write(byte[] data)
data - The audio payload.void setListener(AsrDriverEventListener listener)
listener - The listener to be attached to the driver.int getResponseTimeoutInMilliseconds()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.