I'm not sure how accurate or the usability of this would be, but it might be possible. On your website you would need a few things.
- A textbox of some sort that one would be able to dictate the commands into
- When the page loads, call the .focus() on the textbox, which will allow the user to call up dictation (Double press Fn) and tell you what they want to do.
- Bind a jQuery .change() on this textbox, which would then parse what the user would have dictated in the textbox
- jQuery action based on the command, whether it is a redirect, or scroll, etc.
- Clear out the textbox and get ready for the next command
There are some shortcomings, such as
- The user will still have to initialize dictation in some way (Double press Fn) whenever a new page is loaded, unless you are loading everything through AJAX in div.
- Where should the textbox be, and should it be visible to every user at all times?
- Teaching your users the proper commands to use
- Would this work on a Windows or Linux PC?
It is definitely an interesting idea, but I don't think it has a very practical use, as there are many other accessibility programs on Mac such as VoiceOver that work very well. This is just a general overview, and there is a lot more complexity to it than shown above, especially when it comes to what commands do what and if you want to try and support natural language processing. I hope this helps!