Go to the documentation of this file.
53 void initialize(
const std::string& record_directory,
double record_timeout);
100 template <
typename RecognizerDataType>
111 virtual void configure(
const typename RecognizerDataType::Parameters& parameters) = 0;
120 virtual typename RecognizerDataType::Result
getResult() = 0;
virtual void configure(const typename RecognizerDataType::Parameters ¶meters)=0
configure Configure the recognizer
void recognizeThreadCatchException()
bool isPreempting()
isPreempting Whether a preempt was requested
std::string recognize_thread_exception_string_
std::string model_path_
model_path_ Path to the Picovoice model parameters
std::shared_ptr< std::thread > recognize_thread_
std::atomic< bool > is_recognizing_
virtual RecordSettings getRecordSettings()=0
The Recognizer class used for recognizing something out of audio data.
virtual bool recognizeProcess(int16_t *frames)=0
bool isRecognizing()
isRecognizing Whether the recognize method is running
void preempt()
preempt Preempt the recognition
std::atomic< bool > preempt_requested_
void recognize()
recognize Recognize something from an audio input stream
std::string record_directory_
virtual RecognizerDataType::Result getResult()=0
getResult Get the recognition result
virtual void recognizeInit()=0
std::string access_key_
access_key_ Picovoice access key
void initialize(const std::string &record_directory, double record_timeout)
initialize Initialize the recognizer