* 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
This is a port of the recent addition of commit 7ccf743, adding
`KaldiRecognizer.SetWords(True)` to the other examples dealing with
subtitles to the WebVTT example.
Without this, the example will not work with the most recent `vosk`
(0.3.30) Python package.
This patch is a small extension to the WebVTT example which allows to
directly save the WebVTT output to a file like this:
./test_webvtt.py test.wav out.vtt
This patch adds an example for using webvtt-py to generate WebVTT files
from Vosk output. This is similar to the SRT example but still very
useful for generating an example video subtitle usable in web contexts.