From 1375beeac80131dbcb094691526826bd2921b4bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20M=C3=A9ly?= Date: Fri, 3 Mar 2017 22:56:26 +0100 Subject: [PATCH] fixed #463 triggered phrase empty by default --- jarvis-config-default.sh | 2 +- jarvis.sh | 4 ++-- stt_engines/{google => google_old}/main.sh | 0 version.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename stt_engines/{google => google_old}/main.sh (100%) diff --git a/jarvis-config-default.sh b/jarvis-config-default.sh index 4f16858..cee5a2b 100644 --- a/jarvis-config-default.sh +++ b/jarvis-config-default.sh @@ -5,7 +5,7 @@ dictionary="stt_engines/pocketsphinx/jarvis-dictionary.dic" gain="0" google_speech_api_key="" phrase_failed="This command has returned an error" -phrase_triggered="Yes?" +phrase_triggered="" phrase_welcome="Hello" phrase_misunderstood="I did not understand" language="en_GB" diff --git a/jarvis.sh b/jarvis.sh index c4a847c..10167d7 100755 --- a/jarvis.sh +++ b/jarvis.sh @@ -210,7 +210,7 @@ configure () { eval "$1=\"$(dialog_select "Select a voice for $language" voices[@] ${!1})\"";; phrase_failed) eval "$1=\"$(dialog_input 'What to say if user command failed' "${!1}")\"";; phrase_misunderstood) eval "$1=\"$(dialog_input 'What to say if order not recognized' "${!1}")\"";; - phrase_triggered) eval "$1=\"$(dialog_input 'What to say when magic word is heard' "${!1}")\"";; + phrase_triggered) eval "$1=\"$(dialog_input 'What to say when magic word is heard\nEx: Yes?' "${!1}")\"";; phrase_welcome) eval "$1=\"$(dialog_input 'What to say at program startup' "${!1}")\"";; play_hw) while true; do @@ -758,7 +758,7 @@ while true; do echo $trigger # new line bypass=true jv_hook "entering_cmd" - say "$phrase_triggered" + [ -n "$phrase_triggered" ] && say "$phrase_triggered" continue 2 fi diff --git a/stt_engines/google/main.sh b/stt_engines/google_old/main.sh similarity index 100% rename from stt_engines/google/main.sh rename to stt_engines/google_old/main.sh diff --git a/version.txt b/version.txt index a61ffbe..42d4c0c 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -17.03.02 +17.03.03