如何在 Android Studio 中使用 pocketsphinx
How to use pocketsphinx in Android Studio
我想使用 pocketsphinx 但我很困惑。
1。
我创建了一个模型。
2.inside 我创建的模型 main/jniLibs
并复制以下所有文件和文件夹:
现在,
- 我不知道在哪里可以下载 pocketsphinx-android-5prealpha-nolib.jar file
.
我应该使用 https://github.com/cmusphinx/pocketsphinx-android-demo
作为图书馆吗?
在 MainActivity
我得到了这些错误:
我认为您应该阅读 Pocketsphinx on Android 页面。
Using pocketsphinx-android
Referencing the library in Android project
Library is distributed as architecture-independent
pocketsphinx-android-5prealpha-nolib.jar and binary .so files for
different hardware architectures.
In Android Studio you need to place jar file in app/libs
folder and
jni .so files into app/src/main/jniLibs
folder.
换句话说,您似乎错过了 JAR 文件
否则,该站点上的另一个建议是简单地克隆演示项目,然后在其之上构建您的应用程序,而不是将代码复制到新项目中。
我想使用 pocketsphinx 但我很困惑。
1。 我创建了一个模型。
2.inside 我创建的模型 main/jniLibs
并复制以下所有文件和文件夹:
现在,
- 我不知道在哪里可以下载 pocketsphinx-android-5prealpha-nolib.jar file
.
我应该使用
https://github.com/cmusphinx/pocketsphinx-android-demo
作为图书馆吗?在
MainActivity
我得到了这些错误:
我认为您应该阅读 Pocketsphinx on Android 页面。
Using pocketsphinx-android
Referencing the library in Android project
Library is distributed as architecture-independent pocketsphinx-android-5prealpha-nolib.jar and binary .so files for different hardware architectures.
In Android Studio you need to place jar file in
app/libs
folder and jni .so files intoapp/src/main/jniLibs
folder.
换句话说,您似乎错过了 JAR 文件
否则,该站点上的另一个建议是简单地克隆演示项目,然后在其之上构建您的应用程序,而不是将代码复制到新项目中。