If you are only happy to support Chrome at this point, you should do this by checking the input value with webkit voice input support when you receive the webkitspeechchange
event. See here (hattip to iRomin ).
The obvious and pretty important thing is that you need to enter a web quote-enabled input field on your page, and the user must click the microphone icon to start recording. The W3 startSpeechInput
mentions the startSpeechInput
method, but this doesn't seem to be implemented in my version of Chrome (18).
If this is too many restrictions, and you cannot wait for Chrome to startSpeechInput
method and / or need to support other browsers, you can take a look at the open source speech API that uses Flash to access the microphone and provides a JavaScript API for the client . From the documentation, it looks like it offers many options for the back end, including a hosted service. There are also various demos that should give you an idea of ββwhether it depends on the job.
source share