whisper.net icon indicating copy to clipboard operation
whisper.net copied to clipboard

"[0:] unsupported os platform, architecture: arm64" while using version 1.5.0

Open Leonm99 opened this issue 1 year ago • 4 comments

im using whisper.net with MAUI to build an android app.

ive updated my Whisper.net.Runtime and Whisper.net to 1.5.0 a few days ago everything was okay but now i get [0:] unsupported os platform, architecture: arm64 while using 1.5.0.

reverting back to 1.4.7 works fine.

ive tested everything else it has to be Whisper.net 1.5.0 thats causing this.

any ideas what could be the issue?

Thanks in advance i appreciate any help.

Leonm99 avatar Jan 26 '24 13:01 Leonm99

Hello @Leonm99 , That code shouldn't be reached for Android, and loading should be automatically bypassed: https://github.com/sandrohanea/whisper.net/blob/7e3ee68a596ff4591651ae14327e9c2760e555b8/Whisper.net/LibraryLoader/NativeLibraryLoader.cs#L28C1-L28C42

I suspect you are using net6.0-android which was removed as targeted framework here: https://github.com/sandrohanea/whisper.net/pull/132/files#diff-1e6efca4d3eb5af047dd5e0628fad7df48807ca5628f85866b69ec30c5a083d8

This means that if you are using net6-android => you will reference the general available net6 build (not Android build) and this is why that #if Android is not reached.

The reason for this upgrade was that dotnet maui for net6.0 is out of support: https://dotnet.microsoft.com/en-us/platform/support/policy/maui

If that's the reason, please, upgrade to net8-android, and confirm/infirm if Whisper.net 1.5.0 is working as expected.

sandrohanea avatar Feb 03 '24 15:02 sandrohanea

Thank you for your help, I appreciate it.

I'm using .net8 actually, but I will try and test it again in the coming days.

I'll report back when I've done so.

Have a great evening!

Leonm99 avatar Feb 03 '24 16:02 Leonm99

Hello ! I know it's been a few month already but I encounter the same issue for a demo application I'm currently developing.
This application is made on Unity and is supposed to be built on Hololens 2 which has ARM64 architecture.

However I get the same error : PlatformNotSupportedException: Unsupported OS platform, architecture: Arm64 and I don't know if it's related to the same pattern as before, however I don't encounter this problem when trying directly on the Unity Editor. The only major change I make is changing the whisper.dll according to the target device as they don't have the same OS architecture and Unity doesn't manage projects with multiple dlls with the same name (causing errors & preventing builds). The reason why it blocks me exactly is because this errors prevent any WhisperFactory to exist.

Is there any workaround to fix this issue ?

Kayrrhan avatar Aug 01 '24 15:08 Kayrrhan