EMIPLIB
|
Compress audio using the Speex codec. More...
#include <mipspeexencoder.h>
Public Types | |
enum | SpeexBandWidth { NarrowBand, WideBand, UltraWideBand } |
Used to select speex encoding type. More... | |
Public Member Functions | |
bool | init (SpeexBandWidth bandWidth=WideBand, int quality=10, int complexity=1, bool vad=true, bool dtx=false) |
Initialize the Speex encoding component. | |
bool | destroy () |
Clean up the Speex encoder. |
Using this component, floating point mono raw audio messages and raw 16 bit raw audio messages can be compressed using the Speex codec. Messages generated by this component are encoded audio messages with subtype MIPENCODEDAUDIOMESSAGE_TYPE_SPEEX.
bool MIPSpeexEncoder::destroy | ( | ) |
bool MIPSpeexEncoder::init | ( | SpeexBandWidth | bandWidth = WideBand , |
int | quality = 10 , |
||
int | complexity = 1 , |
||
bool | vad = true , |
||
bool | dtx = false |
||
) |
This function initializes the Speex encoding component.
bandWidth | Selects the encoding type. |
quality | Speex quality parameter. |
complexity | Speex complexity parameter. |
vad | Enable or disable voice activity detection. |
dtx | Enable or disable discontinuous transmission. |