Classes | Functions | Variables
picovoice_driver Namespace Reference

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
 

Function Documentation

◆ defaultRecordDirectory()

std::string picovoice_driver::defaultRecordDirectory ( const std::string &  name)

defaultRecordDirectory Get the default record dir

Parameters
nameRecognizer name
Returns
Default record dir

Definition at line 32 of file ros_util.cpp.

◆ defaultResourceUrl()

std::string picovoice_driver::defaultResourceUrl ( )

defaultResourcePath Get the default resource path

Returns
Default resource path

Definition at line 27 of file ros_util.cpp.

◆ getEpochStamp()

std::string picovoice_driver::getEpochStamp ( )

Definition at line 32 of file recognizer.cpp.

◆ operator<<() [1/5]

std::ostream & picovoice_driver::operator<< ( std::ostream &  os,
const PorcupineRecognizerData::Parameters p 
)

Definition at line 25 of file porcupine_recognizer.cpp.

◆ operator<<() [2/5]

std::ostream & picovoice_driver::operator<< ( std::ostream &  os,
const PorcupineRecognizerData::Result r 
)

Definition at line 32 of file porcupine_recognizer.cpp.

◆ operator<<() [3/5]

std::ostream & picovoice_driver::operator<< ( std::ostream &  os,
const RhinoRecognizerData::Parameters p 
)

Definition at line 27 of file rhino_recognizer.cpp.

◆ operator<<() [4/5]

std::ostream & picovoice_driver::operator<< ( std::ostream &  os,
const RhinoRecognizerData::Result r 
)

Definition at line 45 of file rhino_recognizer.cpp.

◆ operator<<() [5/5]

std::ostream & picovoice_driver::operator<< ( std::ostream &  os,
const RhinoRecognizerData::Result::KeyValue kv 
)

Definition at line 39 of file rhino_recognizer.cpp.

◆ pathFromUrl()

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:

  • package://PACKAGE_NAME/relative/path/to/file.extension (relative to package)
  • file://absolute/path/to/file.extension (absolute file path)
  • file[.extension] (relative to specified directory if directory and extension specified)
Parameters
urlUrl
extensionExtension
directoryOptional directory
Returns
Path to file

Definition at line 49 of file ros_util.cpp.

◆ toString() [1/3]

template<typename T1 , typename T2 >
std::string picovoice_driver::toString ( const std::map< T1, T2 > &  v)

Definition at line 53 of file util.h.

◆ toString() [2/3]

template<typename T >
std::string picovoice_driver::toString ( const std::vector< T > &  v)

Definition at line 36 of file util.h.

◆ toString() [3/3]

template<typename T >
std::string picovoice_driver::toString ( const T &  v)

Definition at line 28 of file util.h.

◆ validatePathExistence()

void picovoice_driver::validatePathExistence ( const std::string &  path,
const std::string &  extension = "" 
)

Definition at line 37 of file ros_util.cpp.

◆ writeWav()

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.

Variable Documentation

◆ EXECUTE_PERIOD

constexpr double picovoice_driver::EXECUTE_PERIOD = 0.01
constexpr

Definition at line 30 of file recognizer_node.h.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20