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

how to play audio in python

# import required module
from playsound import playsound

# for playing note.wav file
playsound('/path/note.wav')
print('playing sound using playsound')
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

python sound

playsound('audio.mp3')
Comment

PREVIOUS NEXT
Code Example
Python :: How To Get Redirection URL In Python 
Python :: python get the intersection of two lists 
Python :: infinity python 
Python :: concat string columns in pandas 
Python :: delete column in dataframe pandas 
Python :: sharpdevelop pause python code 
Python :: python hash() seed 
Python :: python regex get word after string 
Python :: insert single value in dataframe using index 
Python :: pandas iteration 
Python :: fullscreen cmd with python 
Python :: next iteration python 
Python :: remove unnamed columns pandas 
Python :: python uuid 
Python :: get number of key in dictionary python 
Python :: python read excel 
Python :: python async await run thread 
Python :: python define class 
Python :: bounding box python 
Python :: convert .py to .ipynb file 
Python :: read clipboard python 
Python :: Setting up Colab for Kaggle Downloads 
Python :: skewness removal 
Python :: python dict remove duplicates where items are not the same 
Python :: calculate term frequency python 
Python :: live server python 
Python :: beautifulsoup check if text exists 
Python :: how to select li element in selenium python 
Python :: how to join two dataframe in pandas based on two column 
Python :: for enumerate python 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =