1
0
Fork 0

Reset to default kalliope starter kit for french

This commit is contained in:
Florian RICHER 2022-04-30 15:06:58 +02:00
parent fa00cfbf8d
commit f1ef5ec58a
24 changed files with 150 additions and 1078 deletions

View file

@ -15,38 +15,40 @@ default_trigger: "snowboy"
# - snowboy
triggers:
- snowboy:
pmdl_file: "trigger/kalliope-FR-20samples.pmdl"
keywords:
- file_path: "trigger/kalliope-FR-90samples.pmdl"
# ---------------------------
# Speech to text
# ---------------------------
# This is the STT that will be used by default
default_speech_to_text: "google"
default_speech_to_text: "vosk"
# Spreech to Text engines configuration
# Speech to Text engines configuration
# Available engine are:
# - google (via SpeechRecognition)
# -
# - wit
# - bing
# - apiai
# - houndify
# - cmusphinx (must be installed first)
speech_to_text:
- cmusphinx:
-hmm: "/usr/local/lib/python2.7/dist-packages/pocketsphinx/model/fr"
-lm: "/usr/local/lib/python2.7/dist-packages/pocketsphinx/model/fr.lm.bin"
-dict: "/usr/local/lib/python2.7/dist-packages/pocketsphinx/model/fr.dict"
- google:
language: "fr-FR"
- wit:
key: "B5JI3YUSLYOYWNIDBINBVM34XUODME2K"
key: "fakekey" # example : "B5JI3YUSLYOYWNIDBINBVM34XUODME2K"
- bing: # API not working : credential fails ..
key: "9e48ddaf75904838bedc11aea6b36fb0"
- apiai: # Fail retriving the text from the audio file ..
key: "e0cbff154af44944a6b9f82c0668b527"
key: "fakekey" # example : "9e48ddaf75904838bedc11aea6b36fb0"
- apiai:
key: "fakekey" # example : "e0cbff154af44944a6b9f82c0668b527"
language: "fr"
- houndify: # In the online documentation but Not implemented yet in the speech recognition lib ..?
key: "7zj90T7qAV74OYXk4X4vI2Xhk7wPsJu4aEZ0G5Ll-BMmV1JGtFpCxtSH9SmTY4G3bpEJ7a5y_GTQid-CAKI6vw=="
client_id: "lN4JXeaSticbSo9-llczbA=="
- houndify:
key: "fakekey" # example : "7zj90T7qAV74OYXk4X4vI2Xhk7wPsJu4aEZ0G5Ll-BMmV1JGtFpCxtSH9SmTY4G3bpEJ7a5y_GTQid-CAKI6vw=="
client_id: "fakeclientid" # example : "lN4JXeaSticbSo9-llczbA=="
- vosk:
log-level: -1
#- cmusphinx
# ---------------------------
# Text to speech
@ -59,22 +61,14 @@ cache_path: "/tmp/kalliope_tts_cache"
# Text to Spreech engines configuration
# Available engine are:
# - pico2wave
# - voxygen
# - watson
# - pico2wave
# - googletts
# - voicerss
text_to_speech:
- espeak:
voice: "fr"
variant: "f1"
cache: True
- pico2wave:
language: "fr-FR"
cache: True
- voxygen:
voice: "Agnes"
cache: True
- acapela:
language: "sonid15"
voice: "Manon"
cache: True
- googletts:
language: "fr"
cache: True
@ -82,48 +76,45 @@ text_to_speech:
language: "fr-fr"
cache: True
# ---------------------------
# players
# ---------------------------
# This is the sound player that will be used by default
default_player: "mplayer"
# players configuration
# Available engine are:
# - mplayer
# - pyalsaaudio # no mp3
# - pyaudioplayer # no mp3
# - sounddeviceplayer # no mp3
players:
- mplayer: {}
- pyalsaaudio:
device: "default"
convert_to_wav: True
- pyaudioplayer:
convert_to_wav: True
- sounddeviceplayer:
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:
- "Oui monsieur?"
- "Je vous écoute"
- "Monsieur?"
- "Que puis-je faire pour vous?"
- "J'écoute"
- "Oui?"
# 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:
- "en attente"
# 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_processed_synapses:
on_deaf:
on_undeaf:
on_start_speaking:
on_stop_speaking:
on_stt_error:
# ---------------------------
# Rest API
@ -134,17 +125,43 @@ rest_api:
password_protected: True
login: admin
password: secret
# ---------------------------
# Default Synapse
# ---------------------------
# Specify an optional default synapse response in case your order is not found.
default_synapse: "default-synapse"
allowed_cors_origin: "*"
# ---------------------------
# resource directory path
#
# Accepted types :
# - neuron
# - stt
# - tts
# - trigger /!\ we do not manage trigger properly yet...
# - signal
# ---------------------------
resource_directory:
neuron: "resources/neurons"
stt: "resources/stt"
tts: "resources/tts"
signal: "resources/signal"
trigger: "resources/trigger"
#
# ---------------------------
# Global files variables
# /!\ If a variable is defined in different files, the last file defines the value.
# ---------------------------
var_files:
- global_variables/variables.yml
# - variables2.yml
# -------------
# Options
# -------------
options:
# energy_threshold: 4000 # Speech to text option
# adjust_for_ambient_noise_second: 1 # Speech to text option
# stt_timeout: 5 # Speech to text option
deaf: False
mute: False
# send hit to anonymously evaluate the global usage of Kalliope app by users
send_anonymous_usage_stats: True