Speech recognition and getUserMedia

核能气质少年 提交于 2019-12-19 06:56:30

问题


I'm building a web application and plan on using both speechRecognition and navigator.getUserMedia for audio input.

I noticed that my desktop browser (Chrome on Mac, v. 31.0.1650.63) asks twice for permission to use the microphone. While this may be a little bit annoying for the user, both voice recognition and audio input seem to work.

However, if I open the same page on Android (Nexus 7, Android v4.4.2; Chrome v31.0.1650.59), it asks twice for permission to use my microphone, but I can only use one of the two (whichever was started first). Sometimes, I also get a speech recognition error: "not-allowed" error, even though I gave permission to access the microphone.

I made a jsFiddle, here: http://jsfiddle.net/5xBpW/

My question is: Is there a way to perform speech recognition on an input stream? Or is there any other way to have both functionalities work on Chrome for Android?


回答1:


Have you considered other tools? There is an exciting new tool / product from Nuance (founded by Ray K, now head of Google Engineering) that translates voice data into actions using proprietary learning algorithms eg machine intelligence.

This tool understands context and can apply that to specific actions so the user doesn't have to use an exact phrase:

https://developer.nuance.com/public/index.php?task=mix

Tour: https://developer.nuance.com/views/templates/mix/howDoesMixWork/phone/index.html

The downside is that you are relying on a third party, but since the API you are looking at is also experimental this could be of interest.



来源:https://stackoverflow.com/questions/21093398/speech-recognition-and-getusermedia

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!