Created
April 9, 2014 06:55
-
-
Save rchasman/10233504 to your computer and use it in GitHub Desktop.
This script helps you to learn song lyrics!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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