Add hey-mycroft model to snap

pull/143/head
Åke Forslund 2020-04-14 09:52:28 +02:00
parent b045a9cea6
commit 89fc7b9dd9
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,8 @@ The package version is extracted from the setup.py script to remain consistent w
Since Precise uses pyaudio, ALSA is required for things to work. This requires the [alsa-mixin](https://snapcraft-alsa.readthedocs.io/en/latest/snapcraft_usage.html) and results in some minor issues that needs to be handled. Library conflicts may occur if audio packages are included as part of the main application part, making them appear twice in conflicting versions. This is the reason that libportaudio2 and pulseaudio are in the stage-packages for the alsa-mixin part.
The snap package also includes a the current pretrained "hey mycroft" model accessed through `/snap/mycroft-precise/current/hey-mycroft/hey-mycroft.pb`
## Plugs
Plugs allows connecting the snap to the rest of the system, without any specified plugs the application will run without being able to access the system outside of the snap container, a read-only file system dedicated to the application.

View File

@ -62,6 +62,12 @@ parts:
- python3-h5py
- swig
- libatlas3-base
hey-mycroft:
plugin: dump
source: https://github.com/MycroftAI/precise-data/raw/models/hey-mycroft.tar.gz
source-type: tar
organize:
'*': /hey-mycroft/
layout:
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib: