-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support for model downloader UI #871
base: master
Are you sure you want to change the base?
Conversation
Added the VOSK model downloader for vosk-api! It scraps for models on https://alphacephei.com/vosk/models, it lists them, it downloads them, unzip and delete the zip file.. It does everything :) We need to find a better location than the added folder...
Hi. Thank you for your contribution! Actually there is no need to scrape page, we have https://alphacephei.com/vosk/models/model-list.json which contains information about models in machine-readable format. We also prefer command line instead of UI, there is no much need for GUI I think. @Vadim-cloud-star, take a look on this. |
Thank you! I didn't know about the json! |
Sorry for confusion. I never thought NLTK has a GUI
That would be nice if you have time / courage. @Vadim-cloud-star works on it as a part of transcriber patch, but he hasn't started yet I think. |
On ros-vosk I solved it completely because I know where I want my model. (I pushed it directly alphacep/ros-vosk@aa4e6fe ) |
Ok, great. Lets have a GUI then. We will probably need a list of installed model and a way to uninstall too. Like in NLTK (I just checked the screenshot). Lets keep it open, we will work on it too, hopefully next week. |
I will happily work on it too. |
Sure, I'd be happy to catch you when you are available. On any messenger or meeting. |
Of course! |
* methods get_model_by_name, get_model_by_lang, get_model were added into the model class * importing modules changed to using components; introduced constant MODELS_HOME_DIR; simplified code * added new model folders into init; changed samples and transcriber bin for new mode loader * changed back in cli.py lang arg to args.lang * added 3 directories instead of 1 to check for models * cli.py: added 3 args instead of 1 for model; __init__.py: changed script get_model_path for run get_model_by_name/lang inside current directory * deleted default env var * cli.py: changed arg_name; __init__.py: changed const name, changed model loading only for last directory * deleted unused method * changed by_name, by_lang methods, added download_model method * deleted env variable initialization * deleted print() * deteled unused modules * added progress_bar, added folder AppData/Local/vosk for model search * changed download_model methond; added my_hook method
Hi! We have merged the command line code to download model automatically. We could have UI too, so I'm renaming the issue. |
@nshmyrev could you please indicate in https://alphacephei.com/vosk/models/model-list.json whether or not each model supports grammars (lookahead/precompiled HCLG graph)? |
@nalbion you can check "type" field. "small" and "big-lgraph" support grammar, "big" doesn't |
thanks
|
@nshmyrev Added the VOSK model downloader for vosk-api!
It scraps for models on https://alphacephei.com/vosk/models, it lists them, it downloads them, unzip and delete the zip file..
It does everything :)
We need to find a better location than the added folder...