From 120114ad12a212331e9e790305a4ab3afdc15857 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 20 Dec 2014 20:22:10 +0100 Subject: google speech tool added --- util/bin/text2speech.google | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 util/bin/text2speech.google (limited to 'util') diff --git a/util/bin/text2speech.google b/util/bin/text2speech.google new file mode 100755 index 00000000..41b4c172 --- /dev/null +++ b/util/bin/text2speech.google @@ -0,0 +1,10 @@ +#!/bin/sh +set -euf + +tl=${TL:="en"} + +text=$* + +url="http://translate.google.com/translate_tts?ie=UTF-8&tl=$tl" + +curl -A "Mozilla/5.0" -Ss "$url" --data-urlencode "q=$text" -- cgit v1.2.3