diff --git a/README.md b/README.md index e087cbd..bb345ec 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ You need to have the [Kalliope Core](https://github.com/kalliope-project/kalliope) installed before cloning this starter kit. +This starter kit has been tested with Kalliope v0.5.0. + # Kalliope starter config it This is an out of the box working configuration for an diff --git a/brain.yml b/brain.yml index 4d4cffb..c83c50e 100755 --- a/brain.yml +++ b/brain.yml @@ -27,9 +27,8 @@ - brains/systemdate.yml - brains/neurotransmitter.yml - - name: "default-synapse" - signals: - - order: "default-synapse" + - name: "order-not-found-synapse" + signals: [] neurons: - say: message: @@ -37,4 +36,19 @@ - "Non conosco quest'ordine" - "Non conosco quell'ordine" + - name: "on-triggered-synapse" + signals: [] + neurons: + - say: + message: + - "Si?" + - "Sto ascoltando" + - "La sto ascoltando" + - "Cosa posso fare per lei?" + - "Come posso aiutarla?" + - name: "on-start-synapse" + signals: [] + neurons: + - say: + message: "In attesa di ordini" diff --git a/brains/say.yml b/brains/say.yml index b0e18b5..3c0aed8 100644 --- a/brains/say.yml +++ b/brains/say.yml @@ -27,5 +27,4 @@ - order: "Ciao" neurons: - say: - message: - - "Ciao {{name}}" + message: "Ciao {{name}}" diff --git a/global_variables/variables.yml b/global_variables/variables.yml index c5e51a6..9420443 100644 --- a/global_variables/variables.yml +++ b/global_variables/variables.yml @@ -20,4 +20,4 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -name: kalliope +name: calliope diff --git a/settings.yml b/settings.yml index 5575f84..2e0f098 100644 --- a/settings.yml +++ b/settings.yml @@ -56,7 +56,7 @@ cache_path: "/tmp/kalliope_tts_cache" # Text to Spreech engines configuration # Available engine are: # - pico2wave -# - acapela +# - watson # - pico2wave # - googletts # - voicerss @@ -65,10 +65,6 @@ text_to_speech: - pico2wave: language: "it-IT" cache: True - - acapela: - language: "sonid15" - voice: "Manon" - cache: True - googletts: language: "it" cache: True @@ -102,47 +98,20 @@ players: convert_to_wav: True # --------------------------- -# Wake up answers +# Hooks # --------------------------- -# When Kalliope detect the hotword/trigger, he will select randomly a phrase in the following list -# to notify the user that he's listening for orders -random_wake_up_answers: - - "sì" - - "Sto ascoltando" - - "Ti sto ascoltando" - - "Cosa posso fare per lei" - - "Dica" - - "Come posso aiutarla" - - -# You can play a sound when Kalliope detect the hotword/trigger instead of saying something from -# the `random_wake_up_answers`. To active the 'random_wake_up_sounds' you must comment out the 'random_wake_up_answers' -# The file must be .wav or .mp3 format. -#random_wake_up_sounds: - # - "trigger/dong.wav" - # - "/my/personal/full/path/my_file.mp3" - -# --------------------------- -# On ready notification -# --------------------------- -# This section is used to notify the user when Kalliope is waiting for a trigger detection by playing a sound or speak a sentence out loud - -# This parameter define if you play the on ready answer: -# - always: every time Kalliope is ready to be awaken -# - never: never play a sound or sentences when kalliope is ready -# - once: at the first start of Kalliope -play_on_ready_notification: "never" - -# The on ready notification can be a sentence. Place here a sentence or a list of sentence. If you set a list, one sentence will be picked up randomly -on_ready_answers: - - "in attesa di ordini" - -# You can play a sound instead of a sentence. -# Remove the `on_ready_answers` parameters by commenting it out and use this one instead. -# Place here the path of the sound file. Files must be .wav or .mp3 format. -# on_ready_sounds: - # - "sounds/ding.wav" - # - "sounds/dong.wav" +hooks: + on_start: "on-start-synapse" + on_waiting_for_trigger: + on_triggered: "on-triggered-synapse" + on_start_listening: + on_stop_listening: + on_order_found: + on_order_not_found: "order-not-found-synapse" + on_mute: + on_unmute: + on_start_speaking: + on_stop_speaking: # --------------------------- # Rest API @@ -180,12 +149,8 @@ var_files: - global_variables/variables.yml # - variables2.yml -# --------------------------- -# Raspberry Pi GPIO settings -# --------------------------- -#rpi: -# pin_mute_button: 24 -# pin_led_started: 23 -# pin_led_muted: 17 -# pin_led_talking: 27 -# pin_led_listening: 22 +# ------------- +# Start options +# ------------- +#start_options: +# muted: False