alphacep / vosk-api

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

PyPi version out of date, example not working #1656

Closed studiostephe closed 3 hours ago

studiostephe commented 4 hours ago

I was trying to adjust EndpointerMode as seen in the example at: https://github.com/alphacep/vosk-api/blob/master/python/example/test_ep.py

but it failed with: AttributeError: 'KaldiRecognizer' object has no attribute 'SetEndpointerMode'

I looked into what vosk version I have and discovered that pip installs version 0.3.45. The release notes for 0.3.50 say "Endpointer config updates" so I assume that's all I need.

As you state in your docs, "compilation is not straightforward and includes several nuances," so it would be great to have an easy way to install the latest version on my raspberry pi 5.

Thank you for all your work!

nshmyrev commented 3 hours ago

Basically same as https://github.com/alphacep/vosk-api/issues/1622

We need to release 0.3.50 one day. Thanks