Class espos_voice::WakeEngine¶
ClassList > espos_voice > WakeEngine
#include <espos_voice/wake_engine.h>
Public Types¶
| Type | Name |
|---|---|
| typedef std::function< void()> | DetectFn |
| typedef std::function< bool()> | MutedFn |
Public Functions¶
| Type | Name |
|---|---|
| WakeEngine (espos_audio::AudioDriver * audio) |
|
| void | clear_probe () |
| uint32_t | detections () const |
| bool | listening () const |
| void | pause () |
| uint32_t | pcm_age_ms () const |
| size_t | pcm_snapshot (int16_t * out, size_t max_samples) |
| void | resume () |
| bool | running () const |
| void | set_input_gain (int g) |
| void | set_muted_fn (MutedFn fn) |
| void | set_on_detect (DetectFn fn) |
| void | set_threshold (float t) |
| bool | start () |
| void | stop () |
| const char * | word () const |
| ~WakeEngine () |
Public Types Documentation¶
typedef DetectFn¶
typedef MutedFn¶
Public Functions Documentation¶
function WakeEngine¶
function clear_probe¶
function detections¶
function listening¶
function pause¶
function pcm_age_ms¶
function pcm_snapshot¶
function resume¶
function running¶
function set_input_gain¶
function set_muted_fn¶
function set_on_detect¶
function set_threshold¶
function start¶
function stop¶
function word¶
function ~WakeEngine¶
The documentation for this class was generated from the following file espos_voice/include/espos_voice/wake_engine.h