Home

Awesome

Programming By Voice

Combine Mac Dictation with a GUI in your browser to write code by voice command.

Try it in your browser: http://codepen.io/hchiam/full/evbOdv

Steps to use it:

  1. Click in the textbox.
  2. Start up Mac Dictation (default: press the Fn key twice).
  3. Say (or type) something like "computer show commands please" (try speaking slowly with clear breaks between words).

screenshot_GUI.png

To locally run a copy of the code files from your computer, you need to save at least interface.html, brain.js, and style.css in the same folder, and open up interface.html in a web browser.

Main Data Flow:

Mac Dictation —> interface.html’s inputStr’s oninput —> brain.js’s (parseCommand —> checkValidCommand —> identifyCommand —> runCommand) —> interface.html’s outputStr

(style.css is for the styles applied to different elements in interface.html, including important properties like hidden/visibility, opacity of overlapping elements, formatting, etc.)

Check Out Related Projects:

https://github.com/hchiam/please

https://github.com/hchiam/language-user-interface

https://github.com/hchiam/code-tutor