Hello. I'm trying to import 'SrtResult' in order to change "words_per_line" option as writen here : https://github.com/alphacep/vosk-api/blob/master/python/vosk/__init__.py#L199
However I'm getting the following error:
Traceback (most recent call last): File "C:\Users\Nathan\Documents\RSL\index.py", line 18, in <module> from vosk import Model, KaldiRecognizer, SrtResult, SetLogLevel ImportError: cannot import name 'SrtResult' from 'vosk' (C:\Users\Nathan\AppData\Local\Programs\Python\Python311\Lib\site-packages\vosk\__init__.py)
Since we have to import "SetLogLevel", it seems logic in my eyes to also can import "SrtResult".
Thanks for your answer.
Hello. I'm trying to import 'SrtResult' in order to change "words_per_line" option as writen here : https://github.com/alphacep/vosk-api/blob/master/python/vosk/__init__.py#L199 However I'm getting the following error:
Traceback (most recent call last): File "C:\Users\Nathan\Documents\RSL\index.py", line 18, in <module> from vosk import Model, KaldiRecognizer, SrtResult, SetLogLevel ImportError: cannot import name 'SrtResult' from 'vosk' (C:\Users\Nathan\AppData\Local\Programs\Python\Python311\Lib\site-packages\vosk\__init__.py)
Since we have to import "SetLogLevel", it seems logic in my eyes to also can import "SrtResult". Thanks for your answer.