Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Speech Recognizer Module for IoT Edge GA
- Loading branch information
1 parent
e683e61
commit 138f2fb
Showing
8 changed files
with
80 additions
and
32 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
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
47 changes: 45 additions & 2 deletions
47
seeed/3-speech-recognizer/modules/speech-to-text/Dockerfile.arm32v7
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,8 +1,51 @@ | ||
FROM microsoft/azureiotedge-seeed-speech-to-text:1.0-deps-arm32v7 | ||
FROM resin/rpi-raspbian:stretch | ||
|
||
RUN [ "cross-build-start" ] | ||
|
||
WORKDIR /app | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
wget \ | ||
swig \ | ||
build-essential \ | ||
i2c-tools \ | ||
libpulse-dev \ | ||
libboost-python1.62.0 \ | ||
libasound2-dev \ | ||
libopenjp2-7-dev \ | ||
libjpeg-dev \ | ||
portaudio19-dev \ | ||
python-pyaudio \ | ||
python-pil \ | ||
python-requests \ | ||
python-pocketsphinx \ | ||
pocketsphinx | ||
|
||
COPY requirements.txt ./ | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip3 install --upgrade setuptools | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
# RUN git clone --recursive https://github.com/jessebenson/pocketsphinx-python \ | ||
# && cd /app/pocketsphinx-python \ | ||
# && python3 setup.py install \ | ||
# && rm -rf /app/pocketsphinx-python | ||
|
||
# Expose the port | ||
EXPOSE 80 | ||
|
||
COPY fonts/. ./fonts/ | ||
COPY *.py ./ | ||
|
||
ENTRYPOINT [ "python", "main.py" ] | ||
RUN [ "cross-build-end" ] | ||
|
||
# Run the flask server for the endpoints | ||
CMD ["python3", "-u", "main.py"] |
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
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
7 changes: 7 additions & 0 deletions
7
seeed/3-speech-recognizer/modules/speech-to-text/requirements.txt
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,7 @@ | ||
azure-iothub-device-client | ||
smbus2 | ||
requests | ||
luma.oled | ||
RPi.GPIO | ||
pyaudio | ||
pocketsphinx |