Question

I am trying to install the VOCE api, which is a voice recognition API built for both C++ and Java. This is the second time I am working with external C++ libs, and first time working with Java + C++ api.

Voce link - http://voce.sourceforge.net/

In this API there is really no .lib files, but only .jar files! I read the whole "read me" file but no good clue at how to set this up for C++. I am using QT, the latest version which works with Visual Studio 2010 compiler.

How can I set this up?

Was it helpful?

Solution

Looking at the C++ header and examples from VOCE, it seems that the C++ option is using the Java Native Interface (JNI) to allow a C++ program to run an embedded JVM. All of the code is still in Java, but you just need to #'include he voce.h in your project and make sure you have set up JNI correctly.

There is a useful JNI tutorial here.

OTHER TIPS

For C++ it's better to just use CMUSphinx project pocketsphinx:

http://cmusphinx.sourceforge.net

It provides comparable interface in C++ and Voce is using it anyway.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top