Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python play sound

# pip3 install playsound
from playsound import playsound as play
play('sound.mp3')
Comment

python 3 play sound

#!/usr/bin/env python3
# Import playsound module
from playsound import playsound
 
# Input an existing wav filename
wavFile = input("Enter a wav filename: ")
# Play the wav file
playsound(wavFile)
 
# Input an existing mp3 filename
mp3File = input("Enter a mp3 filename: ")
# Play the mp3 file
playsound(mp3File)
Comment

play sound on python

import  vlc
import time

p = vlc.MediaPlayer("fade music.mp3")
p.play()
time.sleep(60)
p.stop()
Comment

install play sound python terminal

$ pip install playsound
Comment

play sound python

winsound.PlaySound(r'C:sound.wav', winsound.SND_ASYNC)
Comment

python play sound

from playsound import playsound as play
play('audio.mp3')
Comment

PREVIOUS NEXT
Code Example
Python :: one hot encoding python pandas 
Python :: arabic in python 
Python :: how to sort values in numpy by one column 
Python :: get a list of all files python 
Python :: leap year algorithm 
Python :: flask return html 
Python :: python how to get alphabet 
Python :: email authentication python 
Python :: ERROR: Failed building wheel for python-ldap 
Python :: flask clear session 
Python :: fill a list with random numbers 
Python :: finding if user input is lower or upper in python 
Python :: convert period to timestamp pandas 
Python :: python get current user windows 
Python :: 1052 uri solution 
Python :: pythondatetime cheatsheet 
Python :: python how to copy a 2d array leaving out last column 
Python :: dataframe to dictionary without index 
Python :: extend stack python 
Python :: numpy apply log to array 
Python :: dask show progress bar 
Python :: lda scikit learn 
Python :: how to reomve certain row from dataframe pandas 
Python :: colab kaggle dataset 
Python :: set the root directory when starting jupyter notebooks 
Python :: iterate through 2 strings python 
Python :: time delta python 
Python :: string to float python pandas 
Python :: python strip newline from string 
Python :: python print string separated by comma 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =