Displaying 3 results from an estimated 3 matches for "libspeex_enc_state".
2004 Aug 06
2
question on usage of the libraries
...orrect for compressing audio? The output I get is so
extremely small, but what is more important: if I pass it through zlib, it
gets at least 50% smaller!
Init:
int bitrate = max_bandwidth * 8;
speex_bits_init(&libspeex_bits);
if (sample_rate > 22050)
libspeex_enc_state = speex_encoder_init(&speex_wb_mode);
else
libspeex_enc_state = speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_SAMPLING_RATE,
&sample_rate);
speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_BITRATE, &bitrate...
2004 Aug 06
0
question on usage of the libraries
...ly small, but what is more important: if I pass it through zlib, it
> gets at least 50% smaller!
On regular data, gzip might get a 5% reduction, so I doubt you can get
50% unless you're encoding zeros or doing something wrong...
> if (sample_rate > 22050)
> libspeex_enc_state = speex_encoder_init(&speex_wb_mode);
> else
> libspeex_enc_state = speex_encoder_init(&speex_nb_mode);
In normal operation, narrowband is 8000 Hz, wideband is 16000 Hz and
ultra-wideband is 32000 Hz, so I'd change the 22050 for something like
12000 (and m...
2004 Aug 06
3
question on usage of the libraries
> Ok, I forgot to mention that I want to incorporate speex into my own
> program (which is for e.g. streaming audio and a couple of other
> things).
JM> One thing you'll need to decide: do you want to pack in into an Ogg
JM> container or will you take care of handling the packets yourself?
I take care of that myself.
JM> If you
JM> want to pack it in Ogg, I suggest you