#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 ) : • How to Download and Install Visual St...
Follow me on Instagram (@ri5h46h) : / ri5h46h
Follow me on Twitter (@explorishabh) : / explorishabh