Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pydub play audio

# credit to the Stack Overflow user in the source link

from pydub import AudioSegment
from pydub.playback import play

song = AudioSegment.from_wav("explosion.wav")
play(song)
Comment

PREVIOUS NEXT
Code Example
Python :: input two numbers in python in a single line 
Python :: python counter nested dictionary 
Python :: how to convert python to exe 
Python :: timeout socket python 
Python :: python string in list 
Python :: replace nan using fillna 
Python :: python get last element of array 
Python :: savefig matplotlib python 
Python :: python txt to parquet 
Python :: matplotlib remove duplicate legend entries from plotting loop 
Python :: pyhton image resize 
Python :: logarithms python 
Python :: delete and start fresh with db django 
Python :: jupyter notebook GET 500 
Python :: python filter() 
Python :: bracket balanced or not in python 
Python :: regex find email address in string python 
Python :: pandas dataframe for loop begin end index 
Python :: jinja if or 
Python :: DJANGO rest framework GET POST 
Python :: python code to get wifi 
Python :: python make 1d array from n-d array 
Python :: flask structure 
Python :: selenium do not open browser window 
Python :: python convert strings to chunks 
Python :: python flask models user 
Python :: keras 
Python :: scikit tsne 
Python :: properties of tuples in python 
Python :: all python functions 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =