15min for tiny.en to transcribe 30s in docker oof
parent
f8ee67a8c5
commit
67de59a3ec
|
|
@ -1,13 +1,20 @@
|
||||||
FROM debian:buster
|
FROM debian:buster as builder
|
||||||
|
|
||||||
RUN apt -y update && apt -y install build-essential wget
|
RUN apt -y update && apt -y install build-essential wget ffmpeg
|
||||||
|
|
||||||
WORKDIR /tmp/whisper-cpp.git.d
|
WORKDIR /tmp/whisper-cpp.git.d
|
||||||
RUN wget https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.2.1.tar.gz \
|
RUN wget https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.2.1.tar.gz \
|
||||||
&& tar -xf ./*.tar.gz \
|
&& tar -xf ./*.tar.gz \
|
||||||
&& ls
|
&& mv ./whisper*/ ./git.d
|
||||||
RUN cd ./whisper*/ && bash ./models/download-ggml-model.sh tiny.en && make
|
WORKDIR /tmp/whisper-cpp.git.d/git.d
|
||||||
RUN cd ./whisper*/ && ./main -m models/ggml-tiny.en.bin -f samples/jfk.wav
|
RUN make && make samples
|
||||||
|
|
||||||
|
FROM debian:buster
|
||||||
|
RUN apt -y update && apt -y install curl
|
||||||
|
COPY --from=builder /tmp/whisper-cpp.git.d/git.d/ /whisper-cpp.git.d/
|
||||||
|
WORKDIR /whisper.d
|
||||||
|
RUN bash /whisper-cpp.git.d/models/download-ggml-model.sh tiny.en
|
||||||
|
|
||||||
ENTRYPOINT []
|
ENTRYPOINT []
|
||||||
CMD []
|
CMD /whisper-cpp.git.d/main -m /whisper-cpp.git.d/models/ggml-tiny.en.bin -f /whisper-cpp.git.d/samples/gb1.wav -t 4
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue