alphacep / alphacep/vosk-api

Shared object file for Raspberry Pi

Open
#1,977 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
15.1k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

## Currently

When I install the nodejs library with `node i vosk`, I get something like this in the `node_modules`

```
node_modules/vosk/lib/
|-- linux-x86_64/libvosk.so
|-- osx-universal/libvosk.so
|-- win-x86_64/libvosk.dll
```

But Raspberry Pi is ARM64, not x64_64, which results in...

## Related issue

...[this open issue](https://github.com/alphacep/vosk-api/issues/1356) has many people describing the same problem occurring on other systems. Someone even mentioned my workaround.

This issue is created as a solution proposal instead of a bug report.

## Kindly requesting

Could you please add `linux-aarch64/libvosk.so`? I am assuming that somewhere in the depths there is also an `if` statement that decides which `.so` file to use. It should be updated to use `linux-aarch64` when on ARM64 arch.

## Current workaround

To fix this, one has to download the proper release manually and replace the `node_modules/vosk/lib/linux-x86_64/libvosk.so` with it.

```sh
wget https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-linux-aarch64-0.3.45.zip
unzip vosk-linux-aarch64-0.3.45.zip
cd vosk-linux-*/ # the folder you just unzipped
mv libvosk.so node_modules/vosk/lib/linux-x86_64/libvosk.so
```

## Post scriptum

I am not familiar with the codebase, but if you tell me which configs to change, I can probably do this myself. I don't mind spending some time adding support for other architectures. Evidently, you already produce releases for these other architectures already.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.