This page has a simple discussion of how to set it upp and how to edit simple downloadable apple scripts to do tasks. It appears it works like a key stuffer cache where the contents of the apple script is sent as keystrokes and to which user chosen voice commands are attached and start the script.
http://lifehacker.com/software/speech-recognition/hack-attack-make-your-macs-speech-recognition-work-for-you-215764.php XB IC|XC
