The Recognizer class used for recognizing something out of audio data.
More...
#include <recognizer.h>
The Recognizer class used for recognizing something out of audio data.
Definition at line 45 of file recognizer.h.
◆ getRecordSettings()
virtual RecordSettings picovoice_driver::Recognizer::getRecordSettings |
( |
| ) |
|
|
protectedpure virtual |
◆ initialize()
void picovoice_driver::Recognizer::initialize |
( |
const std::string & |
record_directory, |
|
|
double |
record_timeout |
|
) |
| |
initialize Initialize the recognizer
- Parameters
-
record_directory | Record directory |
record_timeout | Timeout for recording when doing a recognize request |
Definition at line 157 of file recognizer.cpp.
◆ isPreempting()
bool picovoice_driver::Recognizer::isPreempting |
( |
| ) |
|
isPreempting Whether a preempt was requested
Definition at line 190 of file recognizer.cpp.
◆ isRecognizing()
bool picovoice_driver::Recognizer::isRecognizing |
( |
| ) |
|
isRecognizing Whether the recognize method is running
- Returns
- True if recognizing, False otherwise
Definition at line 199 of file recognizer.cpp.
◆ preempt()
void picovoice_driver::Recognizer::preempt |
( |
| ) |
|
◆ recognize()
void picovoice_driver::Recognizer::recognize |
( |
| ) |
|
recognize Recognize something from an audio input stream
Definition at line 164 of file recognizer.cpp.
◆ recognizeInit()
virtual void picovoice_driver::Recognizer::recognizeInit |
( |
| ) |
|
|
protectedpure virtual |
◆ recognizeProcess()
virtual bool picovoice_driver::Recognizer::recognizeProcess |
( |
int16_t * |
frames | ) |
|
|
protectedpure virtual |
◆ recognizeThread()
void picovoice_driver::Recognizer::recognizeThread |
( |
| ) |
|
|
protected |
◆ recognizeThreadCatchException()
void picovoice_driver::Recognizer::recognizeThreadCatchException |
( |
| ) |
|
|
protected |
◆ initialized_
bool picovoice_driver::Recognizer::initialized_ = false |
|
private |
◆ is_recognizing_
std::atomic<bool> picovoice_driver::Recognizer::is_recognizing_ = ATOMIC_VAR_INIT(false) |
|
private |
◆ preempt_requested_
std::atomic<bool> picovoice_driver::Recognizer::preempt_requested_ = ATOMIC_VAR_INIT(false) |
|
private |
◆ recognize_thread_
std::shared_ptr<std::thread> picovoice_driver::Recognizer::recognize_thread_ |
|
protected |
◆ recognize_thread_exception_string_
std::string picovoice_driver::Recognizer::recognize_thread_exception_string_ |
|
protected |
◆ record_directory_
std::string picovoice_driver::Recognizer::record_directory_ |
|
private |
◆ record_timeout_
double picovoice_driver::Recognizer::record_timeout_ |
|
private |
The documentation for this class was generated from the following files: