I extracted an old demo I had made for RubyConf which shows how to use the voice recognizer feature of OS X to implement an app which could be the Siri equivalent for OS X:
https://github.com/mattetti/MacRuby-Siri

The code is straight forward, the app runs in the top menu. Don't forget to turn on the voice recognition feature before testing the app.

- Matt