Skip to content

georgecoltart/libwit-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 71.5%
  • Ruby 28.5%