-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distorted audio capture on linux. #500
Comments
I have the same problem, and I can confirm that this does partially fix the microphone driver. Where there was once a lot of distortion, there is now none! But unfortunately, the audio completely stops after a few seconds. The
EDIT: I have tracked down the issue with audio stopping to something involving miniaudio or ALSA. I added a
I could not get any more information on why I installed PulseAudio and ran the |
I faced the same problem of severely distorted audio, and this solution worked for me. My hardware was a Rpi 4 running raspian os bookworm and a USB audio card |
I am also experiencing issues with distorted audio,
thx |
I had the same problem when using my bluetooth earbud some months ago, copy the buffer worked at that time. But now it's working fine for me without any patch, I don't know if it was an update on my Fedora or on pion/mediadevices. |
schrockwell: I have also experienced the [ALSA] poll() failed. Bug. You will find my solution here: Regards, dezi |
The problem is in pkg/driver/microphone/microphone.go lines 133...
Callback function of malgo audio capture. The chunk buffer is send to channel.
Malgo will reuse the buffer while it is beeing processed.
You have to make a copy of chunk before sending it to the channel.
Please fix.
Regards,
dezi
The text was updated successfully, but these errors were encountered: