How to install VOCE for C++?

时光总嘲笑我的痴心妄想 提交于 2019-12-02 20:31:40

问题


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? Please help!


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/16261390/how-to-install-voce-for-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!