sandrohanea / whisper.net

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

System.Runtime.InteropServices.SEHException on non-AVX CPU #239

Open IMikkeI opened 3 days ago

IMikkeI commented 3 days ago

Hello,

I'm currently developing a program to run on a non-AVX CPU. I have installed the Whisper.net.AllRuntimes package and explicitly used RuntimeLibrary.CpuNoAvx.

I get an exception when calling the WhisperFactory.FromPath(modelName) method.

The exception is as follows: System.Runtime.InteropServices.SEHException: 'External component has thrown an exception.' If I go down the stack trace, the exception comes from the public nint LoadNativeContext(INativeWhisper nativeWhisper) method from WhisperProcessorModelFileLoader class.

Is this a known error, or is there any way of finding the cause?

Thanks in advance for your help

Mickaël

sandrohanea commented 2 days ago

Hey @IMikkeI , There are indeed some problems with non-AVX runtimes, see the associated PR in whisper.cpp but also: https://github.com/sandrohanea/whisper.net/pull/240

The problems are:

Working on it and will update as soon as possible.

sandrohanea commented 9 hours ago

Hey @IMikkeI , Can you, please, check 1.7.2-preview2 to see if it works as expected on your system?

Thank you!