#include <recognizer.h>
Public Member Functions | |
virtual void | configure (const typename RecognizerDataType::Parameters ¶meters)=0 |
configure Configure the recognizer More... | |
virtual RecognizerDataType::Result | getResult ()=0 |
getResult Get the recognition result 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from picovoice_driver::Recognizer | |
virtual RecordSettings | getRecordSettings ()=0 |
virtual void | recognizeInit ()=0 |
virtual bool | recognizeProcess (int16_t *frames)=0 |
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 101 of file recognizer.h.
|
pure virtual |
configure Configure the recognizer
This method should be called before calling the recognize() method
parameters | Parameters |
|
pure virtual |
getResult Get the recognition result
This method should be called after the recognize() method
Implemented in picovoice_driver::RhinoRecognizer, and picovoice_driver::PorcupineRecognizer.