-1

I'm a beginner on python and I want to play a youtube video with python, but i also want to put master volume to the max. I looked a lot of online programbut they didn't work. if someone could help me, it would be cool.

Thanks

2

1 Answer 1

-1

You need to make sure that you have the right libraries. For playing the Youtube video I suggest using pywhatkit

#pip install pywhatkit in command prompt import pywhatkit as kit kit.playonyt('Rolling in the deep') 

Please read the documentation of the library to fully comprehend its uses and additional features incase you might need them. Here is a video for reference in case you get stuck.

For the volume, this should give you an outline if not answer your question, video tutorial is here. (Bonus Video - to use this you will need to learn OpenCV).

Sign up to request clarification or add additional context in comments.

3 Comments

FOr the sound, I tried pyalsaaudio, but when installing with 'pip install pyalsaaudio' after some seconds, there is an error, so the install is not finish and I can't use the librairy. Sorry if it's a stupid error, I don't know that much at python. And last thing, when I install the pywhatkit librairy, Visual Studio say that 'Import pywhatkit could not be resolved Pylance(reportMissingImports). Thanks
Please provide the essential solutions within the answer, avoid mainly pointing out to an external links. These can die by time, and your answer loses its value.
Sure thing thanks for the pointer

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.