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.36k stars 1.04k forks source link

.NET - x86 support #1548

Closed m1adow closed 2 months ago

m1adow commented 3 months ago

Hi! Is there any way to make the Vosk library work in the x86 configuration? Because when I'm loading any model in code, I'm getting this exception: System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format.

If not, can you implement x86 support?

nshmyrev commented 3 months ago

You have to build nuget package yourself, just put precompiled lib and update targets here:

https://github.com/alphacep/vosk-api/blob/master/csharp/nuget/build/Vosk.targets

it should work if you properly specify target

m1adow commented 3 months ago

Hi again! I tried like you said, but got the same error. Are you sure that precompiled lib supports x86? Because the exception is thrown here Bad image

nshmyrev commented 3 months ago

Precompiled libs for x86 here

https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-linux-x86-0.3.45.zip

m1adow commented 2 months ago

Yeah, thanks a lot, it worked 😊