-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
speech_recognition does not implemented the vosk wrapper #613
Comments
version 3.8.1 doesn't include vosk (master does, so I guess it will be in the next release?): I'm also interested in using Vosk as it seems to be the only offline option that actually works. |
Yeah same problem, any fix? |
As @Enhex mentioned (Thanks! ❤️),
For example if you install from PyPI,
>>> import speech_recognition as speechreco
>>> recognizer = speechreco.Recognizer()
>>> "recognize_vosk" in dir(recognizer)
False Temporary workaroundClone this repository and install from source (👉See simpler command by @nshmyrev #613 (comment) ) $ # I recommend to prepare another virtual environment for source installation
$ git clone https://github.com/Uberi/speech_recognition.git
$ cd speech_recognition/
$ pip install -e . >>> import speech_recognition as speechreco
>>> recognizer = speechreco.Recognizer()
>>> "recognize_vosk" in dir(recognizer)
True Thanks for reporting this issue. ❤️ I will prepare for PyPI release. |
You can do it with a single pip command actually:
|
@nshmyrev Thanks! Your comment gave me suggestions and helped me realize the misunderstanding. |
I'm trying to use speech_regognition with vosk. But when I try to call the vosk method I receive the following message:
The method is:
It looks like the vosk wrapper is not implemented at the version:
vosk - 0.3.42
python - 3.10.4
Need I use a downgrade version?
I follow the sample:
The text was updated successfully, but these errors were encountered: