I need to create a script in python to unmute speaker, if it is mute.
The Scripts will check if speaker is in mute, if it is in mute than it will unmute it.
If it is unmuted already, than it shouldn't do anything.
I need to create a script in python to unmute speaker, if it is mute.
The Scripts will check if speaker is in mute, if it is in mute than it will unmute it.
If it is unmuted already, than it shouldn't do anything.
I found no simple way to do this. So let's bodge a solution together with two steps.
Let's get access to PowerShell from Python with:
https://www.phillipsj.net/posts/executing-powershell-from-python/
Now we can use the unmute from https://stackoverflow.com/questions/21355891/change-audio-level-from-powershell
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.