VoxForge
The Google API uses their (hidden) speech recognizer.
I have created a simple (one Java file) voice-based command handler for Linux using Sphinx. The current example works for only 10 voice commands, but this can be extended by adding more commands to a text file. It is at http://www.jaivox.com/speechcommand.html