#include <online-speex-wrapper.h>
Public Member Functions | |
OnlineSpeexDecoder (const SpeexOptions &config) | |
~OnlineSpeexDecoder () | |
void | AcceptSpeexBits (const std::vector< char > &spx_enc_bits) |
void | GetWaveform (Vector< BaseFloat > *waveform) |
Private Member Functions | |
void | Decode (const std::vector< char > &speex_char_bits, Vector< BaseFloat > *decoded_wav) |
Private Attributes | |
int32 | speex_frame_size_ |
int32 | speex_decoded_frame_size_ |
SPEEXBITS | speex_bits_ |
Vector< BaseFloat > | waveform_ |
std::vector< char > | speex_bits_remainder_ |
Definition at line 110 of file online-speex-wrapper.h.
OnlineSpeexDecoder | ( | const SpeexOptions & | config | ) |
Definition at line 156 of file online-speex-wrapper.cc.
References KALDI_ERR, SpeexOptions::sample_rate, OnlineSpeexEncoder::speex_bits_, SpeexOptions::speex_bits_frame_size, OnlineSpeexEncoder::speex_frame_size_, SpeexOptions::speex_quality, and SpeexOptions::speex_wave_frame_size.
~OnlineSpeexDecoder | ( | ) |
void AcceptSpeexBits | ( | const std::vector< char > & | spx_enc_bits | ) |
Definition at line 183 of file online-speex-wrapper.cc.
References VectorBase< Real >::Dim(), and kaldi::kCopyData.
Referenced by main().
|
private |
Definition at line 210 of file online-speex-wrapper.cc.
References VectorBase< Real >::Dim(), rnnlm::i, kaldi::kCopyData, Vector< Real >::Resize(), OnlineSpeexEncoder::speex_bits_, and OnlineSpeexEncoder::speex_frame_size_.
Definition at line 117 of file online-speex-wrapper.h.
References Vector< Real >::Resize().
Referenced by main().
|
private |
Definition at line 128 of file online-speex-wrapper.h.
|
private |
Definition at line 132 of file online-speex-wrapper.h.
|
private |
Definition at line 123 of file online-speex-wrapper.h.
|
private |
Definition at line 122 of file online-speex-wrapper.h.
Definition at line 131 of file online-speex-wrapper.h.