snowboy_ros
include
snowboy_ros
hotword_detector.h
Go to the documentation of this file.
1
#ifndef SNOWBOY_ROS_HOTWORD_DETECTOR_H_
2
#define SNOWBOY_ROS_HOTWORD_DETECTOR_H_
3
4
#include <
snowboy/include/snowboy-detect.h
>
5
6
namespace
snowboy_ros
7
{
8
12
class
HotwordDetector
13
{
14
15
public
:
16
17
HotwordDetector
();
18
~HotwordDetector
();
19
25
void
initialize
(
const
char
* resource_filename,
const
char
* model_filename);
26
33
bool
configure
(
double
sensitivity
,
double
audio_gain);
34
41
int
runDetection
(
const
int16_t*
const
data
,
const
int
array_length);
42
43
private
:
44
48
snowboy::SnowboyDetect
*
detector_
;
49
};
50
51
}
// namespace snowboy_ros
52
53
#endif // SNOWBOY_ROS_HOTWORD_DETECTOR_H_
snowboy-detect.h
snowboy_ros::HotwordDetector
The HotwordDetector class wraps Snowboy detect so we can use C++ 11.
Definition:
hotword_detector.h:12
snowboy_ros::HotwordDetector::configure
bool configure(double sensitivity, double audio_gain)
configure Configure the detector on runtime
Definition:
hotword_detector.cpp:29
snowboy_ros::HotwordDetector::initialize
void initialize(const char *resource_filename, const char *model_filename)
initialize Initializes the Snowbody
Definition:
hotword_detector.cpp:14
snowboy_ros
Definition:
hotword_detector.h:6
training_service.data
dictionary data
END OF MODIFY ##################.
Definition:
training_service.py:31
demo2.sensitivity
list sensitivity
Definition:
demo2.py:29
snowboy_ros::HotwordDetector::~HotwordDetector
~HotwordDetector()
Definition:
hotword_detector.cpp:45
snowboy_ros::HotwordDetector::detector_
snowboy::SnowboyDetect * detector_
detector_ Instance of Snowboy detect
Definition:
hotword_detector.h:48
snowboy::SnowboyDetect
Definition:
snowboy-detect.h:22
snowboy_ros::HotwordDetector::runDetection
int runDetection(const int16_t *const data, const int array_length)
runDetection Runs hotword detection of Snowboy, see Snowboy API for more docs
Definition:
hotword_detector.cpp:53
snowboy_ros::HotwordDetector::HotwordDetector
HotwordDetector()
Definition:
hotword_detector.cpp:10
Generated on Fri Apr 18 2025 04:36:57 for snowboy_ros by
1.8.17