alphacep / alphacep/vosk-api

Dynamic Linking Error Win32 error 127

Aperta
#755 11 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
15.1k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm trying to get vosk to work inside nodeJS on Windows:
* Window 10 21H1 (OS Build 19043.1288)
* NodeJS v16.10.0
* npm 7.24.2
* vosk 0.3.32

But i get this error:
```
> node index.js

C:\Users\...\repos\subtitle-syncer\node_modules\ffi-napi\lib\dynamic_library.js:75
throw new Error('Dynamic Linking Error: ' + err);
^

Error: Dynamic Linking Error: Win32 error 127
at new DynamicLibrary (C:\Users\...\repos\subtitle-syncer\node_modules\ffi-napi\lib\dynamic_library.js:75:11)
at Object.Library (C:\Users\...\repos\subtitle-syncer\node_modules\ffi-napi\lib\library.js:47:10)
at Object. (C:\...\repos\subtitle-syncer\node_modules\vosk\index.js:84:21)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (C:\Users\...\repos\subtitle-syncer\index.js:67:30)

Process finished with exit code 1
```

I've already tried or read through the threads on:
* https://github.com/alphacep/vosk-api/issues/538
* https://github.com/alphacep/vosk-api/issues/457
This doesn't seem to work/change the error. eg: adding C:\Users\...\repos\subtitle-syncer\node_modules\vosk\lib to my PATH env variable.

I installed vosk using the python command:
```
>pip3 install vosk
Collecting vosk
Downloading vosk-0.3.32-py3-none-win_amd64.whl (11.9 MB)
|████████████████████████████████| 11.9 MB 3.3 MB/s
Collecting cffi>=1.0
Downloading cffi-1.15.0-cp310-cp310-win_amd64.whl (180 kB)
|████████████████████████████████| 180 kB 6.4 MB/s
Collecting pycparser
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
|████████████████████████████████| 118 kB 6.4 MB/s
Installing collected packages: pycparser, cffi, vosk
Successfully installed cffi-1.15.0 pycparser-2.21 vosk-0.3.32
```

And then also inside node:
```
npm i vosk
```

My code is public on this repo: https://github.com/bertyhell/subtitle-syncer
```
clone https://github.com/bertyhell/subtitle-syncer.git subtitle-syncer
cd subtitle-syncer
npm i
npm run start
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.