2020 Capstone Design Project using USB Mic, Raspberry Pi, PyAudio, and Threading in order to identify horn/siren sound on the road and determine the direction of the sound
PyAudio Stream.read() does not work concurrently under multi-thread condition.
Need to look into this issue.
Possible reason : According to PyAudio documentation, Stream.read() is blocking operation by default. This may be blocking concurrency of the multi-stream program that uses multiple microphones at the same time.
Possible Fix : Change read() related codes into stream callback function in order to turn it into non-blocking operation