public class VADController extends Object
Modifier and Type | Method and Description |
---|---|
static VADController |
getInstance()
Returns VADController instance
|
void |
pause()
Pauses vad controller.
|
void |
resume()
Resumes vad controller.
|
void |
setTimeout(int timeout)
Set vad off time
|
void |
setVADControllerListener(VADControllerListener listener)
Register a callback to be invoked when native vad engine is in begin or
end state.
|
void |
start()
Starts vad controller.
|
void |
stop()
Stops vad controller.
|
public static VADController getInstance()
public void setTimeout(int timeout)
timeout
- vad off time in millisecondspublic void setVADControllerListener(VADControllerListener listener)
listener
- the callback that will be run.public void start() throws IOException
IOException
public void pause() throws IOException
IOException
public void resume() throws IOException
IOException
public void stop() throws IOException
IOException