Microsoft.Cognitiveservices.Speech returns DllNotFoundException when on iOS16 device and dotnet MAUI
Hello,
My app has Keyword recognition function using Microsoft.Cognitiveservices.Speech.
It works fine with Android.
But if deployed onto iOS device, DLLNOTFOUNDEXCEPTION occurs.
iOS device is iPhone X running latest version of the iOS16.
Error msg when debugging
System.DllNotFoundException: libMicrosoft.CognitiveServices.Speech.core.so
at Microsoft.CognitiveServices.Speech.Audio.AudioConfig.FromDefaultMicrophoneInput()
To reproduce
Steps to reproduce the behavior:
- Open the attached project in Visual Studio 2022 64bit Version 17.5.0 Preview 1.0
- Run the project on iOS device
- Click on "Click me" button
- Allow Microphone access
- Re-run the project
- Click on "Click me" button
- Say "Hey Computer" using active microphone
Expected behavior
Debug.Writeline says "Keyword successfully recognized" instead of the exception above.
Version of the Microsoft.Cognitiveservices.Speech
- 24.2 (current)
Platform, Operating System, and Programming Language
- Windows 10 x64
- C#
- iPhone X
If more information needed to reproduce, could you let me know?
Best regards,
PS the project file is attached on comment below.