Zebediah Figura (@zfigura) commented about configure.ac:
WINE_WARNING([No sound system was found. Windows applications will be silent.])
fi
+dnl **** Check for Vosk **** +if test "$ac_cv_header_vosk_api_h" = "yes" +then
- WINE_CHECK_SONAME(vosk,vosk_recognizer_new,[AC_SUBST(VOSK_LIBS,"-lvosk")
ac_cv_lib_vosk=yes
AC_DEFINE_UNQUOTED(HAVE_VOSK,1,[Define to 1 if Vosk is available])],,)
+fi +WINE_NOTICE_WITH(vosk,[test "x$ac_cv_lib_vosk" != xyes],
[libvosk ${notice_platform}development files not found (or too old), Vosk aka speech recognition won't be supported.],
[enable_vosk])
This isn't the only library to do it this way (I'm guessing this was copy-pasted from OpenCL or something), but the unfortunate thing is that this message will still be printed if --without-vosk is specified.