public interface SpeechRecognizer
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCurrentlyRecognizing()
Checks whether the recognizer is currently recognizing
|
void |
recognizeContinuously(Consumer<String> resultHandler)
Start continuous recognition
|
void |
recognizeOnce(Consumer<String> resultHandler)
Request a single speech recognition
|
void |
stopContinuousRecognition()
Stops continuous recognition
|
void recognizeOnce(Consumer<String> resultHandler)
resultHandler - The handler for the result of the recognition.IllegalStateException - If already recognizing.void recognizeContinuously(Consumer<String> resultHandler)
resultHandler - The handler for the result of the recognition.IllegalStateException - If already recognizing.void stopContinuousRecognition()
IllegalStateException - If not recognizing continuously.boolean isCurrentlyRecognizing()
Copyright © 2018. All rights reserved.