Skip to content

Instantly share code, notes, and snippets.

@rchasman
Created April 9, 2014 06:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rchasman/10233504 to your computer and use it in GitHub Desktop.
Save rchasman/10233504 to your computer and use it in GitHub Desktop.
This script helps you to learn song lyrics!
#!/bin/bash
# requires lolcat
if [ $# -eq 2 ]
then
artist=${1// /%20}
song=${2// /%20}
(curl -s "http://makeitpersonal.co/lyrics?artist=$artist&title=$song" | say -r 200 &);
curl -s "http://makeitpersonal.co/lyrics?artist=$artist&title=$song" | lolcat -a -s 12 -F 1000;
pkill say;
else
echo "usage: sing <artist> <song>"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment