Using LXTerminal I can play a wav file using the below and it outputs to my speaker
pi@raspberrypi ~ $ aplay alarmclock.wav
I also have a cron job which outputs some espeak text to my speakers and I want to integrate the two (espeak and wav file) together.
I have tried a few different formats but cant get the aplay to work from a script file, any help would be great. Also my echo doesn't work.
#!/bin/sh
# /etc/init.d/start-sound
echo "playing alarmclock sound"
aplay /home/pi/alarmclock.wav
espeak "some text"