snowboy_ros
Public Member Functions | Private Attributes | List of all members
snowboy::SnowboyDetect Class Reference

#include <snowboy-detect.h>

Public Member Functions

void ApplyFrontend (const bool apply_frontend)
 
int BitsPerSample () const
 
std::string GetSensitivity () const
 
int NumChannels () const
 
int NumHotwords () const
 
bool Reset ()
 
int RunDetection (const float *const data, const int array_length)
 
int RunDetection (const int16_t *const data, const int array_length)
 
int RunDetection (const int32_t *const data, const int array_length)
 
int RunDetection (const std::string &data)
 
int SampleRate () const
 
void SetAudioGain (const float audio_gain)
 
void SetSensitivity (const std::string &sensitivity_str)
 
 SnowboyDetect (const std::string &resource_filename, const std::string &model_str)
 
void UpdateModel () const
 
 ~SnowboyDetect ()
 

Private Attributes

std::unique_ptr< PipelineDetect > detect_pipeline_
 
std::unique_ptr< WaveHeader > wave_header_
 

Detailed Description

Definition at line 22 of file snowboy-detect.h.

Constructor & Destructor Documentation

◆ SnowboyDetect()

snowboy::SnowboyDetect::SnowboyDetect ( const std::string resource_filename,
const std::string model_str 
)

◆ ~SnowboyDetect()

snowboy::SnowboyDetect::~SnowboyDetect ( )

Member Function Documentation

◆ ApplyFrontend()

void snowboy::SnowboyDetect::ApplyFrontend ( const bool  apply_frontend)

◆ BitsPerSample()

int snowboy::SnowboyDetect::BitsPerSample ( ) const

◆ GetSensitivity()

std::string snowboy::SnowboyDetect::GetSensitivity ( ) const

◆ NumChannels()

int snowboy::SnowboyDetect::NumChannels ( ) const

◆ NumHotwords()

int snowboy::SnowboyDetect::NumHotwords ( ) const

◆ Reset()

bool snowboy::SnowboyDetect::Reset ( )

◆ RunDetection() [1/4]

int snowboy::SnowboyDetect::RunDetection ( const float *const  data,
const int  array_length 
)

◆ RunDetection() [2/4]

int snowboy::SnowboyDetect::RunDetection ( const int16_t *const  data,
const int  array_length 
)

◆ RunDetection() [3/4]

int snowboy::SnowboyDetect::RunDetection ( const int32_t *const  data,
const int  array_length 
)

◆ RunDetection() [4/4]

int snowboy::SnowboyDetect::RunDetection ( const std::string data)

◆ SampleRate()

int snowboy::SnowboyDetect::SampleRate ( ) const

◆ SetAudioGain()

void snowboy::SnowboyDetect::SetAudioGain ( const float  audio_gain)

◆ SetSensitivity()

void snowboy::SnowboyDetect::SetSensitivity ( const std::string sensitivity_str)

◆ UpdateModel()

void snowboy::SnowboyDetect::UpdateModel ( ) const

Member Data Documentation

◆ detect_pipeline_

std::unique_ptr<PipelineDetect> snowboy::SnowboyDetect::detect_pipeline_
private

Definition at line 126 of file snowboy-detect.h.

◆ wave_header_

std::unique_ptr<WaveHeader> snowboy::SnowboyDetect::wave_header_
private

Definition at line 125 of file snowboy-detect.h.


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