From 8075bbe5eca7f7c162e2a84f23e14313d2a26b81 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 30 Apr 2022 17:37:45 +0200 Subject: [PATCH] First version --- .python-version | 1 + README.md | 14 ++++++++++++++ configure_env.sh | 12 ++++++++++++ settings.yml | 1 + 4 files changed, 28 insertions(+) create mode 100644 .python-version create mode 100755 configure_env.sh diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..dc3138a --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9.11 \ No newline at end of file diff --git a/README.md b/README.md index 8913a40..fb6f75a 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,20 @@ Too fix it, you can use script in bellow sudo ./fix_snowboy_bin.sh ``` +# pico2wave + +```bash +sudo pamac install svox-pico-bin +``` + +# Arch linux + +You must use pyenv because pyaudio crash with python3.10 + +```bash +pacman -S pyenv +``` + # kalliope starter config fr This is an out of the box working configuration for french kalliope user. diff --git a/configure_env.sh b/configure_env.sh new file mode 100755 index 0000000..41bd2c9 --- /dev/null +++ b/configure_env.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Use to install first time +pyenv install +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init --path)" +pip install kalliope +kalliope install --git-url https://github.com/veka-server/kalliope-vosk.git +# wget https://alphacephei.com/vosk/models/vosk-model-fr-0.22.zip +unzip -j vosk-model-fr-0.22.zip -d resources/stt/vosk/model-fr-full/ +# cp /usr/lib/python3.10/site-packages/snowboy/_snowboydetect.so $HOME/.pyenv/versions/3.9.11/lib/python3.9/site-packages/kalliope/trigger/snowboy/$(uname -m)/python39/ \ No newline at end of file diff --git a/settings.yml b/settings.yml index 434dfdf..477cc96 100644 --- a/settings.yml +++ b/settings.yml @@ -48,6 +48,7 @@ speech_to_text: client_id: "fakeclientid" # example : "lN4JXeaSticbSo9-llczbA==" - vosk: log-level: -1 + language: "resources/stt/vosk/model-fr" #- cmusphinx # ---------------------------