diff options
author | Vasil Zlatanov <v@skozl.com> | 2017-10-17 18:24:07 +0100 |
---|---|---|
committer | Vasil Zlatanov <v@skozl.com> | 2017-10-17 18:24:07 +0100 |
commit | 8141b4227780faddc9672041bda60d84206b8422 (patch) | |
tree | 10b8894b9718b5642baf08b66faad9b67a662042 /wolfram/wolfram-old.sh | |
download | speech-8141b4227780faddc9672041bda60d84206b8422.tar.gz speech-8141b4227780faddc9672041bda60d84206b8422.tar.bz2 speech-8141b4227780faddc9672041bda60d84206b8422.zip |
make speech project public
Diffstat (limited to 'wolfram/wolfram-old.sh')
-rw-r--r-- | wolfram/wolfram-old.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/wolfram/wolfram-old.sh b/wolfram/wolfram-old.sh new file mode 100644 index 0000000..c5fd338 --- /dev/null +++ b/wolfram/wolfram-old.sh @@ -0,0 +1,16 @@ +DIR="$HOME/Dropbox/speech/wolfram" +DIRA="$HOME/Dropbox/speech" +curl "`curl \"$1\" |gsed ':a;N;$!ba;s/\n/ /g'|perl -lpe 's/^.*Result<//' |perl -lpe 's/^.*?src="//' |perl -lpe 's/&.*$//'`" > /tmp/jarresult.gif +echo $? +if [[ $? -ne 0 ]] ; then + exit 1 +fi +convert /tmp/jarresult.gif /tmp/jarresult.tiff + +if [[ $? -ne 0 ]] ; then + exit 1 +fi + +if tesseract -l eng /tmp/jarresult.tiff /tmp/jarout; then +$DIRA/tts.sh `cat /tmp/jarout.txt` +fi |