xiongyihui / notes

Notes
https://xiongyihui.github.io/notes/
3 stars 0 forks source link

Speex resampler is bad on Raspberry Pi or other ARM boards #16

Open xiongyihui opened 6 years ago

xiongyihui commented 6 years ago

The resampler of libspeexdsp1 is used by PulseAudio and ALSA (if libasound2-plugins is installed) by default. It has serious distortion when converting loud audio from 44100 to 48000. There is a bug report at 2015 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799176). Now (2018), it is still a unsolved issue. It's a fixed point overflow problem.

Solutions

If you wonder which resampler of PulseAudio is fit for you, there is a resampler quality evaluation from Alexander E. Patrakov. See

http://comments.gmane.org/gmane.comp.audio.pulseaudio.general/21051 https://imgur.com/a/jtIEj

It compares resampler of ffmpeg, sox and speex.

demon36 commented 1 year ago

thanks a lot, changing pulseaudio sampler to ffmpeg on rpi4 fixed distorted audio for me.