Public Member Functions | List of all members
picovoice_driver::RecognizerT< RecognizerDataType > Class Template Referenceabstract

#include <recognizer.h>

Inheritance diagram for picovoice_driver::RecognizerT< RecognizerDataType >:
Inheritance graph
[legend]

Public Member Functions

virtual void configure (const typename RecognizerDataType::Parameters &parameters)=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_
 

Detailed Description

template<typename RecognizerDataType>
class picovoice_driver::RecognizerT< RecognizerDataType >

Definition at line 101 of file recognizer.h.

Member Function Documentation

◆ configure()

template<typename RecognizerDataType >
virtual void picovoice_driver::RecognizerT< RecognizerDataType >::configure ( const typename RecognizerDataType::Parameters &  parameters)
pure virtual

configure Configure the recognizer

This method should be called before calling the recognize() method

Parameters
parametersParameters

◆ getResult()

template<typename RecognizerDataType >
virtual RecognizerDataType::Result picovoice_driver::RecognizerT< RecognizerDataType >::getResult ( )
pure virtual

getResult Get the recognition result

This method should be called after the recognize() method

Returns
Result

Implemented in picovoice_driver::RhinoRecognizer, and picovoice_driver::PorcupineRecognizer.


The documentation for this class was generated from the following file:


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20