I'm trying to automate the recording of speech in Google's speech input (only works in Chrome).
As it is, the user has to click the mic to start the recording but I'm working on an installation where the user won't interact with the computer. Thus I have to trigger the recording some other way.
As far as it seems you can't access the speech input functionality by code, i.e. you can't call a function to start recording. So now I'm looking at simulating mouse click on the mic.
I've tried using javaScript but it seems only events and event handlers are affected (e.g. a simulated click on an input field would fire its click handlers but wouldn't give focus to the field.)
So now I'm looking at simulating Windows system mouse clicks, and I've found some programs that can do that (mostly on intervals) and it works, the recording starts.
But the problem is that I have to activate the click simulation from the browser application.
By best bet so far is AutoHotkey that enables you to create custom scripts, in my case a script that simulates a mouse click at a given position. So, if I could execute this script from the browser I would be safe, but I don't no how to do that.
Any ideas and / or thoughts are welcome!