Dennis Liu
2008-Feb-13 16:15 UTC
[Speex-dev] Can Speex frame size be expand from 160 to 320 for NB?
Thank you so much for your quick reply. It looks quite easy to change it. But, how about those codebook and excite table? I notice them have been fixed as the length of 160. Thanks again, Dennis -----Original Message----- From: Jean-Marc Valin [mailto:jean-marc.valin@usherbrooke.ca] Sent: Wednesday, February 13, 2008 4:03 PM To: Dennis Liu Cc: speex-dev@xiph.org Subject: Re: [Speex-dev] Can Speex frame size be expand from 160 to 320 for NB? Dennis Liu wrote:> I want to know the possibility of expanding frame size from 160 to 320 > for narrow band. What is the side-effect if do so? How many changes > involved for the current code?spx_int16_t my_buffer[320]; speex_encode_int(encoder, my_buffer, bits); speex_encode_int(encoder, my_buffer+160, bits); done Cheers, Jean-Marc
Jean-Marc Valin
2008-Feb-13 16:21 UTC
[Speex-dev] Can Speex frame size be expand from 160 to 320 for NB?
Dennis Liu wrote:> Thank you so much for your quick reply. > > It looks quite easy to change it. But, how about those codebook and excite > table? I notice them have been fixed as the length of 160.In case it wasn't clear from my previous email, you don't want to change Speex, you just encode two packets and that's it. Jean-Marc
Dennis Liu
2008-Feb-15 16:16 UTC
[Speex-dev] Can Speex frame size be expand from 160 to 320 for NB?
Thanks Jean-Marc. I do want to change Speex frame size to 320. In this case, I've changed frame size in init and modes (include framesize and subframesize). However, the audio quality becomes bad. It seems something else needs to be changed as well. Could you give a clue? Thanks, Dennis -----Original Message----- From: Jean-Marc Valin [mailto:jean-marc.valin@usherbrooke.ca] Sent: Wednesday, February 13, 2008 4:22 PM To: Dennis Liu Cc: speex-dev@xiph.org Subject: Re: [Speex-dev] Can Speex frame size be expand from 160 to 320 for NB? Dennis Liu wrote:> Thank you so much for your quick reply. > > It looks quite easy to change it. But, how about those codebook and excite > table? I notice them have been fixed as the length of 160.In case it wasn't clear from my previous email, you don't want to change Speex, you just encode two packets and that's it. Jean-Marc