A unix command like sirius client
Deprecated. Whole design of sirius changed. Now called lucida (https://github.com/claritylab/lucida)
Requires:
- libpcre
- libcurl
Clone this repsitory: git clone https://github.com/d4ndo/sirius-client.git
mkdir build
cd build
cmake ..
make
sudo make install
The configuration file can be found at ~/.sirius.ini
[host] ;host configuration
url = localhost ;ip address or domain
question_port = 8080 ;question daemon PORT
speech_recognition_port = 8081 ;speech recognition daemon PORT
image_matching_port = 8082 ;image matching daemon PORT
To ask sirius a question try this:
sirius "What is the speed of light"
or
echo What is the speed of light | sirius
-a : sirius will return the content of question.wav
sirius -a question.wav
what is the speed of light
-q : sirius will try to answer question.wav
sirius -qa question.wav
299,792,458 meters per second
is equivalent to :
sirius -a question.wav | sirius
299,792,458 meters per second
-i: sirius will return information about the image
sirius -i towerOFpisa.jpg
tower pisa
Some batch stuff:
ls -1 *.jpg | while read line; do sirius -i $line; done;