StevenHickson / PiAUISuite

Raspberry PI AUI Suite
Other
695 stars 210 forks source link

PiAUISuite does not able to receive the answer [Help] #73

Open ShunJianLee opened 7 years ago

ShunJianLee commented 7 years ago

Good day, may i know why the PIAUISuite does not able to receive the answer? Does anyone face it before? My email is fb12043@gmail.com

pi@raspberrypi:~ $ voicecommand -e Opening config file... Editing config file... This lets you edit the config file. The format is voice==command You can use any character except for newlines or == If the voice starts with ~, the program looks for the keyword anywhere. Ex: ~weather would pick up on weather or what's the weather You can use ... at the end of the command to specify that everything after the given keyword should be options to the command. Ex: play==playvideo ... This means that if you say "play Futurama", it will run the command playvideo Futurama You can use $# (where # is any number 1 to 9) to represent a variable. These should go in order from 1 to 9 Ex: $1 season $2 episode $3==playvideo -s $2 -e $3 $1 This means if you say game of thrones season 1 episode 2, it will run playvideo with the -s flag as 1, the -e flag as 2, and the main argument as game of thrones, i.e. playvideo -s 1 -e 2 game of thrones Because of these options, it is important that the arguments range from most strict to least strict.This means that ~ arguments should probably be at the end. arguments with multiple variables like the play $1 season $2 episode $3 example should be before ones like play... because it will pick the first match You can also put comments if the line starts with # and options if the line starts with a ! Default options are shown as follows: !keyword==pi,!verify==1,!continuous==1,!quiet==0,!ignore==0,!thresh=0.7,!response=Yes sir?, !improper=Received improper command:,!duration==3,!com_dur==2,!filler==FILLER FILL,!api==BLANK,!maxResponse==-1,!lang==en,!hardware==plughw:1,0 Press any key to continue

pi@raspberrypi:~ $ man voicecommand

[2]+ Stopped man voicecommand pi@raspberrypi:~ $ voicecommand -e Opening config file... Editing config file... This lets you edit the config file. The format is voice==command You can use any character except for newlines or == If the voice starts with ~, the program looks for the keyword anywhere. Ex: ~weather would pick up on weather or what's the weather You can use ... at the end of the command to specify that everything after the given keyword should be options to the command. Ex: play==playvideo ... This means that if you say "play Futurama", it will run the command playvideo Futurama You can use $# (where # is any number 1 to 9) to represent a variable. These should go in order from 1 to 9 Ex: $1 season $2 episode $3==playvideo -s $2 -e $3 $1 This means if you say game of thrones season 1 episode 2, it will run playvideo with the -s flag as 1, the -e flag as 2, and the main argument as game of thrones, i.e. playvideo -s 1 -e 2 game of thrones Because of these options, it is important that the arguments range from most strict to least strict.This means that ~ arguments should probably be at the end. arguments with multiple variables like the play $1 season $2 episode $3 example should be before ones like play... because it will pick the first match You can also put comments if the line starts with # and options if the line starts with a ! Default options are shown as follows: !keyword==pi,!verify==1,!continuous==1,!quiet==0,!ignore==0,!thresh=0.7,!response=Yes sir?, !improper=Received improper command:,!duration==3,!com_dur==2,!filler==FILLER FILL,!api==BLANK,!maxResponse==-1,!lang==en,!hardware==plughw:1,0 Press any key to continue

pi@raspberrypi:~ $ voicecommand Opening config file... Recording WAVE 'stdin' : Unsigned 8 bit, Rate 16000 Hz, Mono % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: www.google.com No translation pi@raspberrypi:~ $ voicecommand Opening config file... Recording WAVE 'stdin' : Unsigned 8 bit, Rate 16000 Hz, Mono % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 20889 0 231 100 20658 51 4630 0:00:04 0:00:04 --:--:-- 4631 Attempting to answer: how are you Could not find answer. Try again. pi@raspberrypi:~ $ voicecommand Opening config file... Recording WAVE 'stdin' : Unsigned 8 bit, Rate 16000 Hz, Mono % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 18784 0 213 100 18571 14 1285 0:00:14 0:00:14 --:--:-- 0 Attempting to answer: voice Could not find answer. Try again. pi@raspberrypi:~ $ cd PiAUISuite