alphacep / vosk-server

WebSocket, gRPC and WebRTC speech recognition server based on Vosk and Kaldi libraries
Apache License 2.0
869 stars 241 forks source link

Custom model seems not working in docker #212

Closed kundanashish closed 1 year ago

kundanashish commented 1 year ago

I fine tuned en-in for random text. It is working fine when running directly in .net api check screenshot but not when I host it in docker passing custom model location image

sample command for docker I used sudo docker run -d -p 2700:2700 -v /opt/model:/opt/custommodel alphacep/kaldi-en-in:latest image

Please refer to this link for the model file and text on which it is fine tunned

https://graticare-my.sharepoint.com/:u:/p/kundan/EXCG_NiKRrxLuEHJaIu53w8Be5miIDV0JIZ-2ToLXWoLkQ?e=x44BSs

Please help

nshmyrev commented 1 year ago

What does not work exactly? You didn't describe the problem, what is the output you see?

You can remove -d from docker command to see the output.

kundanashish commented 1 year ago

sorry seems something missing at my end thanks for guiding below is the error image but I have placed the files image

nshmyrev commented 1 year ago

You just need to figure proper option for path mapping. Not sure what is your host path, but probably you need -v /opt/vosk-something-else:/opt/vosk-model-en-in/model instead of your current /opt/model

kundanashish commented 1 year ago

image When I run it like this. it is not giving any error but accuracy is not good. Seems its still not using custom model.

Yes I am trying. Thanks for the guidance.

kundanashish commented 1 year ago

Hi @nshmyrev Yes you are right. My bad I passed the parameters interchangeably. its working fine now.

Thanks again for the great help so quickly.