This is the Ruby SDK for Wit.AI.
This package requires:
- libsox (with -dev files on Debian/Ubuntu,
brew install sox
on OS X) - libcurl (with -dev files on Debin/Ubuntu,
brew install curl
on OS X) - a recent Ruby (>= 2.0.0) - install it via RVM e.g.
rvm install 2.1.3
with RubyGems
gem install wit -V
Run the following command into the main directory (where the wit.gemspec
is located):
gem build wit.gemspec
gem install wit-*.gem -V
require '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.close
See example files for further information.
Thanks to Justin Workman for releasing a first version in October 2013. We really appreciate!