#include <porcupine_recognizer.h>
Public Member Functions | |
void | configure (const PorcupineRecognizerData::Parameters ¶meters) override |
PorcupineRecognizerData::Result | getResult () override |
getResult Get the recognition result More... | |
~PorcupineRecognizer () | |
Public Member Functions inherited from picovoice_driver::RecognizerT< PorcupineRecognizerData > | |
virtual void | configure (const typename PorcupineRecognizerData ::Parameters ¶meters)=0 |
configure Configure the recognizer More... | |
Public Member Functions inherited from picovoice_driver::Recognizer | |
void | initialize (const std::string &record_directory, double record_timeout) |
initialize Initialize the recognizer More... | |
bool | isPreempting () |
isPreempting Whether a preempt was requested More... | |
bool | isRecognizing () |
isRecognizing Whether the recognize method is running More... | |
void | preempt () |
preempt Preempt the recognition More... | |
void | recognize () |
recognize Recognize something from an audio input stream More... | |
Private Member Functions | |
RecordSettings | getRecordSettings () override |
void | recognizeInit () override |
bool | recognizeProcess (int16_t *frames) override |
Private Attributes | |
std::vector< std::string > | keyword_names_ |
std::vector< const char * > | keyword_paths_ |
std::vector< float > | keyword_sensitivities_ |
pv_porcupine_t * | porcupine_ = NULL |
PorcupineRecognizerData::Result | result_ |
Additional Inherited Members | |
Protected Member Functions inherited from picovoice_driver::Recognizer | |
void | recognizeThread () |
void | recognizeThreadCatchException () |
Protected Attributes inherited from picovoice_driver::Recognizer | |
std::shared_ptr< std::thread > | recognize_thread_ |
std::string | recognize_thread_exception_string_ |
Definition at line 62 of file porcupine_recognizer.h.
picovoice_driver::PorcupineRecognizer::~PorcupineRecognizer | ( | ) |
Definition at line 38 of file porcupine_recognizer.cpp.
|
override |
Definition at line 46 of file porcupine_recognizer.cpp.
|
overrideprivatevirtual |
Implements picovoice_driver::Recognizer.
Definition at line 73 of file porcupine_recognizer.cpp.
|
overridevirtual |
getResult Get the recognition result
This method should be called after the recognize() method
Implements picovoice_driver::RecognizerT< PorcupineRecognizerData >.
Definition at line 68 of file porcupine_recognizer.cpp.
|
overrideprivatevirtual |
Implements picovoice_driver::Recognizer.
Definition at line 81 of file porcupine_recognizer.cpp.
|
overrideprivatevirtual |
Implements picovoice_driver::Recognizer.
Definition at line 86 of file porcupine_recognizer.cpp.
|
private |
Definition at line 76 of file porcupine_recognizer.h.
|
private |
Definition at line 77 of file porcupine_recognizer.h.
|
private |
Definition at line 78 of file porcupine_recognizer.h.
|
private |
Definition at line 81 of file porcupine_recognizer.h.
|
private |
Definition at line 80 of file porcupine_recognizer.h.