summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2017-10-17 18:34:10 +0100
committerVasil Zlatanov <v@skozl.com>2017-10-17 18:34:10 +0100
commit7740cf711df716b5a0f996476f7b710298934503 (patch)
treec63ae44452df7bc069f1f23596add9e844825272
parent4e6f3cd37decb440d443cffd820d376ade0b72cd (diff)
downloadspeech-7740cf711df716b5a0f996476f7b710298934503.tar.gz
speech-7740cf711df716b5a0f996476f7b710298934503.tar.bz2
speech-7740cf711df716b5a0f996476f7b710298934503.zip
remove hardcoded path
-rwxr-xr-xwolfram/api.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/wolfram/api.sh b/wolfram/api.sh
index 28fcd93..e450034 100755
--- a/wolfram/api.sh
+++ b/wolfram/api.sh
@@ -1,6 +1,6 @@
#!/bin/bash
# id: U6E8UV-AP3QJAT6RK
-DIR="$HOME/Sync/Programming/speech"
+DIR="./"
toread=$(curl "http://api.wolframalpha.com/v2/query?input=$1&appid=U6E8UV-AP3QJAT6RK&format=plaintext&podindex=2" | sed ':a;N;$!ba;s/\n/ /g' |perl -pe '($_)=m{<plaintext>(.*?)</plaintext>} or print "No data found";s/\(.*\)//g')
$DIR/tts.sh "$toread"
echo $toread;