Skip to content

Instantly share code, notes, and snippets.

@liuggio
Created February 14, 2013 17:56
Show Gist options
  • Save liuggio/4954703 to your computer and use it in GitHub Desktop.
Save liuggio/4954703 to your computer and use it in GitHub Desktop.
after long bash processing this speak the message
function speakmsg {
MESSAGE="OK";
ERROR_="Fail";
LANG="english";
if [ $1 -ne 0 ]; then MESSAGE=$ERROR;fi;
echo $MESSAGE |espeak -p 10 -s 70 -v $LANG;
}
#usage
phpunit; #or your favourite long command
speakmsg $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment