Classes | |
class | PorcupineNode |
class | PorcupineRecognizer |
struct | PorcupineRecognizerData |
class | Recognizer |
The Recognizer class used for recognizing something out of audio data. More... | |
struct | RecognizerData |
class | RecognizerNode |
class | RecognizerT |
class | RhinoNode |
class | RhinoRecognizer |
struct | RhinoRecognizerData |
Functions | |
std::string | defaultRecordDirectory (const std::string &name) |
defaultRecordDirectory Get the default record dir More... | |
std::string | defaultResourceUrl () |
defaultResourcePath Get the default resource path More... | |
std::string | getEpochStamp () |
std::ostream & | operator<< (std::ostream &os, const PorcupineRecognizerData::Parameters &p) |
std::ostream & | operator<< (std::ostream &os, const PorcupineRecognizerData::Result &r) |
std::ostream & | operator<< (std::ostream &os, const RhinoRecognizerData::Parameters &p) |
std::ostream & | operator<< (std::ostream &os, const RhinoRecognizerData::Result &r) |
std::ostream & | operator<< (std::ostream &os, const RhinoRecognizerData::Result::KeyValue &kv) |
std::string | pathFromUrl (const std::string &url, const std::string &extension="", const std::string &directory="") |
pathFromUrl Get a file path from an url More... | |
template<typename T1 , typename T2 > | |
std::string | toString (const std::map< T1, T2 > &v) |
template<typename T > | |
std::string | toString (const std::vector< T > &v) |
template<typename T > | |
std::string | toString (const T &v) |
void | validatePathExistence (const std::string &path, const std::string &extension="") |
void | writeWav (const std::vector< int16_t > &buffer, size_t buffer_size, size_t sample_rate, const std::string &directory) |
Variables | |
constexpr double | EXECUTE_PERIOD = 0.01 |
std::string picovoice_driver::defaultRecordDirectory | ( | const std::string & | name | ) |
defaultRecordDirectory Get the default record dir
name | Recognizer name |
Definition at line 32 of file ros_util.cpp.
std::string picovoice_driver::defaultResourceUrl | ( | ) |
defaultResourcePath Get the default resource path
Definition at line 27 of file ros_util.cpp.
std::string picovoice_driver::getEpochStamp | ( | ) |
Definition at line 32 of file recognizer.cpp.
std::ostream & picovoice_driver::operator<< | ( | std::ostream & | os, |
const PorcupineRecognizerData::Parameters & | p | ||
) |
Definition at line 25 of file porcupine_recognizer.cpp.
std::ostream & picovoice_driver::operator<< | ( | std::ostream & | os, |
const PorcupineRecognizerData::Result & | r | ||
) |
Definition at line 32 of file porcupine_recognizer.cpp.
std::ostream & picovoice_driver::operator<< | ( | std::ostream & | os, |
const RhinoRecognizerData::Parameters & | p | ||
) |
Definition at line 27 of file rhino_recognizer.cpp.
std::ostream & picovoice_driver::operator<< | ( | std::ostream & | os, |
const RhinoRecognizerData::Result & | r | ||
) |
Definition at line 45 of file rhino_recognizer.cpp.
std::ostream & picovoice_driver::operator<< | ( | std::ostream & | os, |
const RhinoRecognizerData::Result::KeyValue & | kv | ||
) |
Definition at line 39 of file rhino_recognizer.cpp.
std::string picovoice_driver::pathFromUrl | ( | const std::string & | url, |
const std::string & | extension = "" , |
||
const std::string & | directory = "" |
||
) |
pathFromUrl Get a file path from an url
URL options:
url | Url |
extension | Extension |
directory | Optional directory |
Definition at line 49 of file ros_util.cpp.
std::string picovoice_driver::toString | ( | const std::map< T1, T2 > & | v | ) |
std::string picovoice_driver::toString | ( | const std::vector< T > & | v | ) |
std::string picovoice_driver::toString | ( | const T & | v | ) |
void picovoice_driver::validatePathExistence | ( | const std::string & | path, |
const std::string & | extension = "" |
||
) |
Definition at line 37 of file ros_util.cpp.
void picovoice_driver::writeWav | ( | const std::vector< int16_t > & | buffer, |
size_t | buffer_size, | ||
size_t | sample_rate, | ||
const std::string & | directory | ||
) |
Definition at line 41 of file recognizer.cpp.
|
constexpr |
Definition at line 30 of file recognizer_node.h.