Python Forum
Record audio from the browser - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Record audio from the browser (/thread-27355.html)



Record audio from the browser - uppie83 - Jun-04-2020

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.


RE: Record audio from the browser - Larz60+ - Jun-04-2020

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