cognitive-services-speech-sdk: Missing .so error on Unity sample for Android

Describe the bug When attempting to deploy the Quickstart for Unity sample to Android, I get an “Unable to find libMicrosoft.CognitiveServices.Speech.core.so” error, despite the .so being contained in the built .apk

To Reproduce Steps to reproduce the behavior:

  1. Add Unity package to project (builds to Android).
  2. Include a class using Microsoft.CognitiveServices.Speech
  3. Build and deploy to device
  4. Press button trigger for Cognitive Services
  5. Error will appear in logs and services do not run.
Unity   : Unable to find libMicrosoft.CognitiveServices.Speech.core.so
Unity   : Unable to find Microsoft.CognitiveServices.Speech.core.so

Expected behavior Cognitive services to initialize and then start a recognizer at a button press. This tutorial.

Version of the Cognitive Services Speech SDK 1.4.2

Platform, Operating System, and Programming Language

  • OS: Android, using SDK 26
  • Hardware - ARM (armeabi-v7a), Pixel 3XL
  • Programming language: C# in Unity

Additional context I also receive this in the build logs: Assembly 'Microsoft.CognitiveServices.Speech.csharp' has non matching file name: 'Microsoft.CognitiveServices.Speech.csharp.unix.dll'. This can cause build issues on some platforms.

Only the .dll/.so files under the Android folder and the .csharp.unix.dll are configured for Android

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (2 by maintainers)

Most upvoted comments

We have opened issue internally and identified issues when using 2019 version of Unity on Android. With 2018 version of Unity, we do not see issue on Android. I’ll update the thread once we know more about solution with 2019 version.

@jhakulin - can you take a look?

Hi @jhakulin , @wolfma61 ,

Can we reopen this issue?