语音识别作为一种服务(Android版) [英] Speech Recognition as a service.(Android)

查看:290
本文介绍了语音识别作为一种服务(Android版)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发Android应用程序。我我的应用程序需要的演讲recognition.But我需要语音识别的服务。我已经创建了当我按钮点击开始识别intent.It工作正常,并给我简单的输出语音识别。但我需要在按钮的语音识别用户点击开始作为服务(背景)。当用户开始蒙上了斑驳它开始识别,并给我的输出。

I am developing android application. I my application I need speech recognition.But I need speech recognition as service. I already create simple speech recognition in which when I click on button it start recognizer intent.It works fine and gives me output. But what I need when user click on button speech recognition start as service (in background).When user start specking it start recognizer and give me output.

我看了关于这个问题的很少,但没有得到妥善解决,这种功能。有什么办法来实现这一点。需要帮助...谢谢

I read few question regarding this but not getting proper solution to this kind of functionality. Is there any way to implement this. Need help... Thank you

推荐答案

有一些code,做你需要的东西在这里:

There is some code that does exactly what you need here:

<一个href=\"https://github.com/gast-lib/gast-lib/blob/master/library/src/root/gast/speech/activation/SpeechActivationService.java\" rel=\"nofollow\">https://github.com/gast-lib/gast-lib/blob/master/library/src/root/gast/speech/activation/SpeechActivationService.java

看到它通过下载运行此应用

See it running by downloading this app.

在code是服务在后台运行,监听用户的讲话。当用户说出某个词,它激发了意图。在服务也架起虽然是听一个方便的的通知。还有一些其他的code,启动和停止它<一个href=\"https://github.com/gast-lib/gast-lib/blob/master/app/src/root/gast/playground/speech/SpeechActivationServicePlay.java\"相对=nofollow>此处。

The code is a Service that runs in the background, listening for the users speech. When the user speaks a certain word, it fires an Intent. The Service also puts up a handy Notification while it is listening. There is some other code that starts and stops it here.

这篇关于语音识别作为一种服务(Android版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆