使用 python 更改主音量
Change master volume with python
我是 python 的新手,我想用 python 播放 YouTube 视频,但我也想将主音量调到最大。我看了很多在线程序,但它们没有用。如果有人能帮助我,那就太好了。
谢谢
您需要确保拥有正确的库。为了播放 Youtube 视频,我建议使用 pywhatkit
#pip install pywhatkit in command prompt
import pywhatkit as kit
kit.playonyt('Rolling in the deep')
请阅读documentation of the library to fully comprehend its uses and additional features incase you might need them. Here is a video以备参考。
对于体积,this should give you an outline if not answer your question, video tutorial is here. (Bonus Video - 要使用它,您需要学习 OpenCV)。
我是 python 的新手,我想用 python 播放 YouTube 视频,但我也想将主音量调到最大。我看了很多在线程序,但它们没有用。如果有人能帮助我,那就太好了。
谢谢
您需要确保拥有正确的库。为了播放 Youtube 视频,我建议使用 pywhatkit
#pip install pywhatkit in command prompt
import pywhatkit as kit
kit.playonyt('Rolling in the deep')
请阅读documentation of the library to fully comprehend its uses and additional features incase you might need them. Here is a video以备参考。
对于体积,this should give you an outline if not answer your question, video tutorial is here. (Bonus Video - 要使用它,您需要学习 OpenCV)。