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

how to disable warn logs? #1357

Closed munstr closed 1 year ago

munstr commented 1 year ago

Is there a function similar to SetLogLevel to disable logs with output "[WARN] Overflow - reader is not reading fast enough." How to disable such logs?

nshmyrev commented 1 year ago

Those are from portaudio, not from vosk, you have to ask there.

In general you need more lightweight model as this warning means accuracy suffers a lot.

nshmyrev commented 1 year ago

Like I wrote, you need to use sounddevice, not pyaudio

munstr commented 1 year ago

Thanks