Public Member Functions | Private Member Functions | Private Attributes | List of all members
picovoice_driver::PorcupineRecognizer Class Reference

#include <porcupine_recognizer.h>

Inheritance diagram for picovoice_driver::PorcupineRecognizer:
Inheritance graph
[legend]

Public Member Functions

void configure (const PorcupineRecognizerData::Parameters &parameters) 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 &parameters)=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_tporcupine_ = 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_
 

Detailed Description

Definition at line 62 of file porcupine_recognizer.h.

Constructor & Destructor Documentation

◆ ~PorcupineRecognizer()

picovoice_driver::PorcupineRecognizer::~PorcupineRecognizer ( )

Definition at line 38 of file porcupine_recognizer.cpp.

Member Function Documentation

◆ configure()

void picovoice_driver::PorcupineRecognizer::configure ( const PorcupineRecognizerData::Parameters parameters)
override

Definition at line 46 of file porcupine_recognizer.cpp.

◆ getRecordSettings()

Recognizer::RecordSettings picovoice_driver::PorcupineRecognizer::getRecordSettings ( )
overrideprivatevirtual

Implements picovoice_driver::Recognizer.

Definition at line 73 of file porcupine_recognizer.cpp.

◆ getResult()

PorcupineRecognizerData::Result picovoice_driver::PorcupineRecognizer::getResult ( )
overridevirtual

getResult Get the recognition result

This method should be called after the recognize() method

Returns
Result

Implements picovoice_driver::RecognizerT< PorcupineRecognizerData >.

Definition at line 68 of file porcupine_recognizer.cpp.

◆ recognizeInit()

void picovoice_driver::PorcupineRecognizer::recognizeInit ( )
overrideprivatevirtual

Implements picovoice_driver::Recognizer.

Definition at line 81 of file porcupine_recognizer.cpp.

◆ recognizeProcess()

bool picovoice_driver::PorcupineRecognizer::recognizeProcess ( int16_t *  frames)
overrideprivatevirtual

Implements picovoice_driver::Recognizer.

Definition at line 86 of file porcupine_recognizer.cpp.

Member Data Documentation

◆ keyword_names_

std::vector<std::string> picovoice_driver::PorcupineRecognizer::keyword_names_
private

Definition at line 76 of file porcupine_recognizer.h.

◆ keyword_paths_

std::vector<const char*> picovoice_driver::PorcupineRecognizer::keyword_paths_
private

Definition at line 77 of file porcupine_recognizer.h.

◆ keyword_sensitivities_

std::vector<float> picovoice_driver::PorcupineRecognizer::keyword_sensitivities_
private

Definition at line 78 of file porcupine_recognizer.h.

◆ porcupine_

pv_porcupine_t* picovoice_driver::PorcupineRecognizer::porcupine_ = NULL
private

Definition at line 81 of file porcupine_recognizer.h.

◆ result_

PorcupineRecognizerData::Result picovoice_driver::PorcupineRecognizer::result_
private

Definition at line 80 of file porcupine_recognizer.h.


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


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