首页 版块 访问AI主站 注册 发帖
mybook_1122
2
积分 积分商城
0
获赞
语音识别一点开始识别立刻识别结束了 我都没开始说话 错误日志在下
Ta的回复 :11月24号我的也出现了这个问题。三天前使用是没有问题的。 相同的log 11-25 00:20:35.840 12512-13504/com.baidu.speech.recognizerdemo E/art: No implementation found for int com.baidu.speech.easr.easrNativeJni.AudioSegFree() (tried Java_com_baidu_speech_easr_easrNativeJni_AudioSegFree and Java_com_baidu_speech_easr_easrNativeJni_AudioSegFree__) 11-25 00:20:35.840 12512-13504/com.baidu.speech.recognizerdemo W/System.err: java.lang.reflect.UndeclaredThrowableException 11-25 00:20:35.840 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at $Proxy3.AudioSegFree(Unknown Source) 11-25 00:20:35.840 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at com.baidu.speech.EventManagerVadModule.send(EventManagerVadModule.java:168) 11-25 00:20:35.840 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at com.baidu.speech.EventManagerVadModule.send(EventManagerVadModule.java:97) 11-25 00:20:35.840 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at com.baidu.speech.EventManagerMessagePool$1.run(EventManagerMessagePool.java:46) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at android.os.Handler.handleCallback(Handler.java:743) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at android.os.Looper.loop(Looper.java:150) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err: Caused by: java.lang.reflect.InvocationTargetException 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at java.lang.reflect.Method.invoke(Native Method) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at com.baidu.speech.easr.EasrFactory$2.invoke(EasrFactory.java:188) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at java.lang.reflect.Proxy.invoke(Proxy.java:393) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err: ... 8 more 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.speech.easr.easrNativeJni.AudioSegFree() (tried Java_com_baidu_speech_easr_easrNativeJni_AudioSegFree and Java_com_baidu_speech_easr_easrNativeJni_AudioSegFree__) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err:     at com.baidu.speech.easr.easrNativeJni.AudioSegFree(Native Method) 11-25 00:20:35.841 12512-13504/com.baidu.speech.recognizerdemo W/System.err: ... 11 more 11-25 00:20:35.852 12512-13504/com.baidu.speech.recognizerdemo I/jni_easr: #30941 easrNativeJni calling KWSFree(): 11-25 00:20:35.852 12512-13504/com.baidu.speech.recognizerdemo E/art: No implementation found for int com.baidu.speech.easr.easrNativeJni.KWSFree() (tried Java_com_baidu_speech_easr_easrNativeJni_KWSFree and Java_com_baidu_speech_easr_easrNativeJni_KWSFree__) 11-25 00:20:35.853 12512-13504/com.baidu.speech.recognizerdemo I/jni_easr: #30941 easrNativeJni calling KWSFree(): 11-25 00:20:35.853 12512-13504/com.baidu.speech.recognizerdemo E/art: No implementation found for int com.baidu.speech.easr.easrNativeJni.KWSFree() (tried Java_com_baidu_speech_easr_easrNativeJni_KWSFree and Java_com_baidu_speech_easr_easrNativeJni_KWSFree__) 11-25 00:20:35.913 12512-19600/com.baidu.speech.recognizerdemo I/HwAudioRecordImpl: sendStateChangedIntent, state=1 11-25 00:20:35.916 12512-19600/com.baidu.speech.recognizerdemo I/MicrophoneInputStream: close(), sUsingCount=0, sInnerSourceInputStream=null 11-25 00:20:36.213 12512-13504/com.baidu.speech.recognizerdemo I/MediaPlayer: [HSM] stayAwake false uid: 10472, pid: 12512 11-25 00:20:36.264 12512-19410/com.baidu.speech.recognizerdemo I/Parser: ===== parse(...) =====                                                                          {"result":{"err_no":-3005, "error":"speech quality problem", "sn":"bdca04dc-9ae7-44ca-ab11-e9d24c092615", "idx":-1}} 11-25 00:20:36.265 12512-19410/com.baidu.speech.recognizerdemo I/Parser: parse with res_type=0
2
百度语音识别,不能用,报"err_no":-3005, "error":"speech quality problem", "sn":"abd6e1be-39c2-4a95-8ebd-2ed034156f8f", "idx":-1
Ta的回复 :水寒319: -3005错误是由于语音质量低导致。 回复水寒319:看到这里有显示的log信息: {"result":{"err_no":-3005, "error":"speech quality problem", "sn":"abd6e1be-39c2-4a95-8ebd-2ed034156f8f", "idx":-1}} 最后我从头开始添加代码,是在添加 compile 'org.xutils:xutils:3.3.4' 之后,出现了so找不到。具体原因还是没找到,我避免使用这个org.xutils:xutils:3.3.4
3
切换版块
智能客服