This part of the documentation explains the main configuration of Kalliope placed in the settings.md
file.
The trigger is the module detecting the hotword that will wake up Kalliope. Common usage of hotword include Alexa on Amazon Echo, OK Google on some Android devices and Hey Siri on iPhones.
Specify the name of the trigger module you want to use.
default_trigger: "trigger_name"
Available triggers for Kalliope are:
- snowboy
The hotword (also called a wake word or trigger word) detector is the engine in charge of waking up Kalliope.
Each Trigger has it own configuration. This configuration is passed as argument following the syntax bellow
triggers:
- trigger_name:
parameter_name: "value"
E.g, the default Snowboy trigger configuration is
triggers:
- snowboy:
pmdl_file: "trigger/snowboy/resources/model.pmdl"
See the complete list of available triggers here.
A Speech To Text(STT) is an engine used to translate what you say into a text that can be processed by Kalliope core. By default, Kalliope uses google STT engine.
The following syntax is used to provide the engine name:
default_speech_to_text: "stt_name"
E.g
default_speech_to_text: "google"
Get the full list of SST engine here.
Each STT has it own configuration. This configuration is passed as argument as shown bellow
speech_to_text:
- stt_name:
parameter_name: "value"
E.g:
speech_to_text:
- google:
language: "fr-FR"
- bing
Some arguments are required, some others are optional, please refer to the STT documentation to know available parameters for each supported STT.
A Text To Speech is an engine used to translate written text into a speech, into an audio stream. By default, Kalliope use Pico2wave TTS engine.
The following syntax is used to provide the TTS engine name
default_text_to_speech: "tts_name"
Eg
default_text_to_speech: "pico2wave"
Get the full list of TTS engine here.
Each TTS has it own configuration. This configuration is passed as argument following the syntax bellow
text_to_speech:
- tts_name:
parameter_name: "value"
E.g
text_to_speech:
- pico2wave:
language: "fr-FR"
- voxygen:
voice: "michel"
Some arguments are required, some other optional, please refer to the TTS documentation to know available parameters for each supported TTS.
When Kalliope detects your trigger/hotword/magic word, it lets you know that it's operational and now waiting for order. It's done by answering randomly one of the sentences provided in the variable random_wake_up_answers.
This variable must contain a list of strings as shown bellow
random_wake_up_answers:
- "You sentence"
- "Another sentence"
E.g
random_wake_up_answers:
- "Yes sir?"
- "I'm listening"
- "Sir?"
- "What can I do for you?"
- "Listening"
- "Yes?"
You can play a sound when Kalliope detects the hotword/trigger instead of saying something from
the random_wake_up_answers
.
Place here a list of full paths of the sound files you want to use. Otherwise, you can use some default sounds provided by Kalliope which you can find in /usr/lib/kalliope/sounds
.
By default two file are provided: ding.wav and dong.wav. In all cases, the file must be in .wav
or .mp3
format. If more than on file is present in the list,
Kalliope will select one randomly at each wake up.
random_wake_up_sounds:
- "local_file_in_sounds_folder.wav"
- "/my/personal/full/path/my_file.mp3"
E.g
random_wake_up_sounds:
- "ding.wav"
- "dong.wav"
- "/my/personal/full/path/my_file.mp3"
**Note: ** If you want to use a wake up sound instead of a wake up answer you must comment out the
random_wake_up_answers
section. E.g:# random_wake_up_answers:
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 notification:
always
: every time Kalliope is ready to be awakennever
: never play a sound or sentences when kalliope is readyonce
: at the first start of Kalliope
E.g:
play_on_ready_notification: always
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
E.g:
on_ready_answers:
- "I'm ready"
- "Waiting for order"
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.
E.g:
on_ready_sounds:
- "ding.wav"
- "dong.wav"
- "/my/personal/full/path/my_file.mp3"
**Note: ** If you want to use a on ready sound instead of a on ready you must comment out the
random_on_ready_answers
section. E.g:# random_on_ready_answers:
A Rest API can be activated in order to:
- List synapses
- Get synapse's detail
- Run a synapse
For the complete API ref see the REST API documentation
Settings examples:
rest_api:
active: True
port: 5000
password_protected: True
login: admin
password: secret
allowed_cors_origin: "*"
To enable the rest api server.
The listening port of the web server. Must be an integer in range 1024-65535.
If True
, the whole api will be password protected.
Login used by the basic HTTP authentication. Must be provided if password_protected
is True
Password used by the basic HTTP authentication. Must be provided if password_protected
is True
If you want to allow request from external application, you'll need to enable the CORS requests settings by defining authorized origins. To do so, just indicated the origins that are allowed to leverage the API. The authorize values are:
False to forbid CORS request.
allowed_cors_origin: False
or either a string or a list:
allowed_cors_origin: "*"
(in case of "*", all origins are accepted). or
allowed_cors_origin:
- 'http://mydomain.com/*'
- 'http://localhost:4200/*'
Remember that an origin is composed of the scheme (http(s)), the port (eg: 80, 4200,…) and the domain (mydomain.com, localhost).
Run a default synapse when Kalliope can't find the order in any synapse.
default_synapse: "synapse-name"
E.g
default_synapse: "Default-response"
The resources directory is the path where Kalliope will try to load community modules like Neurons, STTs or TTSs. Set a valid path is required if you want to install community neuron. The path can be relative or absolute.
resource_directory:
resource_name: "path"
E.g
resource_directory:
neuron: "resources/neurons"
stt: "resources/stt"
tts: "resources/tts"
trigger: "/full/path/to/trigger"
Now your settings are ok, you can start creating the brain of your assistant.