recognizerintent在最新的google搜索更新后出现错误

x8diyxa7  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(353)

我用speechrecognizer实现了一个连续语音识别器。recognitionlistener通常在OnBeginingofSpeech之后转到error\u network(错误2)。这种情况不是每次都发生,而是很多次。这种行为始于google 4.1.24.1672412.arm的上次更新(2015年1月12日)

protected class SpeechRecognitionListener implements RecognitionListener
{
    public void onBeginningOfSpeech()
    {
     }
    public void onError(int error)
    {
        if (mIsStreamSolo)
        {  // CAudioLibrary.unmute();
            mIsStreamSolo = false;
        }

        if(error == SpeechRecognizer.ERROR_NETWORK||error == SpeechRecognizer.ERROR_SERVER)
        {

.....
我检查了logcat,发现它会产生很多这样的错误:它不是我的设备特定的,它在我的用户设备上也会产生同样的错误。谷歌网站有问题吗?如果我恢复google更新,它不会给出这些错误。先谢谢你。

01-15 14:36:48.656    3012-3012/? D/STATUSBAR-NetworkController﹕
onDataActivity: direction=2 01-15 14:36:48.656    3012-3012/?
D/STATUSBAR-NetworkController﹕ refreshSignalCluster -
setNWBoosterIndicators(false) 01-15 14:36:48.656    3012-3012/?
D/STATUSBAR-NetworkController﹕ refreshSignalCluster: data=2 bt=false
01-15 14:36:48.691  32404-32409/? D/dalvikvm﹕ GC_CONCURRENT freed
384K, 25% free 10740K/14260K, paused 10ms+3ms, total 40ms 01-15
14:36:48.871   5732-13019/? W/JavaNetConnection﹕ Failed to get
connection status.
    java.io.FileNotFoundException: https://www.google.com/m/voice-search/down?pair=6239918a-dc45-4eea-ac6f-b9bf8de57ced
            at kxb.getInputStream(PG:228)
            at kxa.getInputStream(PG:210)
            at kxc.getInputStream(PG:25)
            at cla.Gj(PG:256)
            at dzz.Gj(PG:26)
            at cla.Gi(PG:240)
            at cla.disconnect(PG:132)
            at clb.b(PG:110)
            at clb.a(PG:66)
            at dzb.a(PG:197)
            at cqj.HS(PG:529)
            at cqi.run(PG:314) 01-15 14:36:48.871   5732-13019/? W/S3NetworkUtils﹕ [Download] response code: 400, internal error
header: -74061 01-15 14:36:49.071   5732-13104/? W/JavaNetConnection﹕
Failed to get connection status.
    java.io.FileNotFoundException: https://www.google.com/m/voice-search/down?pair=af1df3dc-08ac-45fd-bb30-eee3393bcb9c
            at kxb.getInputStream(PG:228)
            at kxa.getInputStream(PG:210)
            at kxc.getInputStream(PG:25)
            at cla.Gj(PG:256)
            at dzz.Gj(PG:26)
            at cla.Gi(PG:240)
            at cla.disconnect(PG:132)
            at clb.b(PG:110)
            at clb.a(PG:66)
            at dzb.a(PG:197)
            at cqj.HS(PG:529)
            at cqi.run(PG:314) 01-15 14:36:49.071   5732-13104/? W/S3NetworkUtils﹕ [Download] response code: 400, internal error

另外,我注意到以下几行:
01-15 14:36:55.556 5732-6800/? 带事件记录器﹕ recordgsaerror eyd:tr tr tr at hdv.a(pg:121)at java.lang.reflect.method.invokenactive(本机方法)at java.lang.reflect.method.invoke(方法)。java:515)在fid.run(pg:102)在java.util.concurrent.executors$runnableadapter.call(executors。java:422)在java.util.concurrent.futuretask.run(futuretask。java:237)在java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor。java:152)在java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor。java:265)位于java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor。java:1112)在java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor。java:587)在java.lang.thread.run(线程。java:841) 01-15 14:36:55.556 5732-6800/? 带错误处理器﹕ onfatalerror,忽略来自引擎的错误(1):eyd:tr 01-15 14:36:55.556 5732-6800/?带事件记录器﹕ 记录GSAERROR eyb:GSAERROR代码:458756,引擎:1在hdv.a(pg:126)在java.lang.reflect.method.invokenactive(本机方法)在java.lang.reflect.method.invoke(方法)。java:515)在fid.run(pg:102)在java.util.concurrent.executors$runnableadapter.call(executors。java:422)在java.util.concurrent.futuretask.run(futuretask。java:237)在java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor。java:152)在java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor。java:265)位于java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor。java:1112)在java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor。java:587)在java.lang.thread.run(线程。java:841) 01-15 14:36:55.556 5732-6800/? 默认识别状态﹕ 来自辅助发动机的重复错误。01-15 14:36:55.556 5732-6800/? 带错误处理器﹕ onfatalerror,忽略来自引擎(1)的错误:eyb:gsaerrorcode:458756,引擎:1

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题