diff --git a/CHANGELOG.md b/CHANGELOG.md index e1e61e78..a0c19b59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +v0.7.0 / 2020-07-28 +=================== +- Fix: fix volume neuron when decrease the volume +- Fix: #612 kalliope_memory now available from file_template +- Fix: remove output warnings +- Enhancement: pause the trigger instead of killing it to save time in the process +- Enhancement: add support for pulseaudio +- Enhancement: refactor speech reco class to enhance performance +- Enhancement: prevent kalliope from crashing when a neuron fail to execute +- Enhancement: add multiple model support to Snowboy trigger +- Enhancement: add support of python 3.8 for x86_64 systems + v0.6.0 / 2020-02-29 =================== - Fix: fix stt correction. order was not updated diff --git a/docker/snowboy-compile/compile_snowboy_python38.dockerfile b/docker/snowboy-compile/compile_snowboy_python38.dockerfile new file mode 100644 index 00000000..82219a9f --- /dev/null +++ b/docker/snowboy-compile/compile_snowboy_python38.dockerfile @@ -0,0 +1,24 @@ +# build last version +# docker build --force-rm=true -t compile_snowboy_python38 -f compile_snowboy_python38.dockerfile . + +# build specified version +# docker build --force-rm=true --build-arg SNOWBOY_VERSION=1.1.1 -t compile_snowboy_python38 -f compile_snowboy_python38.dockerfile . + +# compile into local /tmp/snowboy +# docker run -it --rm -v /tmp/snowboy:/data compile_snowboy_python38 + +FROM python:3.8-buster + +ARG SNOWBOY_VERSION="1.3.0" + +RUN apt-get update +RUN apt-get install -y git make g++ python3-dev libatlas3-base libblas-dev \ + gfortran vim wget libpcre3-dev libtool libatlas-base-dev swig + +RUN wget https://github.com/Kitt-AI/snowboy/archive/v${SNOWBOY_VERSION}.tar.gz && tar xzf v${SNOWBOY_VERSION}.tar.gz + +RUN cd /snowboy-${SNOWBOY_VERSION}/swig/Python3 && make +RUN cd /snowboy-${SNOWBOY_VERSION}/swig/Python3 && python3 -c "import _snowboydetect; print('OK')" +# compiled binary will be placed into data folder +RUN mkdir /data +CMD cp /snowboy-*/swig/Python3/*.so /data diff --git a/docs/installation/ubuntu.md b/docs/installation/ubuntu.md index 96bc2034..88fcd393 100644 --- a/docs/installation/ubuntu.md +++ b/docs/installation/ubuntu.md @@ -16,6 +16,20 @@ sudo apt install -y \ libportaudio2 libportaudiocpp0 ffmpeg ``` +### Ubuntu 20.04 + +Install some required system libraries and software: + +```bash +sudo apt update +sudo apt install -y \ + git python3-dev libsmpeg0 libttspico-utils flac \ + libffi-dev libssl-dev portaudio19-dev build-essential \ + libatlas3-base mplayer wget vim sudo locales alsa-base alsa-utils \ + pulseaudio-utils libasound2-plugins python3-pyaudio libasound-dev \ + libportaudio2 libportaudiocpp0 ffmpeg +``` + ## Install lasted version of the python package manager Install the last release of python-pip diff --git a/kalliope/_version.py b/kalliope/_version.py index 426b9dc0..b1bfeaea 100644 --- a/kalliope/_version.py +++ b/kalliope/_version.py @@ -1,2 +1,2 @@ # https://www.python.org/dev/peps/pep-0440/ -version_str = "0.6.1" +version_str = "0.7.0" diff --git a/kalliope/settings.yml b/kalliope/settings.yml index 33294507..d1a45a94 100644 --- a/kalliope/settings.yml +++ b/kalliope/settings.yml @@ -15,8 +15,8 @@ default_trigger: "snowboy" # - snowboy triggers: - snowboy: - pmdl_file: "trigger/snowboy/resources/kalliope-FR-117samples.pmdl" - + keywords: + - file_path: "kalliope/trigger/snowboy/resources/kalliope-FR-162samples.pmdl" # --------------------------- # Speech to text diff --git a/kalliope/trigger/snowboy/resources/kalliope-FR-117samples.pmdl b/kalliope/trigger/snowboy/resources/kalliope-FR-162samples.pmdl similarity index 100% rename from kalliope/trigger/snowboy/resources/kalliope-FR-117samples.pmdl rename to kalliope/trigger/snowboy/resources/kalliope-FR-162samples.pmdl diff --git a/kalliope/trigger/snowboy/x86_64/python38/_snowboydetect.so b/kalliope/trigger/snowboy/x86_64/python38/_snowboydetect.so new file mode 100755 index 00000000..2da5844e Binary files /dev/null and b/kalliope/trigger/snowboy/x86_64/python38/_snowboydetect.so differ