sandrohanea / whisper.net

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

Error loading model #186

Open Mrgaton opened 2 months ago

Mrgaton commented 2 months ago

System.Exception HResult=0x80131500 Mensaje = Failed to load native whisper library. Error: %1 no es una aplicación Win32 válida Origen = Whisper.net Seguimiento de la pila: at Whisper.net.WhisperFactory..ctor(IWhisperProcessorModelLoader loader, Boolean delayInit, String libraryPath, Boolean bypassLoading) at Whisper.net.WhisperFactory.FromPath(String path, Boolean delayInitialization, String libraryPath, Boolean bypassLoading, Boolean useGpu) at SpechToText.Program.d__1.MoveNext() in SpechToText\SpechToText\Program.cs:line 35 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at SpechToText.Program.Main(String[] args) in SpechToText\SpechToText\Program.cs:line 17

Mrgaton commented 2 months ago

Im on windows and vc redist is already installed

b97ha commented 2 months ago

I facing this issue too the library works fine on my local machine, but I get this error when try to run it on Windows Server "Failed to load native whisper library. Error: A dynamic link library (DLL) initialization routine failed." I am using Whisper Inside Background Worker Service. Any help, please?

Mrgaton commented 2 months ago

I get the issue on my main windows machine

Mrgaton commented 2 months ago

@sandrohanea please take a look i cant use the lib

Mrgaton commented 1 month ago

I facing this issue too the library works fine on my local machine, but I get this error when try to run it on Windows Server "Failed to load native whisper library. Error: A dynamic link library (DLL) initialization routine failed." I am using Whisper Inside Background Worker Service. Any help, please?

Try using NET 8 instead of framework worked for me

jkkgrk commented 3 weeks ago

I had a similar error with Runtime.Cublas, and it was due to misconfigured CUDA environment variables.

Mrgaton commented 3 weeks ago

it worked for me after not using net framework