问题
I have seen Google Speech API which is only working on chrome 25+ versions and HTML5 Speech API is also working on chrome only. I am wondering is there any good Javascript/ Jquery API so that i can used it to work on my project. Please if anyone can help me out that would be great. I am searching alot but all the examples are using google speech API. i would prefer Javascript API but if i can even get C# or PHP API and worked on all browsers that should be fine as well.
Thanks in advance
回答1:
Speech API only currently works on Chrome and Opera (caniuse.com). You cannot use C# or PHP API in a browser, since those are serverside technologies. What you could do is record audio on clientside, post it to the server, and have the server recognise it; I believe C# can use System.Speech.Recognition.SpeechRecognizer
, and there are several solutions you can use from PHP.
来源:https://stackoverflow.com/questions/27915109/speech-recognition-api-for-all-browsers