Can Web Speech API used in conjunction with Web Audio API?

浪子不回头ぞ 提交于 2019-12-03 23:53:10

问题


Is it possible to use the synthesised speech from Web Speech API as a SourceNode inside Web Audio API's audio context?


回答1:


I actually asked about adding this on the Web Speech mailing list, and was basically told "no". To be fair to people on that mailing list, I was unable to think of more than one or two specific use cases when prompted.

So unless they've changed something in the past month or so, it sounds like this isn't a planned feature.




回答2:


You can use Google's Web Speech API, you record the sound on your local machine and it is send to an external server, you can control some variants like when to stop or start the recognition and some other things. For more information here's a link:

http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API



来源:https://stackoverflow.com/questions/18902789/can-web-speech-api-used-in-conjunction-with-web-audio-api

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