Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Play Mp3 Files With Python Using the vlc Package

import vlc

p = vlc.MediaPlayer("sample.mp3")
p.play()

# This code snippet plays the sample.mp3 file in the current
# working directory.

# If you don’t have vlc package installed on your system,
# you can install it with the command:

"""
$ pip install python-vlc
"""
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Play #Files #With #Python #Using #vlc #Package
ADD COMMENT
Topic
Name
2+8 =