forked from cmusphinx/pocketsphinx-android
-
Notifications
You must be signed in to change notification settings - Fork 0
pocketsphinx build for Android
License
KevinFlynn/pocketsphinx-android
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
=====
This project is a wrapper for Pocketsphinx for Android providing
high-level interface for recognizing the microphone input.
Build
=====
You will need SWIG, Gradle and Android NDK to build a distributable
archive of pocketsphinx for Android. It is better to use recent versions.
You need to checkout sphinxbase, pocketsphinx and pocketsphinx-android
and put them in the same folder.
Root folder
\_pocketsphinx
\_sphinxbase
\_pocketsphinx-android
Older versions might be incompatible with the latest pocketsphinx-android,
so you need to make sure you are using latest versions. You can use
the following command to checkout from repository:
svn checkout svn://svn.code.sf.net/p/cmusphinx/code/trunk/sphinxbase
svn checkout svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx
svn checkout svn://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android
After checkout you need to update the file 'local.properties' in the
project root and define the following properties:
* sdk.dir - path to Android SDK
* ndk.dir - path to Android NDK
For example:
sdk.dir=/Users/User/Library/Android/sdk
ndk.dir=/Users/User/Library/Android/sdk/ndk-bundle
After everything is set, run `gradle build`. It will create
pocketsphinx-android-release.jar and
pocketsphinx-android-5prealpha-debug.aar in build/output.
Using the library
=================
Library is distributed as android archive AAR. You can add it to your project
as usual with Android Studio or directly in gradle
dependencies {
compile (name:'pocketsphinx-android-debug', ext:'aar')
}
repositories {
flatDir {
dirs 'libs'
}
}
For further information on usage please see the wiki page:
http://cmusphinx.sourceforge.net/wiki/tutorialandroid
About
pocketsphinx build for Android
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 93.4%
- CMake 6.6%