Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

facebookarchive/libwit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libwit

This library is community-maintained and likely broken. Please use the HTTP API or the Node.js/Python/Ruby SDKs for non-experimental needs (https://wit.ai/docs). We gladly accept pull requests.

libwit is a small library that makes it easy to integrate Wit.ai with many programming languages. It manages client audio recording and communication with Wit.ai.

To compile, make sure you have autoconf installed. Then run:

cargo build

This will create libwit-******.rlib and libwit-******.a files in the target folder. The first one can be linked as a normal C library. Depending on your platform, the build command will also tell you which additional libraries you will need to link to your program.

To compile the example, run:

mv build/libwit-******.a libwit.a
cd example
gcc -Wall -o test test.c -I ../include -L . -lwit <additional libraries>

Make sure to replace libwit-******.a with the exact name of the file created with cargo build. The additional libraries in the gcc command are those shown in the output of cargo build.