听了一个关键字(使用pocketsphinx)后,我尝试启动谷歌语音识别器,但收到很多onRmsChanged()
带有负数的电话,而不是ERROR_SPEECH_TIMEOUT
.
代码:
PocketSphinxRecognizer.cancel();
GoogleSpeechRecognizer.startListening(SpeechRecognizerIntent);
我试图运行该行:
GoogleSpeechRecognizer.startListening(SpeechRecognizerIntent);
OnError()
如果错误是但ERROR_SPEECH_TIMEOUT
没有响应。
编辑:
10-01 05:45:33.165 1739-2055/? E/dalvikvm: Could not find class 'android.net.ConnectivityManager$NetworkCallback', referenced from method com.google.android.apps.gsa.staticplugins.bc.ak.<init>
10-01 05:45:33.175 1739-2055/? E/dalvikvm: Could not find class 'android.net.NetworkRequest$Builder', referenced from method com.google.android.apps.gsa.staticplugins.bc.ak.jh
10-01 05:45:33.235 1739-2055/? E/dalvikvm: Could not find class 'android.media.AudioAttributes$Builder', referenced from method com.google.android.apps.gsa.speech.audio.c.a.<init>
10-01 05:45:33.260 1739-2055/? E/dalvikvm: Could not find class 'android.media.AudioFormat$Builder', referenced from method com.google.android.apps.gsa.speech.audio.d.a.<init>
10-01 05:45:33.320 1739-2088/? E/GmsClient: unable to connect to service: com.google.android.gms.speech.service.START on com.google.android.gms
10-01 05:45:33.430 1739-2086/? E/dalvikvm: Could not find class 'android.content.pm.LauncherApps', referenced from method com.google.android.apps.gsa.search.shared.multiuser.RemoteWorkDataClient.connect
10-01 05:45:33.650 1938-2108/? E/TinyUCM: modifier doesn't exists any more
10-01 05:45:33.995 2343-2667/? E/Watchdog: !@Sync 6447
10-01 05:45:34.535 1739-2132/? E/dalvikvm: Could not find class 'org.chromium.net.k', referenced from method org.chromium.net.NetworkChangeNotifierAutoDetect.<init>
10-01 05:45:37.280 25379-25379/? E/ctxmgr: [PlaceFenceHelper]NearbyBuffer is null!
10-01 05:45:39.160 1739-2191/? E/native: decoder_endpointer_stream.cc:23 Acoustic ep reader thread failed: *** Error status greco::STREAM_CANCELED: <no msg> ***
10-01 05:45:39.425 1938-2208/? E/AudioResampler: Unsupported sample format, 1 bits, 1 channels
10-01 05:45:39.450 1589-1589/com.example.manuel.lightbulb E/GoogleRecognitionListener: onError:6