Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Created August 12, 2014 12:24
Show Gist options
  • Select an option

  • Save jacobsalmela/e0bf014401ab1f987fc8 to your computer and use it in GitHub Desktop.

Select an option

Save jacobsalmela/e0bf014401ab1f987fc8 to your computer and use it in GitHub Desktop.
(Linux) Roll-your-own say command
#!/bin/bash
#----------AUTHOR------------
# Jacob Salmela
# 12 August 2013
# https://github.com/jakesalmela/
#---------DESCRIPTION--------
# Say command for Linux
# Save as /usr/bin/say
#-----------USAGE------------
# say <your_text_in_quotes>
# Example: say "Raspberry Pi"
#----------VARIABLES---------
variableOne=$()
#----------FUNCTIONS---------
###################
function linuxSay()
{
mplayer -really-quiet "http://translate.google.com/translate_tts?tl=en&q=$1";
}
#----------------------------
#-----------SCRIPT-----------
#----------------------------
linuxSay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment