alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.57k stars 1.06k forks source link

32 bit version in Java #1315

Closed argen666 closed 1 year ago

argen666 commented 1 year ago

Hi, I'm trying to use the java library in 32-bit system, but I'm getting an error:

18:52:32,912 ERROR java.lang.reflect.InvocationTargetException java.lang.UnsatisfiedLinkError: %1 is not a valid Win32 application. at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461) at com.sun.jna.Native.register(Native.java:1723) at org.vosk.LibVosk.(LibVosk.java:38) at org.vosk.Model.(Model.java:11)

I have downloaded a 32-bit DLLs here: https://github.com/alphacep/vosk-api/releases/download/v0.3.38/vosk-win32-0.3.38.zip

nshmyrev commented 1 year ago

You have "%1" somewhere, it shouldn't be there actually, there must be library name. Not sure where it come from, you'd better check the source

argen666 commented 1 year ago

Thanks