vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

More architectures in node.js lib

Open Coffer-studio opened this issue 3 years ago • 8 comments

Error with run node.js lib on pi4: vosk/lib/linux-x86_64/libvosk.so: wrong ELF class: ELFCLASS64

Are there any solutions?

Coffer-studio avatar Jul 02 '21 17:07 Coffer-studio

I just copied this the file from python library. And it's works

Coffer-studio avatar Jul 02 '21 17:07 Coffer-studio

You mean you do not have the problem now. right? So would you like to close this issue?

sadrasabouri avatar Jul 16 '21 08:07 sadrasabouri

So would you like to close this issue?

Thank you. It is ok to keep the issue open. We want to add binary for RPI into node package one day.

nshmyrev avatar Jul 16 '21 08:07 nshmyrev

It would be also nice to add Windows 32-bit

nshmyrev avatar Nov 08 '21 21:11 nshmyrev

See #755

nshmyrev avatar Nov 08 '21 21:11 nshmyrev

I just copied this the file from python library. And it's works

I have similar issue and its solved. The issue was found when I run the demo in nodejs folder, because ffi-napi Error: ENOENT: no such file or directory, open '/home/Downloads/vosk-api/nodejs/lib/linux-x86_64/libvosk.so'

Then, I just copy the libvosk.so from python module vosk from '/usr/local/lib/python3.9/dist-packages/vosk/libvosk.so'' to '/home/Downloads/vosk-api/nodejs/lib/linux-x86_64/libvosk.so'

akunerio avatar Jun 03 '22 09:06 akunerio

sorry about my ignorance, but what is missing to provide more architectures on the node package? I can see that we have all the artifacts on the releases page, and it would simply be adding those files to the package, alongside an architecture check, like os.arch() == 'arm64'.

Does this sounds over-optimistic or makes sense? Can I get your input @nshmyrev?

arthurcohen avatar Sep 05 '22 17:09 arthurcohen

it would simply be adding those files to the package, alongside an architecture check, like os.arch() == 'arm64'.

Yes, it just needs testing. I don't have arm64 to test but you are welcome to submit a patch.

nshmyrev avatar Sep 06 '22 08:09 nshmyrev

Then, I just copy the libvosk.so from python module vosk from '/usr/local/lib/python3.9/dist-packages/vosk/libvosk.so'' to '/home/Downloads/vosk-api/nodejs/lib/linux-x86_64/libvosk.so'

This solution worked for me too. I was able to run on Raspberry PI 3. Thank you!

zhdan88vadim avatar Nov 23 '22 12:11 zhdan88vadim