Hi,

I am trying to integrate Bing Speech Recognizer with my app. But it looks like I am not able to find the appropriate JNI library libandroid_platform.so.

My project already contains arm64-v8a and armeabi-v7a under jniLibs. But here libandroid_platform.so is available for only x86 and armeabi. I get following exceptions:

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.knowles.bali-1/lib/arm/libandroid_platform.so" has bad ELF magic

at java.lang.Runtime.loadLibrary(Runtime.java:372)

at java.lang.System.loadLibrary(System.java:1076)

at com.microsoft.bing.speech.Conversation.(Conversation.java:68)

at com.microsoft.cognitiveservices.speechrecognition.SpeechRecognitionServiceFactory.createDataClient(SpeechRecognitionServiceFactory.java:147)

at com.knowles.bali.bargein.BingVoiceService.initSpeechRecognition(BingVoiceService.java:61)

Can you please suggest what am I missing here?

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.knowles.bali-1/base.apk"],nativeLibraryDirectories=[/data/app/com.knowles.bali-1/lib/arm, /data/app/com.knowles.bali-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libandroid_platform.so"

at java.lang.Runtime.loadLibrary(Runtime.java:367)

at java.lang.System.loadLibrary(System.java:1076)

at com.microsoft.bing.speech.Conversation.(Conversation.java:68)

at com.microsoft.cognitiveservices.speechrecognition.SpeechRecognitionServiceFactory.createDataClient(SpeechRecognitionServiceFactory.java:147)

at com.knowles.bali.bargein.BingVoiceService.initSpeechRecognition(BingVoiceService.java:61)

at com.knowles.bali.bargein.BingVoiceService.(BingVoiceService.java:35)

Is it possible to get the .so file for other architectures as well?

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐