Use the Palaver developed by James McClain.
For more details look this video(http://www.youtube.com/watch?v=pxom292XW_g).
Dependencies:
$ sudo apt-get install sox python-argparse libsox-fmt-mp3 mutt xvkbd xautomation
The current code is beta, and will be going through restructuring changes as it moves from git to launchpad, so expect a lot of changes in the near future.
The beta can actually do quite a lot at the moment, especially if you add your own dictionary.
Have a look at the docs (/opt/Palaver/Docs
) for setting up a dictionary of commands. It is very easy to do. Also, have a look at the default dictionary for a list of inbuilt commands.