The API.AI C++ library makes it easy to integrate speech recognition with Api.ai natural language processing API. Api.ai allows using voice commands and integration with dialog scenarios defined for a particular agent in API.AI.
- Create an Api.ai account
The project contains submodules for some dependencies and some libraries. Once you have cloned cpp-netlib, you must update the submodules:
$ cd ~/libapiai
$ git submodule init
$ git submodule update
To build the libraries and run the tests with CMake, you will need to have CMake version 3.0 or higher installed appropriately in your system.
$ cd ~/libapiai
$ mkdir build
$ cd build
$ cmake ../
Once CMake is done with generating the Makefiles and configuring the project, you can now build and install library:
$ make
$ sudo make install
Use library as submodule.
$ git submodule init
$ git submodule add git@github.com:api-ai/libapiai.git
In your CMakeLists.txt add
add_subdirectory(libapiai)
Your can see examples for more information about how to use library.
- cjson (http://sourceforge.net/projects/cjson/)
- libcurl (http://libcurl.org/)