alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.37k stars 1.04k forks source link

Setting endpoint rules silence at runtime #1462

Closed m1adow closed 7 months ago

m1adow commented 7 months ago

Hi! I have a small console application written on .NET for offline text recognition. Models are making huge sentences when audio has short pauses between phrases. I want to fix it. So I have found that the endpoint rule of silence (--endpoint.rule.min-trailing-silence) can help me with this problem. I wrote a workaround for changing values in model configurations but for changes to take place, the model needs to be reloaded which can take a while. Is there any way to implement it without reloading the model?

nshmyrev commented 7 months ago

We have ongoing discussion here

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

Same as #1348