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.57k stars 1.06k forks source link

PAUSE THRESHOLD? #1329

Closed botbahlul closed 1 year ago

botbahlul commented 1 year ago

Is there any way to set/change vosk 'pause threshold' in python?

Ussualy vosk will produce very long rec.PartialResult() before it finally return a rec.Result() if it's a long talk.

I need to reduce the 'pause threshold' (if any) so the rec.PartialResult() is not to long

TIA

nshmyrev commented 1 year ago

You can change pause length in model in file model.conf. Same as https://github.com/alphacep/vosk-api/issues/380

botbahlul commented 1 year ago

no any "programmatically" way to change it globally for dynamic selected language?

nshmyrev commented 1 year ago

No, we do not have API for that although such API is possible and would be nice to hav