summaryrefslogtreecommitdiffstats
path: root/util/bin/text2speech.google
diff options
context:
space:
mode:
Diffstat (limited to 'util/bin/text2speech.google')
-rwxr-xr-xutil/bin/text2speech.google24
1 files changed, 0 insertions, 24 deletions
diff --git a/util/bin/text2speech.google b/util/bin/text2speech.google
deleted file mode 100755
index 061bb1c8..00000000
--- a/util/bin/text2speech.google
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -euf
-
-TL=${TL:="en"}
-
-usage(){
- echo 'TL= can specifiy which language to use, default is "en"'
- echo 'Example: TL="de" ./text2speech.google "whats up?" | mpv -'
- exit 0
-}
-
-text2speech(){
- text=$*
- url="http://translate.google.com/translate_tts?ie=UTF-8&tl=$TL"
-
- curl -A "Mozilla/5.0" -Ss "$url" --data-urlencode "q=$text"
-}
-
-if [ $# -eq 0 ]; then
- usage
-fi
-
-text2speech $*
-