alphacep / alphacep/vosk-api

Dynamic Linking Error Win32 error 127

Abierto
#755 11 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
15.1k
Forks
1.8k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.