Package ai.picovoice.porcupine
Class PorcupineManager
- java.lang.Object
-
- ai.picovoice.porcupine.PorcupineManager
-
public class PorcupineManager extends java.lang.ObjectHigh-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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPorcupineManager.BuilderBuilder for creating an instance of PorcupineManager with a mixture of default arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Releases resources acquired by Porcupine.voidstart()Starts recording audio from the microphone and monitors it for the utterances of the given set of keywords.voidstop()Stops recording audio from the microphone.
-
-
-
Method Detail
-
delete
public void delete()
Releases resources acquired by Porcupine. It should be called when disposing the object.
-
start
public void start()
Starts recording audio from the microphone and monitors it for the utterances of the given set of keywords.
-
stop
public void stop() throws PorcupineExceptionStops recording audio from the microphone.- Throws:
PorcupineException- if thePorcupineManager.MicrophoneReaderthrows an exception while it's being stopped.
-
-