#include <online-speex-wrapper.h>

Public Member Functions | |
| SpeexOptions () | |
| void | Register (OptionsItf *opts) |
Public Attributes | |
| BaseFloat | sample_rate |
| The sample frequency of the waveform, it decides which Speex mode to use. More... | |
| int32 | speex_quality |
| Ranges from 0 to 10, the higher the quality is better. More... | |
| int32 | speex_bits_frame_size |
| In bytes. More... | |
| int32 | speex_wave_frame_size |
| In samples. More... | |
Definition at line 36 of file online-speex-wrapper.h.
|
inline |
Definition at line 59 of file online-speex-wrapper.h.
|
inline |
Definition at line 64 of file online-speex-wrapper.h.
References OptionsItf::Register().
Referenced by main().
| BaseFloat sample_rate |
The sample frequency of the waveform, it decides which Speex mode to use.
Often 8kHz—> narrow band, 16kHz—> wide band and 32kHz —> ultra wide band
Definition at line 40 of file online-speex-wrapper.h.
Referenced by OnlineSpeexDecoder::OnlineSpeexDecoder(), and OnlineSpeexEncoder::OnlineSpeexEncoder().
| int32 speex_bits_frame_size |
In bytes.
Should be set according to speex_quality. Just name a few here(wideband): quality size(in bytes) 8 70 9 86 10 106
Definition at line 53 of file online-speex-wrapper.h.
Referenced by OnlineSpeexDecoder::OnlineSpeexDecoder(), and OnlineSpeexEncoder::OnlineSpeexEncoder().
| int32 speex_quality |
Ranges from 0 to 10, the higher the quality is better.
In my preliminary tests with the RM recipe, if set it to 8, I observed the WER increased by 0.1%; while set it to 10, the WER almost kept unchanged.
Definition at line 45 of file online-speex-wrapper.h.
Referenced by OnlineSpeexDecoder::OnlineSpeexDecoder(), and OnlineSpeexEncoder::OnlineSpeexEncoder().
| int32 speex_wave_frame_size |
In samples.
The Speex toolkit uses a 20ms long window by default
Definition at line 57 of file online-speex-wrapper.h.
Referenced by OnlineSpeexDecoder::OnlineSpeexDecoder(), and OnlineSpeexEncoder::OnlineSpeexEncoder().