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.