Skip to content

Commit

Permalink
fixed multiple models in snowboy for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alexylem committed Apr 1, 2017
1 parent b15ac29 commit 4f16eb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ hooks/start_speaking
hooks/stop_speaking

*.pyc

hooks/listening_timeout
8 changes: 4 additions & 4 deletions stt_engines/snowboy/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ stt_sb_load # load models at startup
_snowboy_STT () {
[ -n "$1" ] && local timeout="utils/timeout.sh $1" || local timeout=""

local models=$snowboy_models
local models=("${snowboy_models[@]}")
local smodels="$snowboy_smodels"

# Limit model to trigger one
if [ -n "$2" ]; then
models=$snowboy_trigger_models
models=("${snowboy_trigger_models[@]}")
smodels="$snowboy_trigger_smodels"
fi

Expand Down Expand Up @@ -130,9 +130,9 @@ _snowboy_STT () {
echo " 5) report at: https://github.com/alexylem/jarvis/issues/311"
jv_warning "IOError: [Errno Unanticipated host error] -9999"
echo " 1) your mic is in error state, unplug/replug it"
echo " 2) report at: https://github.com/alexylem/jarvis/issues/20"
echo " 2) report at https://github.com/alexylem/jarvis/issues/20"
jv_warning "Other"
echo " 1) report at: https://github.com/alexylem/jarvis/issues/new"
echo " 1) report at https://github.com/alexylem/jarvis/issues/new"
else
jv_warning "HELP: run in troubleshooting mode for more information"
fi
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.03.26
17.04.01

0 comments on commit 4f16eb3

Please sign in to comment.