[Speex-dev] Resampler saturation

Stephane Lesage stephane.lesage at ateis-international.com
Fri Jun 12 09:21:50 PDT 2009


 
Hi Jean-Marc,
 
I use the resampler to convert various sampling frequencies to 48 kHz on my Blackfin platform (fixed-point)

48K -> 16K speex -> 48K chain does not sound very good compared to plain 16K.
But the main issue is when processing loud signals, I have truncation (and not clipping/saturation)
I could hear it and see it with various music and speech messages. See example.png.

I also ran a test with a chirp signal -> see chirp-resample.png.

The original signal amplitude is 0.8 or 26214.
After 2x upsampling, the peak level is about 30000 -> 114 % !!!
(plus the output is kinda weird)

Is this a bug ? Is it possible to fix it ?
(I use version speex 1.2beta2, because newer versions just don't work on my platform) 

Best regards.

-- 
Stéphane LESAGE
ATEIS International
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.png
Type: image/png
Size: 9702 bytes
Desc: example.png
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20090612/a4db5544/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chirp-resample.png
Type: image/png
Size: 11498 bytes
Desc: chirp-resample.png
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20090612/a4db5544/attachment-0003.png 


More information about the Speex-dev mailing list