跨浏览器语音识别 [英] Cross Browser Speech Recognition

查看:157
本文介绍了跨浏览器语音识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在处理一个ASP.NET中的项目。我需要添加语音命令,这将工作在IE / Chrome / Firefox。我已经搜索了很多,但没有找到任何解决方案的跨浏览器。

I am currently working on a project in ASP.NET. I need to add voice command which will work on IE/Chrome/Firefox. I have searched a lot, but haven't found any solutions for cross browser.

有任何JavaScript框架吗?
我可以使用Google网络语音API服务吗?

Is there any JavaScript framework to do it? Can i use Google web speech API as a service?

任何建议都会有所帮助。

Any suggestion will be helpful.

推荐答案

您可以在 Can查看各种浏览器中对语音识别的支持我使用。目前只有Chrome支持可靠的语音识别。其他则不行,包括IE,Firefox和Safari。

You can check support for speech recognition in various browsers at Can I Use. At the moment only Chrome supports speech recognition reliably. Others don't, including IE, Firefox and Safari. Firefox is working on the speech recognition support, but it's not there yet.

如果您的浏览器支持 getUserMedia 录制音频,您可以录制音频,并将其发送到服务器进行识别。您还可以使用仅支持javascript的识别器 Pocketsphinx.js ,如果您想要识别几个简单的命令。

If your browser supports getUserMedia to record audio you can record the audio and send it to the server for recognition. You can also use javascript-only recognizer Pocketsphinx.js if you want to recognize few simple commands.

在不支持getUserMedia API的浏览器上,您可以使用Flash对象或Java小程序捕获音频。这是你唯一的选择,如果你优先IE。

On browsers which do not support getUserMedia API you can use Flash object or java applet to capture audio. That's pretty much your only option if you prioritize IE.

这篇关于跨浏览器语音识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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