Getting the WAV file from command line in terminal (place this sound in the same place you run the script from)
1 2 3 |
sudo wget http://www.freespecialeffects.co.uk/soundfx/sirens/police_s.wav |
Then to run in a python script
1 2 3 4 |
import os os.system('aplay wavs/computerbeep2.wav &') |
and from the command line
1 2 3 |
aplay singer2.wav |