简体   繁体   English

Google语音输入活动

[英]Google Voice Typing on Activity

This is Google Voice Typing I would like to implement it on a activity (not IME ), because it offers continous speech recognition. 这是Google语音输入,我想在活动(而不是IME )上实现它,因为它提供了连续的语音识别。

I ve seen that some people ( like those guys ) create a service which contains a speech recognition loop. 我已经看到有些人( 像那些家伙一样 )创建了一个包含语音识别循环的服务。 I would like to avoid that, and use Google Voice Typing and get partial results. 我想避免这种情况,而是使用Google语音输入并获得部分结果。

You can use CMUSphinx , if your main goal is to recognize speech continuously. 如果您的主要目标是连续识别语音,则可以使用CMUSphinx To achieve this using google speech recognition api, you might have to resort to continuous speech recognition which takes too much resources and drains the device battery. 要使用Google语音识别API来实现此目的,您可能不得不采用连续语音识别,这会占用过多资源并消耗设备电池。

On the other hand, Pocketsphinx works really great. 另一方面,Pocketsphinx的确很棒。 It's fast enough to spot a key phrase and recognize voice commands behind the lock screen without users touching their device. 它的速度足够快,可以在锁定屏幕后发现关键短语并识别语音命令,而无需用户触摸其设备。 And it does all this offline. 它可以离线完成所有这一切。 You can try the demo . 您可以尝试演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM