alphacep / alphacep/vosk-api

Shared object file for Raspberry Pi

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

説明

## 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.

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

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

評価

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

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

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