snowboy_ros
|
The HotwordDetector class wraps Snowboy detect so we can use C++ 11. More...
#include <hotword_detector.h>
Public Member Functions | |
bool | configure (double sensitivity, double audio_gain) |
configure Configure the detector on runtime More... | |
HotwordDetector () | |
void | initialize (const char *resource_filename, const char *model_filename) |
initialize Initializes the Snowbody More... | |
int | runDetection (const int16_t *const data, const int array_length) |
runDetection Runs hotword detection of Snowboy, see Snowboy API for more docs More... | |
~HotwordDetector () | |
Private Attributes | |
snowboy::SnowboyDetect * | detector_ |
detector_ Instance of Snowboy detect More... | |
The HotwordDetector class wraps Snowboy detect so we can use C++ 11.
Definition at line 12 of file hotword_detector.h.
snowboy_ros::HotwordDetector::HotwordDetector | ( | ) |
Definition at line 10 of file hotword_detector.cpp.
snowboy_ros::HotwordDetector::~HotwordDetector | ( | ) |
Definition at line 45 of file hotword_detector.cpp.
bool snowboy_ros::HotwordDetector::configure | ( | double | sensitivity, |
double | audio_gain | ||
) |
configure Configure the detector on runtime
sensitivity | Hotword sensitivity |
audio_gain | Fixed gain to the input audio. |
Definition at line 29 of file hotword_detector.cpp.
void snowboy_ros::HotwordDetector::initialize | ( | const char * | resource_filename, |
const char * | model_filename | ||
) |
initialize Initializes the Snowbody
[in] | resource_filename | Filename of resource file |
[in] | model_filename | A string of multiple hotword models |
Definition at line 14 of file hotword_detector.cpp.
int snowboy_ros::HotwordDetector::runDetection | ( | const int16_t *const | data, |
const int | array_length | ||
) |
runDetection Runs hotword detection of Snowboy, see Snowboy API for more docs
data | Small chunk of data to be detected |
array_length | Length of the data array. |
Definition at line 53 of file hotword_detector.cpp.
|
private |
detector_ Instance of Snowboy detect
Definition at line 48 of file hotword_detector.h.