Steven Hickson has written on his blog about using voice commands on a Raspberry Pi. The software is highly modifiable, you can for example add your own keywords so you can control your devices.
As often in Raspberry Pi projects, this one has the source code widely open on GitHub. Steven's blog post also has the instructions on how to install the software.
Below is a Youtube video showcasing the functionality.