android的东西:使用语音在Raspberry Pi 3中使用android的东西

我使用下面的代码为Raspberry Pi3的语音到文本

   Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
                intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
                        RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
                intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");


                try {

                    startActivityForResult(intent, RESULT_SPEECH);
                } catch (ActivityNotFoundException a) {
                   a.printStackTrace();
                }

但代码不起作用
它给了例外

device does not support Speech to text

是否有任何方法支持使用Android东西或任何软件包或apk需要在Raspberry Pi上安装Raspberry Pi的语音文本以支持语音到文本.
请帮忙

最佳答案 离线语音识别器不适用于Android Things,但有基于云的方式,您可以将音频发送到服务器并取回用户转录,例如
Google Cloud Speech API.

如果您有一组特定的意图,您可能需要查看Dialogflow API,它使用自然语言处理在幕后使用Google Cloud Speech.还有Google Assistant SDK,可以让你嵌入完整的Google智能助理.

点赞