Created
August 12, 2014 12:24
-
-
Save jacobsalmela/e0bf014401ab1f987fc8 to your computer and use it in GitHub Desktop.
(Linux) Roll-your-own say command
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 | |
| #----------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