spatialaudio / python-sounddevice

:sound: Play and Record Sound with Python :snake:
https://python-sounddevice.readthedocs.io/
MIT License
1.01k stars 149 forks source link

White noise on raspberry pi 3b+ #305

Open candaj opened 3 years ago

candaj commented 3 years ago

Hello,

I've tested to implement sounddevice in order to do speech to text on a raspberry pi. Unfortunately I've some issues. With my work headset in 16KHz everything is working fine. But with a mic supported only 44100/48K there is a lot of white noise in the recording. On windows I've no issue at all on both mic. I suppose an issue with the underlying soft that handle sound. Do you ever come to sort of issue and do you have an idea on what sort of research I've to do?

Thank you for your help!

mgeier commented 3 years ago

In such a situation you might be able to gather more information by trying different things that use PortAudio and compare them.

You could try the PyAudio library and check if there is also noise.

You could also try to use Audacity (which also uses PortAudio internally) and check if it works correctly.

And you should also try some software that does not use PortAudio. Maybe it's an ALSA or a PulseAudio problem?