Android 将Google Search更新为5.14.32.16.arm后,SpeechRecognizer返回结果的速度要慢得多

Android 将Google Search更新为5.14.32.16.arm后,SpeechRecognizer返回结果的速度要慢得多,android,speech-recognition,Android,Speech Recognition,我当时正在使用安装了谷歌搜索版本3.6.14.1337016(安卓4.4.2)的SpeechRecognitor,使用两种语言en-US和zh_-HK。我最近将谷歌搜索(改名为谷歌应用)更新为5.14.32.16.arm版本,返回结果的速度是慢(大约需要35秒)。这是我的密码: speechRecognizer = SpeechRecognizer.createSpeechRecognizer(this); speechRecognizer.setRecognitionListener(new

我当时正在使用安装了谷歌搜索版本3.6.14.1337016(安卓4.4.2)的SpeechRecognitor,使用两种语言
en-US
zh_-HK
。我最近将谷歌搜索(改名为谷歌应用)更新为5.14.32.16.arm版本,返回结果的速度是(大约需要35秒)。这是我的密码:

speechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);
speechRecognizer.setRecognitionListener(new CustomListener());
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "zh_HK");
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_PREFERENCE, "zh_HK");
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass().getPackage().getName());
intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 1);
intent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, !isOnline());
intent.putExtra("android.speech.extra.EXTRA_ADDITIONAL_LANGUAGES", new String[]{"zh_HK", "en-US"});
speechRecognizer.startListening(intent);
其中
CustomListener()
捕获
onError
onResults
,并且
isOnline()
检测网络是否可用

在更新谷歌搜索之前,搜索结果会在3秒内返回。以下是更新后的时间线:

18:42:05.183 - onReadyForSpeech
18:42:05.513 - onBeginningOfSpeech
18:42:10.208 - onEndOfSpeech
18:42:45.663 - onResults
如何加快检索结果的速度

另外,由于我包括了
zh_HK
,结果包括了汉字。但是,在每个字符后面都添加了空格

更新前:

hello 你好嗎
更新后:

hello 你 好 嗎
这是已知的bug吗


额外调查结果:


如果我卸载了所有脱机语音识别语言,
语音识别器
将有90%的几率返回
语音识别器.ERROR\u NETWORK
,而结果正常返回的几率很小。这有什么关系?我检查了设备是否在线。

我也遇到了同样的问题。与ReceignizerIntent相比,SpeechReceignizer返回结果的速度非常慢。