Hi,
Microsoft.Cognitiveservices.Speech 1.24.0 does not reproduce this issue.
Thank you for your supports.
Closing this ticket.
Best regards,
Microsoft.Cognitiveservices.Speech returns DllNotFoundException when on x64 Android device or emulator
Hello,
My app has Keyword recognition function using Microsoft.Cognitiveservices.Speech.
It works fine with Android emulator Pixel C API 29 Android 10.0 (x86).
But if emulator switched to Pixel C API 31 Android 12.0, (x86_64) DLLNOTFOUNDEXCEPTION occurs.
Also, real device with the same Android version (10.0) from Samsung Galaxy and Blackview Tab8 produce the same exception when the app is deployed.
Error msg when debugging
Shared library 'libMicrosoft.CognitiveServices.Speech.core.so' not loaded.
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.4.0 Preview 2.1
- Run the project on Android emulator or Android 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
- 23.0
Platform, Operating System, and Programming Language
- Windows 10 x64
- C#
If more information needed to reproduce, could you let me know?
Best regards,
PS. Cannot attach the project file
Azure AI Speech
Developer technologies | .NET | .NET MAUI
Azure AI services
2 answers
Sort by: Most helpful
-
TAS Sakata 6 Reputation points
2022-10-19T23:50:43.873+00:00 -
Bagno, David 1 Reputation point
2022-12-07T16:40:31.983+00:00 This is still a big bug. It is not working with Maui