Closed tansyxiao closed 7 months ago
Its ffi-napi bug, not vosk. Pretty common on the web, for example here:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
something wrong with your build environment
Solved by 1. uninstalling the current version of node.js; 2. using nvm windows to downgrade node.js to v11.15.0 (any version prior to this is not compatible with vosk for some reason, but this one works); 3. same old npm install vosk. On a separate note, didn't realize that Windows has to use a .exe install file for SoX, the npm installed one didn't work for SoX for some reason.
Trying to get a node.js Vosk project that was initially built on Mac to work on a Windows machine. Here's the log. error log.log