[Debian]Voice recorder - ecasound --> Help

kimaidou kimaidou at gmail.com
Thu Feb 19 16:41:17 CET 2009


I am answering myself here : I found the solution :you have to add a "&" at
the end of the arecord line
So the file content is now :

#!/bin/bash
zenity --question --title="Voice-note" --text="Click Validate to START
recording"; gostart=$?

if [ "$gostart" = 1 ]
    then
        echo "Operation canceled"
        exit
    else
        echo "Recording..."
fi
arecord -D hw -f cd  -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav &
alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore &
zenity --info --title="Voice-note" --text="Click Validate to STOP
recording"; gostop=$?

killall -TERM arecord
alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore
zenity --info --title="Voice note" --text="Your voice-note has been
recorded"; goread=$?

#END OF FILE

CONCLUSION
It works well !! For those who want to try, just create a executable text
file called "voicenote.sh" for example in your personnal folder and add the
lines above.
To make it executable, please do :
chmod +x ~/voicenote.sh

Thanks all for your help !

Kimaidou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20090219/1df159d7/attachment.htm 


More information about the community mailing list