Project

General

Profile

Template
Buffer Class Reference

#include <reco_sphinx.h>

Public Member Functions

 Buffer (size_t bufferSize)
 
 ~Buffer ()
 
void fill (const char *newData, size_t newDataSize)
 
void consume (size_t consumeSize)
 
void getInt16 (int16_t *int16Array, size_t length)
 
const char * getData () const
 
size_t getCount () const
 
 Buffer (size_t bufferSize)
 
 ~Buffer ()
 
void fill (const char *newData, size_t newDataSize)
 
void consume (size_t consumeSize)
 
void consume_safe (size_t consumeSize)
 
size_t getBufferCopy (char *buffer, size_t length)
 
void getInt16 (int16_t *int16Array, size_t length)
 
const char * getData () const
 
size_t getCount () const
 
float calculateAudioLevel (size_t length)
 
void RemoveNoise (size_t length, float noiseLevel, float reductionFactor)
 
size_t ProcessBuffer (char *buffer, size_t length, float threshold)
 

Detailed Description

Definition at line 51 of file reco_sphinx.h.

Constructor & Destructor Documentation

◆ Buffer() [1/2]

Buffer::Buffer ( size_t  bufferSize)
inline

Definition at line 53 of file reco_sphinx.h.

◆ ~Buffer() [1/2]

Buffer::~Buffer ( )
inline

Definition at line 55 of file reco_sphinx.h.

◆ Buffer() [2/2]

Buffer::Buffer ( size_t  bufferSize)
inline

Definition at line 52 of file reco_vosk.h.

◆ ~Buffer() [2/2]

Buffer::~Buffer ( )
inline

Definition at line 54 of file reco_vosk.h.

Member Function Documentation

◆ calculateAudioLevel()

float Buffer::calculateAudioLevel ( size_t  length)
inline

Definition at line 130 of file reco_vosk.h.

◆ consume() [1/2]

void Buffer::consume ( size_t  consumeSize)
inline

Definition at line 72 of file reco_sphinx.h.

◆ consume() [2/2]

void Buffer::consume ( size_t  consumeSize)
inline

Definition at line 74 of file reco_vosk.h.

◆ consume_safe()

void Buffer::consume_safe ( size_t  consumeSize)
inline

Definition at line 87 of file reco_vosk.h.

◆ fill() [1/2]

void Buffer::fill ( const char *  newData,
size_t  newDataSize 
)
inline

Definition at line 60 of file reco_sphinx.h.

◆ fill() [2/2]

void Buffer::fill ( const char *  newData,
size_t  newDataSize 
)
inline

Definition at line 59 of file reco_vosk.h.

◆ getBufferCopy()

size_t Buffer::getBufferCopy ( char *  buffer,
size_t  length 
)
inline

Definition at line 101 of file reco_vosk.h.

◆ getCount() [1/2]

size_t Buffer::getCount ( ) const
inline

Definition at line 100 of file reco_sphinx.h.

◆ getCount() [2/2]

size_t Buffer::getCount ( ) const
inline

Definition at line 125 of file reco_vosk.h.

◆ getData() [1/2]

const char * Buffer::getData ( ) const
inline

Definition at line 95 of file reco_sphinx.h.

◆ getData() [2/2]

const char * Buffer::getData ( ) const
inline

Definition at line 120 of file reco_vosk.h.

◆ getInt16() [1/2]

void Buffer::getInt16 ( int16_t *  int16Array,
size_t  length 
)
inline

Definition at line 85 of file reco_sphinx.h.

◆ getInt16() [2/2]

void Buffer::getInt16 ( int16_t *  int16Array,
size_t  length 
)
inline

Definition at line 110 of file reco_vosk.h.

◆ ProcessBuffer()

size_t Buffer::ProcessBuffer ( char *  buffer,
size_t  length,
float  threshold 
)
inline

Definition at line 173 of file reco_vosk.h.

◆ RemoveNoise()

void Buffer::RemoveNoise ( size_t  length,
float  noiseLevel,
float  reductionFactor 
)
inline

Definition at line 150 of file reco_vosk.h.


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