Subject: ecasound resample problem
From: Aaron Heller (heller_AT_AI.SRI.COM)
Date: Sun Jul 25 2004 - 08:57:23 EEST
I used ecasound to resample an audio file from 96000 to 44100 kHz sample
rate and noticed that there were faint clicks in the resulting file.
To test this further, I wrote a csh script that generates 100Hz and 1kHz
sine wave files at 96000 kHz sample rate and then resamples them to
44100 and 48000, with both the resample and resample-hq options, and at
both 16-bit and 32-bit word length. All of the resampled files have
clicks.
Here is the script:
#!/bin/csh -x
foreach freq (100 1000)
foreach st (s32_le s16_le)
ecasound -t:5 -f:$st,2,96000 -i null \
-el:sine_fcac,$freq,.1 -o:$st-$freq.wav
foreach sr (44100 48000)
foreach algo (resample resample-hq)
ecasound -f:$st,2,$sr -i:resample,auto,$st-$freq.wav \
-o:$st-$freq-$sr-$algo.wav
end
end
end
end
The script, audio files, and wallpaper can be found at:
http://www.ai.sri.com/ajh/audio/resamp-test/
Any help would be appreciated. Thanks.
Aaron Heller <heller_AT_ai.sri.com>
Menlo Park, CA USA
This archive was generated by hypermail 2b28 : Sun Jul 25 2004 - 08:57:41 EEST