Classes | |
class | Builder |
class | MicrophoneReader |
Public Member Functions | |
void | delete () |
void | start () |
void | stop () throws PorcupineException |
Private Member Functions | |
PorcupineManager (Porcupine porcupine, PorcupineManagerCallback callback, PorcupineManagerErrorCallback errorCallback) | |
Private Attributes | |
final PorcupineManagerCallback | callback |
final PorcupineManagerErrorCallback | errorCallback |
final MicrophoneReader | microphoneReader |
final Porcupine | porcupine |
High-level Android binding for Porcupine wake word engine. It handles recording audio from microphone, processes it in real-time using Porcupine, and notifies the client when any of the given keywords are detected. For detailed information regarding Porcupine refer to $Porcupine.
Definition at line 35 of file PorcupineManager.java.
|
inlineprivate |
Private constructor.
porcupine | An instance of the Porcupine wake word engine. |
callback | A callback function that is invoked upon detection of any of the keywords. |
errorCallback | A callback that reports errors encountered while processing audio. |
Definition at line 48 of file PorcupineManager.java.
|
inline |
Releases resources acquired by Porcupine. It should be called when disposing the object.
Definition at line 62 of file PorcupineManager.java.
|
inline |
Starts recording audio from the microphone and monitors it for the utterances of the given set of keywords.
Definition at line 70 of file PorcupineManager.java.
|
inline |
Stops recording audio from the microphone.
PorcupineException | if the MicrophoneReader throws an exception while it's being stopped. |
Definition at line 80 of file PorcupineManager.java.
|
private |
Definition at line 38 of file PorcupineManager.java.
|
private |
Definition at line 39 of file PorcupineManager.java.
|
private |
Definition at line 36 of file PorcupineManager.java.
|
private |
Definition at line 37 of file PorcupineManager.java.