3

自从当前版本的 Google Now 发布(截至 2014 年 3 月 18 日)以来,如果我使用 RecognizerIntent 启动语音识别,它会在那里停留几秒钟,然后才最终给我结果。

还有其他人有同样的问题吗?提前致谢。

这是我正在使用的代码:

Intent intentRecognize = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
                    intentRecognize.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, context.getPackageName());
                    intentRecognize.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say stuff");
                    intentRecognize.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
                    intentRecognize.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 10);

                startActivityForResult(intentRecognize, requestCode);
4

0 回答 0