commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Speaks whatever comes in via stdin (-v pt = portuguese, default = englisg)
..speech part of keyboard event talker. Made to accomplish a simple alarm central based on a cheap keyboard circuit. This way I have one zone per direct keypress. Depends on keypress.sh. It speaks out loud wich zone (key) has been pressed ( faulted ). Here is keypress.sh :
# keypress.sh: Detect a user keypress ("hot keys").
old_tty_settings=$(stty -g) # Save old settings (why?).
Keypress=$(head -c1) # or $(dd bs=1 count=1 2> /dev/null)
# on non-GNU systems
aplay -q /home/mm/bash/beep-1.wav
echo "Chamada quarto \""$Keypress"\"."
stty "$old_tty_settings" # Restore old settings.
# Thanks, Stephane Chazelas.
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.