Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More architectures in node.js lib #620

Open
Coffer-studio opened this issue Jul 2, 2021 · 9 comments
Open

More architectures in node.js lib #620

Coffer-studio opened this issue Jul 2, 2021 · 9 comments

Comments

@Coffer-studio
Copy link

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
Copy link
Author

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

@sadrasabouri
Copy link
Contributor

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

@nshmyrev
Copy link
Collaborator

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 nshmyrev changed the title Raspberry pi 4 node.js lib More architectures in node.js lib Nov 8, 2021
@nshmyrev
Copy link
Collaborator

nshmyrev commented Nov 8, 2021

It would be also nice to add Windows 32-bit

@nshmyrev
Copy link
Collaborator

nshmyrev commented Nov 8, 2021

See #755

@akunerio
Copy link

akunerio commented Jun 3, 2022

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'

@arthurcohen
Copy link

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?

@nshmyrev
Copy link
Collaborator

nshmyrev commented Sep 6, 2022

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.

@zhdan88vadim
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants