- Jul 7, 2016
- 4
- 0
I want to sample in Python (not record) audio from a Foscam (FI9805P) camera I have on my network. I've tested the audio setup overall using iSpy and VLC (i.e. I know the audio is working and available via rtsp.) For the solution I'm building I just need to take some samples of audio over a short period of time so I can determine dB level. A relatively elevated dB level tells me an event is taking place. That's all I'm looking to confirm: elevated or normal dB levels.
The Python modules that seem to be the most popular for sound are PyAudio and sounddevice. All the documentation and examples I've found are for sound devices that are directly attached to the hardware running Python.
I need to either 1/ make that remote audio stream appear to the local machine as if it is local or 2/ in Python connect to that audio device and connect the stream to either PyAudo or sounddevice.
Does anyone have any experience or suggestions for how to do this?
Thanks!
Jim
The Python modules that seem to be the most popular for sound are PyAudio and sounddevice. All the documentation and examples I've found are for sound devices that are directly attached to the hardware running Python.
I need to either 1/ make that remote audio stream appear to the local machine as if it is local or 2/ in Python connect to that audio device and connect the stream to either PyAudo or sounddevice.
Does anyone have any experience or suggestions for how to do this?
Thanks!
Jim