This is the Ruby SDK for Wit.AI.
This package requires:
- libsox (with -dev files on Debian/Ubuntu,
brew install soxon OS X) - libcurl (with -dev files on Debin/Ubuntu,
brew install curlon OS X) - a recent Ruby (>= 2.0.0) - install it via RVM e.g.
rvm install 2.1.3with RubyGems
gem install wit -VRun the following command into the main directory (where the wit.gemspec is located):
gem build wit.gemspec
gem install wit-*.gem -Vrequire 'wit'
access_token = 'ACCESS_TOKEN'
Wit.init
p "Response: #{Wit.text_query("turn on the lights in the kitchen", access_token)}"
p "Response: #{Wit.voice_query_auto(access_token)}"
Wit.closeSee example files for further information.
Thanks to Justin Workman for releasing a first version in October 2013. We really appreciate!