Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.09 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.09 KB

Wit Ruby SDK Gem Version

This is the Ruby SDK for Wit.AI.

Prerequisites

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

Installation instructions

From RubyGems

gem install wit -V

From sources

Run the following command into the main directory (where the wit.gemspec is located):

gem build wit.gemspec
gem install wit-*.gem -V

Usage

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.

Credentials

Thanks to Justin Workman for releasing a first version in October 2013. We really appreciate!