Sounds like pygame might be interfering with ALSA or hogging audio resources when initialized. Try setting the SDL_AUDIODRIVER env variable to "dummy" before initializing pygame, like os.environ["SDL_AUDIODRIVER"] = "dummy" — that often helps bypass conflicts. Also, ensure threading isn’t choking I/O while arecord runs.
Statistics: Posted by rujia — Tue Jul 08, 2025 11:26 am