summaryrefslogtreecommitdiffstats
path: root/util/bin/text2speech.google
blob: 41b4c172f78f2586721f4e35f6ef51d7913c5932 (plain)
1
2
3
4
5
6
7
8
9
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"