sandrohanea / whisper.net

Whisper.net. Speech to text made simple using Whisper Models
MIT License
534 stars 82 forks source link

Win-x64 library issue #44

Closed robinlacey closed 1 year ago

robinlacey commented 1 year ago

Hello

In both 1.4 (and the newly released 1.4.2) I'm getting the error System.Exception : Failed to load native whisper library. Error: The specified module could not be found.

I've dug into the Whisper.net.Runtime package and it looks like the win-x64/whisper.dll is not supported. The Rider assembly explorer is flagging it as a Win32 resource - perhaps the pipeline built the wrong file?

Suggestions on how to fix?

Many thanks

sandrohanea commented 1 year ago

Hello @robinlacey , That's strange as I'm using win64 as well and it is working.

1.4.2 was built today with Visual Studio Community 2022.

I suspect you're missing some dependency of the native library (e.g. MSVC Redistributable) https://aka.ms/vs/17/release/vc_redist.x64.exe

Can you, please, try to re-install the above and write an update if you still have the issue?

robinlacey commented 1 year ago

That did it 🎉 Thanks for the quick response!