Python Forum
Easy-to-use volume control in Windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Easy-to-use volume control in Windows
#1
Hi all Big Grin ! I recently had to control the windows master volume automaticall via a python script, but none of the solutions i found online were really functional. The only thing i found was to use the PyCaw library in order to interect with the audio, and I thought that would work.

The thing is that PyCaw used a scale based on decibel, which means it was logarithmic, making it hard to work with. The values ranged from 0 (max volume) to -28 (muted). So sat down and made a polynomial that would convert our standard 0-100 scale to PyCaw's logarithmic scale, to make it easier to use. You can install the library via pip like this:

pip install winv
Hope you guys have some use for it!

Edit: The documentation can be found on the github page here
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020