Python Forum

Full Version: Record audio from the browser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For test automation of our project I need to check if a player works correctly (regardless the media it plays). Therefore I started learning Python in January. My plan was to record an audio sample of x seconds and analyse it to determine if it's above a certain threshold to know there's audio.

After a little searching I found the PyAudio library, but it seems to only be able to record the microphone channel. Later I also found the Sounddevice library, but same story.

Since the test needs to be independent of OS and browser and the likes, I prefer a Python only solution.
Here's a large list of packages that record audio.
You'll have to research them to see if they can do what you need.
https://pypi.org/search/?q=%22record+audio%22