I'm writing a script that will automatically adjust the audio levels of a program, So I need a way to get audio levels in python. I've looked online for libs to help with this but I was unable to find anything
Asked
Active
Viewed 60 times
0
-
Does this answer your question? [How do I get the system output volume in python?](https://stackoverflow.com/questions/49662850/how-do-i-get-the-system-output-volume-in-python) – Hugh Mungus Jul 28 '22 at 14:05
-
no, i need the volume in dB – ShotgunFlamez Jul 28 '22 at 14:33
-
well that's going to depend on what speakers you have, so do a conversion based on the system output volume and the speaker power – Hugh Mungus Jul 28 '22 at 14:35
-
what libs or resources should i use for that – ShotgunFlamez Jul 28 '22 at 14:40
-
you could use your microphone to listen to the output: https://stackoverflow.com/questions/3082635/accessing-the-microphone-in-python or check the specs of your setup and see if theres any info – Hugh Mungus Jul 28 '22 at 14:41
-
surely there's a lib for getting speaker audio levels – ShotgunFlamez Jul 28 '22 at 14:51
-
Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/246860/discussion-between-shotgunflamez-and-hugh-mungus). – ShotgunFlamez Jul 28 '22 at 14:52