On Thu Feb 2 10:08:06 2023 +0000, Rémi Bernon wrote:
Pretty sure you want the lookup order to be `VOSK_MODEL_PATH` > `~/.cache/vosk` > `/usr/share`? I think the XDG_CACHE_HOME / HOME could be factored together a bit more.
I took the load order from https://github.com/alphacep/vosk-api/blob/master/python/vosk/__init__.py#L18 . `VOSK_MODEL_PATH` > `/usr/share` > `~/.cache/vosk`
Maybe `if ((env = getenv("XDG_CACHE_HOME")) || (env = getenv("HOME")))` with same body?