blob: e450034122ef203bacbe17285c996327fbe626f5 (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
# id: U6E8UV-AP3QJAT6RK
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;
|