语音到文本转换php,javascript或在线Flash [英] Speech to text conversion php,javascript or flash online
问题描述
我非常了解php,并且我使用javascript和jquery,但是我似乎不知道如何与他们进行语音到文本的转换,但是我确实知道周围有很多Flash语音识别api,但是我想速度更快,我想要一个脚本,它可以准确地使用您的声音并将其转换为文本. 非常感谢你, 匿名.
I know php well and I use javascript and jquery but I don't seem to know how to make a speech to text conversion with them though, but i do know that there are many flash speech recognition api's around but I would like a faster, I would like a script for this that can accurately use your voice and convert it into text. Thank you very Much, Anonymous.
推荐答案
如果您的目标是从html页面进行语音识别,则可能需要考虑其他方法. Chrome支持语音识别以进行文本输入.请参见 http://slides.html5rocks.com/#speech-input 和 http://www.filosophy. org/2011/03/talking-to-the-web-the-basics-of-html5-speech-input/.
If your goal is to do speech recognition from an html page, you might want to look at some other alternatives. Chrome supports speech recognition for text input. See http://slides.html5rocks.com/#speech-input and http://www.filosophy.org/2011/03/talking-to-the-web-the-basics-of-html5-speech-input/.
这些使用以下标记进行语音识别:
These use the following tag for speech recognition:
<input type="text" speech x-webkit-speech />
我相信Chrome是当前唯一支持此功能的浏览器. http://tomlerendu.com/tutorial/how-to- use-html-5-speech-input/有一个很好的例子,并显示
I believe Chrome is the only browser that currently supports this. http://tomlerendu.com/tutorial/how-to-use-html-5-speech-input/ has a good example and shows
if( document.createElement('input').webkitSpeech==undefined )
{
//no speech support
}
作为测试是否支持语音识别的一种方法.
as a means to test if speech recognition is supported.
从历史上看,还有其他方法. Opera实施了其他解决方案,但似乎他们不再支持它- http://dev.opera.com/articles/view/getting-to-know-voice/.
Historically, there have been other approaches. Opera implemented a different solution, but it appears they are no longer supporting it - http://dev.opera.com/articles/view/getting-to-know-voice/.
已使用的另一种方法是使用与语音识别后端进行通信的Java小程序或Flash应用程序. WAMI就是一个很好的例子- http://wami.csail.mit.edu/.这些方法使用富客户端(Java或Flash或其他插件)捕获语音并将其发送到服务器或某些本地语音引擎进行处理.
Another approach that has been used is to use a java applet or flash app that communicates with a speech recognition back end. WAMI is a good example of this - http://wami.csail.mit.edu/. These approaches use a rich client (Java or Flash or other plug in) to capture speech and send it to a server or some local speech engine for processing.
这篇关于语音到文本转换php,javascript或在线Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!