Jun-04-2020, 06:23 AM
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.
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.