语音启用asp.net应用程序 [英] Speech enabled asp.net application

查看:136
本文介绍了语音启用asp.net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是在一个asp.net web应用程序,需要一些数据合作,通过语音输入。

We are working on an asp.net web application that requires some data to be entered by speech.

用户可以输入使用但普通用户界面的一些数据,我们希望有一个附加功能,他可以通过语音输入的数据。我们可以修复命令,如同进入值1到数据1,用户会说话数据1,其次是值1(或其他任何东西,可以在以后固定)的声音。

The user can enter some data using normal user interface however, we want an additional feature where he can enter data by speaking. We can fix the voice commands like to enter "value1" to "data1", user will speak "data1" followed by "value1" (or anything else, that can be fixed later).

我搜索在互联网上,发现使用的Microsoft Speech SDK是一个解决方案。我们开始与一些初步的实施,发现它仅适用于IE浏览器,并需要一个插件(我们无法在Windows 7中使用这个插件,只是XP)。

I searched over the internet and found that using Microsoft Speech SDK is a solution. We started with some initial implementation and found that it only works with IE and requires a plugin (we were not able to use this plugin in Windows 7, just XP).

有没有其他的解决方案,也可以SASDK可以用于其他的浏览器呢?任何建议将是有益的。

Is there any other solution or can SASDK be used for other browsers as well ? Any suggestions would be helpful.

谢谢,
拉夫

推荐答案

是的,这是可以做到:


  1. 使用HTML5的getUserMedia捕获音频流

  2. 将它保存为.wav,也有对图书馆

  3. 通过AJAX发送.WAV到服务器

  4. 订阅.WAV到SpeechRecognitionEngine,通过SetInputToWaveFile方法

  5. 得到的结果,并在AJAX调用返回它

一个例子:

http://weblogs.asp.net/ricardoperes/speech-识别功能于ASP网

这篇关于语音启用asp.net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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