我使用的服务是:
百度语音识别服务
调用的接口是:
Intent intent = new Intent();speechEndTime = -1;
speechRecognizer.startListening(intent);
参数设置情况:
开发平台和机型:Huawei Nexus 6P
SDK版本号:
bd_speech_sdk_asr_v2.2.20.20161027
代码或日志截图(上传截图能帮助您更快解决问题):
12-15 22:46:46.496 6770-6770/com.iqiyi.virtualaivr E/art: No implementation found for void com.baidu.speech.core.BDSSDKLoader.SetLogLevel(int) (tried Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel and Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel__I)
12-15 22:46:46.498 6770-6770/com.iqiyi.virtualaivr D/AndroidRuntime: Shutting down VM
12-15 22:46:46.500 6770-6770/com.iqiyi.virtualaivr E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.iqiyi.virtualaivr, PID: 6770
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 5.4.2f2-GVR13
Device model : Huawei Nexus 6P
Device fingerprint: google/angler/angler:7.1.1/NPF10C/3347772:user/release-keys
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for void com.baidu.speech.core.BDSSDKLoader.SetLogLevel(int) (tried Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel and Java_com_baidu_speech_core_BDSSDKLoader_SetLogLevel__I)
at com.baidu.speech.core.BDSSDKLoader.SetLogLevel(Native Method)
at com.baidu.speech.core.BDSSDKLoader.(BDSSDKLoader.java:53)
at com.baidu.speech.asr.AsrControl.(AsrControl.java:157)
at com.baidu.speech.asr.EventManagerAsr.(EventManagerAsr.java:30)
at com.baidu.speech.EventManagerFactory.create(EventManagerFactory.java:17)
at com.baidu.speech.VoiceRecognitionService.onCreate(VoiceRecognitionService.java:58)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3191)
at android.app.ActivityThread.-wrap5(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
复现步骤、现象及其他描述:
您好 Unity会忽略jar中的非class文件,还请检测如果避开该问题