[speex-dev] Question about Speex Decoder

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Fri Jan 30 10:15:21 PST 2004


> I'm trying to write a voice decoder and encoder program using libspeex and
> using its variable bit-rates feature. At the encoder section I set the
> bit-rate of the output stream by setting "SPEEX_SET_ABR" option using this
> command: speex_encoder_ctl(enc_state,SPEEX_SET_ABR,&Avr_BR); and Avr_BR is
> a variable holding my favourit bit-rate for example 33000 bps. Am I on
> right track up to this part?

So far so good.

> This encoded frame will enter the decoder as an input frame.
> I think there should be an option which allows me to let the decoder
> know about this bit-rate which it accepts as an input frame. but I coudn't
> find any option to set this bit-rate for the decoder as well? How can I
> set the decoder's bit-rate?

You don't need to set a bit-rate for the decoder, it'll automatically
detect it.

        Jean-Marc


-- 
Jean-Marc Valin, M.Sc.A., ing. jr.
LABORIUS (http://www.gel.usherb.ca/laborius)
Université de Sherbrooke, Québec, Canada


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Ceci est une partie de message numériquement signée.
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040130/4147991d/signature-0001.pgp


More information about the Speex-dev mailing list