Trigger for Kalliope
kalliope install --git-url https://github.com/kalliope-project/kalliope_trigger_porcupine.git
parameter | required | type | default | choices | comment |
---|---|---|---|---|---|
keywords | TRUE | string | |||
ppn_file | TRUE | string | Path to the porcupine wake word. The path can be absolute or relative to the brain file | ||
sensitivity | FALSE | string | 0.5 | between 0 and 1 | Increasing the sensitivity value lead to better detection rate, but also higher false alarm rate |
input_device | FALSE | integer | default | Select the input device |
# This is the trigger engine that will catch your magic work to wake up Kalliope. With porcupine we need different keywords for different platforms. The example use the wake word "porcupine" for the raspberry.
default_trigger: "porcupine"
# Trigger engine configuration
triggers:
- porcupine:
keywords:
- keyword:
ppn_file: "trigger/porcupine/porcupine_raspberrypi.ppn"
# To use multiple keywords with different sensitivities
triggers:
- porcupine:
keywords:
- keyword:
ppn_file: "trigger/porcupine/porcupine_raspberrypi.ppn"
sensitivity: 0.4
- keyword:
ppn_file: "trigger/porcupine/blueberry_raspberrypi.ppn"
sensitivity: 0.3
You can find existing keywords here. To create your own wake word visit Picovoice Console. Note: You can only create wakewords for Linux x86_64 systems. Raspberry is restricted.
You have to add the path to the trigger folder in your settings. E.g.:
# ---------------------------
# resource directory path
# ---------------------------
resource_directory:
trigger: "resources/trigger"
neuron: "resources/neurons"
stt: "resources/stt"
tts: "resources/tts"