Skip to content

Commit

Permalink
Added base Docerkfile
Browse files Browse the repository at this point in the history
  • Loading branch information
w.jurasz committed Jul 16, 2019
1 parent 253b929 commit 6530660
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 1 deletion.
11 changes: 11 additions & 0 deletions ros1_roboy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ros1_sonosco_base

SHELL ["/bin/bash", "-c"]

WORKDIR /ros2
COPY . .

RUN git clone https://github.com/Roboy/sonosco.git
RUN cd sonosco; git checkout SWA-84-ros1-integration; pip3 install .
#RUN source /opt/ros/melodic/setup.bash
#ENTRYPOINT [ "bash", "-c", "source /opt/ros/melodic/setup.bash; python3 STT_srv.py" ]
2 changes: 1 addition & 1 deletion ros1_roboy/STT_srv.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import logging
import signal

Expand Down Expand Up @@ -29,7 +30,6 @@ def handle_int(sig, chunk):
got_a_sentence = True

signal.signal(signal.SIGINT, handle_int)
# TODO: fix
while not leave:
audio = audio_input.request_audio()
transcription = asr.infer(audio)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions sonosco/ros1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM missxa/melodic-crystal-roboy

SHELL ["/bin/bash", "-c"]

RUN apt-get install build-essential libssl1.0.0 libasound2 -y
RUN apt-get install portaudio19-dev python-pyaudio python3-pyaudio libsndfile1 -y
RUN pip3 install certifi==2019.3.9 \
chardet==3.0.4 \
idna==2.8 \
Pillow==6.0.0 \
PyAudio==0.2.11 \
PyYAML==5.1 \
requests==2.21.0 \
urllib3==1.24.3 \
opencv-python \
webrtcvad \
monotonic \
SpeechRecognition \
torch \
dataclasses \
python-Levenshtein \
librosa

0 comments on commit 6530660

Please sign in to comment.