forked from synesthesiam/hassio-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Successful local tests after MQTT switch
- Loading branch information
1 parent
5f2d196
commit 01a5933
Showing
12 changed files
with
342 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__pycache__/ | ||
__pycache__/ | ||
.venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
FROM python:3.6 | ||
FROM resin/rpi-raspbian:stretch | ||
LABEL maintainer="Michael Hansen <[email protected]>" | ||
|
||
# Install system packages | ||
RUN apt-get update && apt-get install -y python3-dev build-essential \ | ||
RUN apt-get update && apt-get install -y python3 \ | ||
python3-dev build-essential \ | ||
python3-setuptools \ | ||
python3-scipy python3-numpy \ | ||
libhdf5-dev \ | ||
portaudio19-dev alsa-utils \ | ||
jq libnanomsg-dev | ||
portaudio19-dev \ | ||
alsa-utils \ | ||
jq | ||
|
||
RUN pip3 install --no-cache-dir wheel | ||
RUN pip3 install --no-cache-dir flask | ||
COPY etc/nanomsg-python-master.zip / | ||
|
||
# Install nanomsg | ||
RUN pip3 install --no-cache-dir /nanomsg-python-master.zip | ||
RUN pip3 install --no-cache-dir paho-mqtt | ||
|
||
# Install tensorflow | ||
RUN pip3 install --no-cache-dir tensorflow==1.8.0 | ||
|
@@ -21,9 +22,6 @@ RUN pip3 install --no-cache-dir tensorflow==1.8.0 | |
RUN pip3 install --no-cache-dir pkgconfig cython | ||
RUN pip3 install --no-cache-dir mycroft-precise==0.2.0 | ||
|
||
# Add random sounds for training | ||
#COPY etc/pbsounds /pbsounds | ||
|
||
# Patch precise runner to use acrecord instead of PyAudio | ||
COPY src/precise_runner/runner.py /usr/lib/python3.6/site-packages/precise_runner/ | ||
COPY src/precise/scripts/listen.py /usr/lib/python3.6/site-packages/precise/scripts/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"window_t": 0.1, "hop_t": 0.05, "buffer_t": 1.5, "sample_rate": 16000, "sample_depth": 2, "n_mfcc": 13, "n_filt": 20, "n_fft": 512} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
FROM python:3.6 | ||
LABEL maintainer="Michael Hansen <[email protected]>" | ||
|
||
RUN apt-get update && apt-get install -y python3-pip python3-dev \ | ||
RUN apt-get update && apt-get install -y python3 \ | ||
python3-pip python3-dev \ | ||
python3-setuptools \ | ||
build-essential swig \ | ||
jq \ | ||
libasound2-dev swig \ | ||
libasound2-dev \ | ||
portaudio19-dev \ | ||
libatlas-base-dev \ | ||
libnanomsg-dev | ||
libatlas-base-dev | ||
|
||
COPY snowboy-1.3.0.tar.gz / | ||
COPY nanomsg-python-master.zip / | ||
|
||
RUN pip3 install --no-cache-dir wheel | ||
RUN pip3 install --no-cache-dir flask | ||
RUN pip3 install --no-cache-dir flask paho-mqtt | ||
RUN pip3 install --no-cache-dir /snowboy-1.3.0.tar.gz | ||
RUN pip3 install --no-cache-dir /nanomsg-python-master.zip | ||
|
||
COPY models/ /models | ||
COPY *.py / | ||
|
Oops, something went wrong.