
在试用pocketsphinx的安卓版示例代码时,如果妳遇到错误说无法解析 edu.cmu.pocketsphinx.Config ,则说明妳的安卓项目中缺少了用于封装 pocketsphinx JNI接口的Java类文件。这些文件本来是由swig来生成的,而现在却没能成功生成 。解决方法就是自己手动生成一下并且放置到正确的位置 。
http://sourceforge.net/p/cmusphinx/discussion/help/thread/8369b305/
亮点:
i got a strange issue
import edu.cmu.pocketsphinx.Config;
import edu.cmu.pocketsphinx.Decoder;
import edu.cmu.pocketsphinx.Hypothesis;
import edu.cmu.pocketsphinx.pocketsphinx;
cannot be resolved
libpocketsphinx_jni.so is in obj/local/armeabi and libs/armeabi
what am i missing ???
•.
anyone can help me with this ?
i got a .so but no jar to include in the eclipse project
•.
libpocketsphinx_jni.so is in obj/local/armeabi and libs/armeabi
There is nothing strange
This issue is not related to JNI. It says that the java files for the corresponding classes are missing. Those files must be present in jni/edu/cmu/pocketsphinx, there should be files like Config.java and so on.
If the files are present, you need to add them to a project build path. If files are missing you have the issues with swig. Swig must create them.
anyone can help me with this ?
Please be patient and follow the instructions precisely and it will work.
•.
未知美人
未知美人
HxLauncher: Launch Android applications by voice commands