From 8ab758a5cce7b747462c79b0a9ff2ce9db287c1c Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 28 Mar 2023 15:41:22 -0600 Subject: [PATCH] dockerfile at least can run stt though not sure how to pipe audio into it --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1e62b6e..d1ac102 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,12 +16,19 @@ RUN \ && rm ./larynx-tts_1.1.0_amd64.deb # stt #nogo since i need microphone #wait no i dont, i just need to set env or dont start +RUN \ + apt -y install portaudio19-dev python3-pyaudio python3-pip git \ + && python3 -m pip install \ + git+https://github.com/openai/whisper.git \ + soundfile \ + PyAudio \ + SpeechRecognition + +# sigusr1 # mayhem-party COPY --from=mayhem-party-builder /bin/mayhem-party /bin/mayhem-party -# sigusr1 - # entrypoint RUN echo 'date' > /entrypoint.sh \ && echo 'cleanup() { kill -9 $(jobs -p); wait; }; trap cleanup EXIT' >> /entrypoint.sh \