Portál AbcLinuxu, 6. května 2025 16:23
Řešení dotazu:
pico2wave
.
user@stroj~$ alias urlencode='python -c "import urllib, sys; print urllib.quote( sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1])"' user@stroj~$ alias urldecode='python -c "import urllib, sys; print urllib.unquote(sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()[0:-1])"' user@stroj~$ test="Nějaký ten text" user@stroj~$ wget -q -O - 'http://translate.google.com/translate_tts?tl=cs&q='$(urlencode "$test")'&client=tw-ob' --header="User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:23.0) Gecko/20100101 Firefox/23.0" | mpv -
Jediné co v linuxu na češtinu mám je EPOS a Violka (nic moc ale lepší než drátem do oka).
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.