Answers for "how to play mp3 files using vlc python library"

2

how to play a mp3 file in python

from pygame import mixer#if this module in not installed then install it by pip install pygame
mixer.init()
mixer.music.load('alarm.mp3')
mixer.music.play()
Posted by: Guest on December-11-2021
0

how to play mp3 files using vlc python library

import vlc
p = vlc.MediaPlayer("sample.mp3")
p.play()
Posted by: Guest on April-18-2022
0

Python How To Play Mp3 File

import pygame
pygame.mixer.init()
pygame.mixer.music.load('sample.mp3')
pygame.mixer.music.play()
Posted by: Guest on January-28-2022

Python Answers by Framework

Browse Popular Code Answers by Language