alphacep / alphacep/vosk-api

VOSK not compatible with newer NodeJS Versions because of ffi-napi dependency

オープン
#1,613 コメント 15 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
15.1k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

説明

I do have the issue that VOSK will only run in older NodeJS versions, since ffi-napi package seems to be incompatible with newer node versions 18.7^ .

This was tested on multiple windows 11 machines as well as within Debian Bookworm (Docker Dev Container)

Reproduce:

nvm install 18.7
nvm use 18.7
npm install vosk -> ERRORs

nvm install 18.4
nvm use 18.4
npm install vosk -> SUCCESS

nvm install 18.7
nvm use 18.7
npm install ffi-napi -> ERRORs

nvm install 18.4

nvm use 18.4
npm install ffi-napi -> SUCCESS

To isolate this: If I try to install ffi-napi without vosk in for example Node 18.7^ , I already get errors and ffi-napi can not be installed anymore. Since VOSK depends on ffi-napi, VOSK will fail to install on those versions.

Is there anyway to use a maintained dependency instead of ffi-napi? ffi-napi isn't maintained in years.
Would ffi-rs be an alternative to use here?

[2024-07-26T09_04_45_570Z-debug-0.log](https://github.com/user-attachments/files/16389403/2024-07-26T09_04_45_570Z-debug-0.log)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。