[wd_asp elements=’search’ ratio=’100%’ id=1]

Playing a Wav file – Python

22nd November 2014

Python

Getting the WAV file from command line in terminal (place this sound in the same place you run the script from)
sudo wget http://www.freespecialeffects.co.uk/soundfx/sirens/police_s.wav
Then to run in a python script

import os
os.system('aplay wavs/computerbeep2.wav &')

and from the command line aplay singer2.wav