Simple api over mozilla deepspeech voice recognition engine.
POST /api/v1/stt - Just look at curl command below.
Speech data may be provided in whatever audio format which ffmpeg is able to convert to wav,
so you probably don't have to worry about this at all.
$ curl -X POST -F "[email protected]" http://127.0.0.1:8000/api/v1/stt
{"text":"experience proves this","time":0.9638644850056153}
git clone [email protected]:zelo/deepspeech-rest-api.git
- Enter
<repository_root>
- Run
wget https://github.com/mozilla/DeepSpeech/releases/download/v0.9.1/deepspeech-0.9.1-models.pbmm -O model.pbmm
- Enter
<repository_root>
- Run
docker-compose up
- Build image
docker build . --tag zelo/deepspeech-rest-api:0.9.1
- Run
docker run --rm --publish=127.0.0.1:8000:8000 --volume=$(pwd)/model.pbmm:/app/model.pbmm:ro zelo/deepspeech-rest-api:0.9.1
Just look at the content of Dockerfile
it contains complete instruction to setup app under debian