Darth Vader
Darth Vader
TTCTheo's Typesafe Cult
Created by Darth Vader on 2/14/2024 in #questions
leaving pyaudio stream open
I have four microphones, and I am currently working on determining the direction of arrival for sound. I am writing the code in Python on a MacBook. The problem arises when I run a test code to measure amplitude; I only receive inputs from two microphones, while the other two show an amplitude of 0. In the code, I use threading to record in parallel and keep the PyAudio stream open until the end, instead of closing it after each recording session. Previously, when I would open and close the stream for each recording, all four microphones worked. How can I solve the issue of the two microphones not recording anything? By the way, there is nothing wrong with the microphones or the ports. I have also tried using the sounddevice library. I appreciate the help
18 replies