On Mon Feb 20 18:55:31 2023 +0000, Bernhard Kölbl wrote:
The idea behind these, is to move the point of failing as far back as possible in case libvosk.so is missing, so we don't rely on error checking in DLLmain and can just work with the unix call return values.
You should make this explicit rather than trying to hide the problem under the carpet.
Simplest way would be to check for `vosk_handle` not being NULL at the start of each recognizer entry points, returning `STATUS_UNSUPPORTED`.