离线语音识别机器人(软糖) [英] Offline Speech Recognition In Android (JellyBean)

查看:159
本文介绍了离线语音识别机器人(软糖)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来好像谷歌已经从谷歌离线语音识别现在的第三方应用程序。它正在由<一href="http://lifehacker.com/5967096/utter-for-android-is-a-personal-assistant-packed-with-voice-commands-tasker-support-and-more">the应用程序命名的奋斗和。

It looks as though Google has made offline speech recognition available from Google Now for third-party apps. It is being used by the app named Utter.

有没有人看到怎么办这个离线语音录制简单的语音命令的任何实现?你只需要使用普通SpeechRecognizer API,它会自动工作的?

Has anyone seen any implementations of how to do simple voice commands with this offline speech rec? Do you just use the regular SpeechRecognizer API and it works automatically?

推荐答案

谷歌也悄然启用脱机识别在搜索更新,但(目前还)没有API或其他参数可用范围内的SpeechRecognizer类。该功能可用,没有额外的编码,但是用户的设备将需要正确配置让它开始工作,这就是问题所在,我会想象,为什么很多开发商认为他们是'失去了一些东西。

Google did quietly enable offline recognition in that Search update, but there is (as yet) no API or additional parameters available within the SpeechRecognizer class. The functionality is available with no additional coding, however the user’s device will need to be configured correctly for it to begin working and this is where the problem lies and I would imagine why a lot of developers assume they are ‘missing something’.

此外,谷歌已经从使用脱机承认,由于硬件限制,限制一定的果冻豆的设备。哪些设备适用于未记录,其实,没有什么记载,所以为用户配置的能力已被证明是试错的问题(他们的)。它适用于一些立竿见影 - 对于那些不,这是'引导'我提供给他们以

Also, Google have restricted certain Jelly Bean devices from using the offline recognition due to hardware constraints. Which devices this applies to is not documented, in fact, nothing is documented, so configuring the capabilities for the user has proved to be a matter of trial and error (for them). It works for some straight away – For those that it doesn't, this is the ‘guide’ I supply them with.

  1. 确保默认的Andr​​oid的语音识别器设置为谷歌不 三星/ Vlingo的
  2. 卸载您已经安装了任何脱机识别文件 从谷歌语音搜索设置
  3. 转到您的Andr​​oid应用程序设置,看看你是否可以卸载 更新了谷歌搜索和谷歌语音搜索 应用程序。
  4. 如果你不能做到上面,去Play商店看到,如果你有             选择在那里。
  5. 重新启动(如果你取得了2,3或4)
  6. 在更新谷歌搜索和谷歌语音搜索从Play商店(如 你取得了3或4,或者有可用的更新呢)。
  7. 重新启动(如果你取得了6)
  8. 在安装英语英国离线的语言文件
  9. 重启
  10. 使用乱说!与连接
  11. 切换到飞行模式,并给它一个尝试
  12. 一旦工作,脱机识别其他语言,  如英国,美国应该开始工作了。
  1. Make sure the default Android Voice Recogniser is set to Google not Samsung/Vlingo
  2. Uninstall any offline recognition files you already have installed from the Google Voice Search Settings
  3. Go to your Android Application Settings and see if you can uninstall the updates for the Google Search and Google Voice Search applications.
  4. If you can't do the above, go to the Play Store see if you have the option there.
  5. Reboot (if you achieved 2, 3 or 4)
  6. Update Google Search and Google Voice Search from the Play Store (if you achieved 3 or 4 or if an update is available anyway).
  7. Reboot (if you achieved 6)
  8. Install English UK offline language files
  9. Reboot
  10. Use utter! with a connection
  11. Switch to aeroplane mode and give it a try
  12. Once it is working, the offline recognition of other languages, such as English US should start working too.

编辑:临时更改设备区域设置为英语(英国)也似乎kickstart的这个工作,对于某些用户

Temporarily changing the device locale to English UK also seems to kickstart this to work for some users.

一些用户报告,他们仍然不得不重新启动了很多次才将开始工作,但他们都到那里最终,经常莫名其妙地来究竟是什么触发,关键这是在<一个href="https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox&hl=en">Google搜索APK ,所以不属于公共领域或部分 AOSP

Some users reported they still had to reboot a number of times before it would begin working, but they all get there eventually, often inexplicably to what was the trigger, the key to which are inside the Google Search APK, so not in the public domain or part of AOSP.

从我可以建立,谷歌测试决定是否使用离线或在线识别之前连接的可用性。如果连接可用开始,但之前的响应丢失,谷歌将提供一个连接错误,也不会回退为脱机。作为一个侧面说明,如果已在网络合成声音的要求,有没有提供错误,如果失败 - 你得到沉默

From what I can establish, Google tests the availability of a connection prior to deciding whether to use offline or online recognition. If a connection is available initially but is lost prior to the response, Google will supply a connection error, it won’t fall-back to offline. As a side note, if a request for the network synthesised voice has been made, there is no error supplied it if fails – You get silence.

在谷歌搜索更新启用了谷歌没有任何额外的功能现在,事实上,如果你尝试使用它,没有互联网连接,就会报错。我提到这一点,因为我想知道的能力会被悄悄地把它似乎不应该在生产中加以依赖撤回,因此。

The Google Search update enabled no additional features in Google Now and in fact if you try to use it with no internet connection, it will error. I mention this as I wondered if the ability would be withdrawn as quietly as it appeared and therefore shouldn't be relied upon in production.

如果你打算开始使用SpeechRecognizer类的,予以警告,有一个pretty的的重要的错误,这就需要你自己实现来处理。

If you intend to start using the SpeechRecognizer class, be warned, there is a pretty major bug associated with it, which require your own implementation to handle.

不能够明确要求离线= TRUE ,使得控制这个功能,而无需操纵数据连接是不可能的。垃圾。你会得到数百名用户的电子邮件问你为什么你还没有启用这么简单的东西!

Not being able to specifically request offline = true, makes controlling this feature impossible without manipulating the data connection. Rubbish. You’ll get hundreds of user emails asking you why you haven’t enabled something so simple!

希望上面的帮助。

这篇关于离线语音识别机器人(软糖)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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