我正在使用 Android 应用程序和微 Controller 开发“家庭自动化”系统的项目,通过蓝牙模块连接它们。我已经为语音命令合并了“语音到文本”。虽然,它与内置的谷歌语音识别 api 配合得很好。我所需要的只是一个连续的语音识别,并且没有谷歌语音弹出窗口。 我在 playstore“speechnotes”上看到了一个类似的应用程序,它的工作原理正是我希望开发的。而且它完全离线工作。
最佳答案
你应该试试 Droid Speech它支持连续语音识别,如果设备中安装了所需语言的语音包,也可以离线工作。
在项目中设置库非常简单,只需几行代码即可轻松开始使用语音识别。
一个例子,
在您的 Gradle 文件中添加以下内容,
compile 'com.github.vikramezhil:DroidSpeech:v2.0.3’
在您的 Activity 中,
DroidSpeech droidSpeech = new DroidSpeech(this, null);
droidSpeech.setOnDroidSpeechListener(this);
启动droid speech听用户语音调用方法,
droidSpeech.startDroidSpeechRecognition();
语音结果将在,
@Override
public void onDroidSpeechFinalResult(String finalSpeechResult)
{
// Do whatever you want with the speech result
}
关于java - 没有谷歌弹出窗口的Android应用程序中的连续语音识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47112146/