diff options
author | lassulus <lass@aidsballs.de> | 2014-12-20 20:22:10 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2014-12-20 20:22:10 +0100 |
commit | 120114ad12a212331e9e790305a4ab3afdc15857 (patch) | |
tree | 6c677694f97c2d160b3cb1b3c135a49e798fb0db /util | |
parent | d64e90e8401d916c827e583107124df4049e8b5f (diff) |
google speech tool added
Diffstat (limited to 'util')
-rwxr-xr-x | util/bin/text2speech.google | 10 |
1 files changed, 10 insertions, 0 deletions
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" |