语音识别一点开始识别立刻识别结束了 我都没开始说话 错误日志在下
fanZzh3 发布于2016-11 浏览:1596 回复:2
0
收藏

11-23 11:30:39.580 30188-31616/com.cdkj.fanzhe.transportnew I/MicrophoneInputStream: new instance(), sUsingCount=1, sInnerSourceInputStream=com.baidu.speech.MicrophoneInputStream$InnerSourceInputStream@4217abb0

11-23 11:30:39.590 30188-31616/com.cdkj.fanzhe.transportnew I/jni_easr: #327 easrNativeJni calling AudioSegFree():

11-23 11:30:39.590 30188-31616/com.cdkj.fanzhe.transportnew W/dalvikvm: No implementation found for native Lcom/baidu/speech/easr/easrNativeJni;.AudioSegFree:()I

11-23 11:30:39.590 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: java.lang.reflect.UndeclaredThrowableException

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at $Proxy3.AudioSegFree(Native Method)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.EventManagerVadModule.send(EventManagerVadModule.java:138)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.EventManagerVadModule.send(EventManagerVadModule.java:97)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.EventManagerMessagePool$1.run(EventManagerMessagePool.java:46)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.Handler.handleCallback(Handler.java:615)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:92)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.Looper.loop(Looper.java:137)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:60)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: Caused by: java.lang.reflect.InvocationTargetException

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at java.lang.reflect.Method.invoke(Method.java:511)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.easr.EasrFactory$2.invoke(EasrFactory.java:188)

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: ... 8 more

11-23 11:30:39.600 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.speech.easr.easrNativeJni.AudioSegFree:()I

11-23 11:30:39.620 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.easr.easrNativeJni.AudioSegFree(Native Method)

11-23 11:30:39.620 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: ... 11 more

11-23 11:30:39.630 30188-31616/com.cdkj.fanzhe.transportnew I/AuthEasrHelper: easr auth: licenseUri=, appid=8194238

11-23 11:30:39.630 30188-31616/com.cdkj.fanzhe.transportnew I/AuthEasrHelper: licensePath: 

11-23 11:30:39.630 30188-31616/com.cdkj.fanzhe.transportnew I/jni_easr: #327 easrNativeJni calling GetLicense(com.baidu.speech.EventContext@420589b0, "8194238", "68B4B80F75331BE8CE7275211DCDCFEC|074966020959568", "eyJzY3JlZW4iOiI0ODAqODAwIiwib3MiOiJBbmRyb2lkIiwicGxhdGZvcm0iOiJBbmRyb2lkJmk2

                                                                        MjAwUyY0LjEuMiYxNiYxIiwiYXBwX3NpZ25hdHVyZSI6ImFhOTFlYTkxNzNiYWQwMzQwNzk5YWFh

                                                                        YmVlYjM0MDZjIiwic2RrX3ZlcnNpb24iOiIyLjEuMjAuMjAxNjA2MjNfZTNlNjNjZV9iZXRhIiwi

                                                                        bmV0X3R5cGUiOjEsImFwcF9uYW1lIjoiY29tLmNka2ouZmFuemhlLnRyYW5zcG9ydG5ldyIsIndp

                                                                        c2VfY3VpZCI6IjY4QjRCODBGNzUzMzFCRThDRTcyNzUyMTFEQ0RDRkVDfDA3NDk2NjAyMDk1OTU2

                                                                        OCJ9

                                                                        ", "/data/data/com.cdkj.fanzhe.transportnew/files/bds-easr-license.lic"):

11-23 11:30:39.640 30188-31616/com.cdkj.fanzhe.transportnew W/dalvikvm: No implementation found for native Lcom/baidu/speech/easr/easrNativeJni;.GetLicense:(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

11-23 11:30:39.650 30188-31616/com.cdkj.fanzhe.transportnew I/jni_easr: #327 easrNativeJni calling AudioSegFree():

11-23 11:30:39.650 30188-31616/com.cdkj.fanzhe.transportnew W/dalvikvm: No implementation found for native Lcom/baidu/speech/easr/easrNativeJni;.AudioSegFree:()I

11-23 11:30:39.650 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: java.lang.reflect.UndeclaredThrowableException

11-23 11:30:39.650 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at $Proxy3.AudioSegFree(Native Method)

11-23 11:30:39.660 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.EventManagerVadModule.send(EventManagerVadModule.java:168)

11-23 11:30:39.660 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.EventManagerVadModule.send(EventManagerVadModule.java:97)

11-23 11:30:39.660 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.EventManagerMessagePool$1.run(EventManagerMessagePool.java:46)

11-23 11:30:39.660 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.Handler.handleCallback(Handler.java:615)

11-23 11:30:39.660 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:92)

11-23 11:30:39.660 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.Looper.loop(Looper.java:137)

11-23 11:30:39.660 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:60)

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: Caused by: java.lang.reflect.InvocationTargetException

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at java.lang.reflect.Method.invoke(Method.java:511)

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.easr.EasrFactory$2.invoke(EasrFactory.java:188)

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: ... 8 more

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.speech.easr.easrNativeJni.AudioSegFree:()I

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err:     at com.baidu.speech.easr.easrNativeJni.AudioSegFree(Native Method)

11-23 11:30:39.670 30188-31616/com.cdkj.fanzhe.transportnew W/System.err: ... 11 more

11-23 11:30:39.680 30188-31616/com.cdkj.fanzhe.transportnew I/jni_easr: #327 easrNativeJni calling KWSFree():

11-23 11:30:39.680 30188-31616/com.cdkj.fanzhe.transportnew W/dalvikvm: No implementation found for native Lcom/baidu/speech/easr/easrNativeJni;.KWSFree:()I

11-23 11:30:39.680 30188-31616/com.cdkj.fanzhe.transportnew I/jni_easr: #327 easrNativeJni calling KWSFree():

11-23 11:30:39.680 30188-31616/com.cdkj.fanzhe.transportnew W/dalvikvm: No implementation found for native Lcom/baidu/speech/easr/easrNativeJni;.KWSFree:()I

11-23 11:30:39.720 30188-30188/com.cdkj.fanzhe.transportnew D/fanzhezh3: 识别错误,错误码: 7

11-23 11:30:39.860 30188-7813/com.cdkj.fanzhe.transportnew I/MicrophoneInputStream: close(), sUsingCount=0, sInnerSourceInputStream=null

11-23 11:30:40.030 30188-7588/com.cdkj.fanzhe.transportnew I/Parser: ===== parse(...) =====

                                                                     {"result":{"err_no":-3005, "error":"speech quality problem", "sn":"23785fea-6661-405a-b3a4-7fc3d01ffb88", "idx":-1}}

11-23 11:30:40.030 30188-7588/com.cdkj.fanzhe.transportnew I/Parser: parse with res_type=0


收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3水寒319回复于2016-11

从log看是由于没有找到so库里的相应的方法导致的。可能原因是没有找到so库或者so库导入不正确。请检查一下so库是否随着应用的安装一起安装到默认的so库存放目录下。

0
#2mybook_1122回复于2016-11

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


0
TOP
切换版块