Closed waveywhite closed 1 month ago
This works:
words = "zero oh one two three four five six seven eight nine"
words = json.dumps(words.split())
rec = KaldiRecognizer(model, 16000, words)
this shoul be opened on vosk's github, not here.
According to the example at python/example/test_text.py we should be able to do this:
However this results in:
From the error it seems that the underlying C++ code is expecting an array so I also tried the following:
rec = KaldiRecognizer(model, 16000, ["zero", "oh", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"])
Which resulted in: