Skip to content

nbaker/pywit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wit Python SDK Latest Version

pywit is the Python 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 Debian/Ubuntu, brew install curl on OS X)
  • a recent enough version of Python 2.7:
    • for OS X users: you can install it via Homebrew using brew install python. The version currently shipped with OS X is too old
    • for Linux users: make sure the python dev files are installed (sudo apt-get install python-dev on Debian)

Installation instructions

Using pip

pip install wit

Regular way

Run the following commands into the main directory (where setup.py and pywit.c are located):

python setup.py build
sudo python setup.py install

Usage

import wit

access_token = 'ACCESS_TOKEN'

wit.init()
print('Reponse: {}'.format(wit.text_query('turn on the lights in the kitchen', access_token)))
print('Response: {}'.format(wit.voice_query_auto(access_token)))
wit.close()

See example files for further information.

About

Python library for Wit.ai

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 72.0%
  • Python 28.0%