[Speex-dev] 11025kHz and framesizes question

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Mon Apr 30 16:27:23 PDT 2007


All I can say is that:

1) 11025 Hz is not recommended, I don't see much reason to use it and
you're on your own

2) Unless you know how a CELP codec works, don't attempt to modify the
Speex NB mode.

3) who cares if 2048 isn't a multiple of 160?

	Jean-Marc

Dave Findlay a écrit :
> I have been using the Speex NB mode with an 11025 kHz signal, without
> adjusting the framesize, and it's been sounding just fine to me.
> However I was wondering what the best way to make 11025kHz would be.
> I also have an audio driver that uses 2kB buffers, and the NB
> framesize of 160 doesn't divide evenly into that so I end up having
> to shovel tails of buffers around which isn't too efficient.
> 
> So I wondered if there was a clean way I could change the NB mode
> buffer size to be 256, which would be a little closer 20ms at 11025
> but also be divisible by 2048.
> 
> Should I add a new custom mode to the modes array or should I mess
> with the NB mode? Any advice on what I should do with subFrameSize
> and the other parameters in SpeexNBMode (if anything) if I change the
> framesize to be 256?
> 
> Thanks, Dave _______________________________________________ 
> Speex-dev mailing list Speex-dev at xiph.org 
> http://lists.xiph.org/mailman/listinfo/speex-dev
> 
> 


More information about the Speex-dev mailing list