User Tools

Site Tools


informatica:speech_to_text

This is an old revision of the document!


Speech to text

https://github.com/alphacep/vosk-api

https://alphacephei.com/vosk/install

apt-get install python-is-python3 python-is-python3 python3-pip ffmpeg
pip3 install vosk
vosk-transcriber -l es -i fichero.wav -o texto.txt

Dockerfile

FROM debian

RUN apt-get update && apt-get install -y python-is-python3 python-is-python3 python3-pip ffmpeg
RUN pip3 install vosk

WORKDIR /audio

ENTRYPOINT ["bash", "-c", "vosk-transcriber -l es -i $1 -o texto.txt >/dev/null 2>&1 && cat texto.txt", "--"]
docker run --rm -v "$PWD":/audio local/speechtotext fichero.wav
informatica/speech_to_text.1679274463.txt.gz · Last modified: 2023/03/20 01:07 by jose