在Android上安装Pocketsphinx [英] Installing Pocketsphinx on Android

查看:121
本文介绍了在Android上安装Pocketsphinx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对上和Android手机安装Pocketsphinx了一些问题,我一直没能找到答案的CMUSphinx支持论坛,IRC,现有的StackOverflow职位,或密集的谷歌搜索。如果有人在这里有一分钟,并愿意提供帮助,我会非常AP preciate它。

I have some questions on installing Pocketsphinx on and Android phone, and I haven't been able to find answers on CMUSphinx's support forum, IRC, existing StackOverflow posts, or intensive Googling. If anyone here has a minute and would be willing to help, I'd greatly appreciate it.

首先,我很困惑,是否我甚至可以在Android上安装Pocketsphinx。我相信,我需要的Java箱,以便在Android上运行,所以我尝试安装狮身人面像4.要测试程序,我做了一个空的活动和移动的HelloWorld演示文件到onCreate方法。

First off, I'm confused as to whether I can even install Pocketsphinx on Android. I believe I need Java bins in order to run on Android, so I attempted to install Sphinx 4. To test the program, I made an empty activity and moved the HelloWorld demo file into the onCreate method.

然后,我添加了以下库的构建路径:

Then, I added the following libraries to the build path:

  • js.jar
  • JS​​API-1.0-base.jar
  • 的junit-4.8.1.jar
  • sphinx4.jar
  • tags.jar
  • WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar

在code部署在Droid 2的运行Android 2.2,但我得到以下运行时错误:

The code deploys on a Droid 2 running Android 2.2, but I get the following error at runtime:

ERROR/AndroidRuntime(11567): Caused by: Property exception component:'wsjLoader' property:'location' - Can't locate resource:/WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz

我包括在构建路径的jar文件,所以我不知道为什么这是造成异常被抛出。但话又说回来,我甚至不知道我应该尝试在Android上安装狮身人面像4。有谁知道我应该怎么办?在此先感谢您的帮助。

I am including that jar file in the build path, so I'm not sure why that's causing an exception to be thrown. But then again, I'm not even sure I should be trying to install Sphinx 4 on Android. Does anyone know what I should do? Thanks in advance for your help.

5/2011更新:我所做的尝试获得pocketsphinx在Android上运行现在在上市的CMU狮身人面像维基<一href="http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/">http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/

5/2011 Update: The attempt I made to get pocketsphinx to run on Android is now listed on the CMU Sphinx wiki at http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/

推荐答案

不知道,如果你有这个想通了,但我没有看到任何地方,你不得不这样做。所以,如果您仍然有在Android上运行PocketSphinx问题,你需要做的就是创建文件夹和声学和语言模型上传到RecognizerTask.java指定的位置。

Not sure if you had this figured out but I have not read anywhere that you had to do this. So in case you are still having problems running PocketSphinx on the Android, what you need to do is to create the folders and upload the acoustics and language models to the locations specified in RecognizerTask.java.

这篇关于在Android上安装Pocketsphinx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆