#Python #playsound #Programming
Hello Guys,
In this video, I am going to show you all that how you can play audio files in Python having .mp3, .wav extension. For playing audio files, I will use a module named 'playsound'. Install playsound module using Command Prompt or Windows PowerShell by typing 'pip install playsound'.
Code :
from playsound import playsound
playsound('/path/to/a/sound/file/you/want/to/play.mp3')
Editor Used : Visual Studio Code
Download Visual Studio Code : https://code.visualstudio.com/
Installation Tutorial ( Visual Studio Code ) : https://www.youtube.com/watch?v=L967cUsXBbA
Follow me on Instagram (@ri5h46h) : https://www.instagram.com/ri5h46h/
Follow me on Twitter (@explorishabh) : https://twitter.com/explorishabh/
Download
0 formats
No download links available.
How to Play Audio Files in Python : playsound Module | NatokHD