HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Play Audio Files in Python : playsound Module

201,182 views April 28, 2020 4:50

Watch on YouTube
ChannelRishabh Narayan

Description from the creator

#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 : code.visualstudio.com/

Installation Tutorial ( Visual Studio Code ) : youtube.com/watch?v=L967cUsXBbA

Follow me on Instagram (@ri5h46h) : instagram.com/ri5h46h/

Follow me on Twitter (@explorishabh) : twitter.com/explorishabh/

About this tutorial

Rishabh Narayan published this 4:50 video tutorial on April 28, 2020. It has been watched 201,182 times on YouTube.

Duration
4:50
Published
April 28, 2020
Views
201,182
Likes
2,313

Tags

Share

This tutorial in other languages