Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmusphinx/pocketsphinx-android
pocketsphinx build for Android
https://github.com/cmusphinx/pocketsphinx-android
Last synced: 29 days ago
JSON representation
pocketsphinx build for Android
- Host: GitHub
- URL: https://github.com/cmusphinx/pocketsphinx-android
- Owner: cmusphinx
- License: bsd-2-clause
- Created: 2014-04-10T10:58:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-11T07:14:04.000Z (almost 5 years ago)
- Last Synced: 2024-08-03T04:08:46.773Z (4 months ago)
- Language: Java
- Size: 159 KB
- Stars: 234
- Watchers: 35
- Forks: 129
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- low-resource-languages - pocketsphinx-android - pocketsphinx build for Android. (Software / Utilities)
README
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:```
git clone https://github.com/cmusphinx/sphinxbase
git clone https://github.com/cmusphinx/pocketsphinx
git clone https://github.com/cmusphinx/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
* pocketsphinx.dir - path to pocketsphinx folder
* sphinxbase.dir - path to sphinxbase folderFor example:
```
sdk.dir=/Users/User/Library/Android/sdk
ndk.dir=/Users/User/Library/Android/sdk/ndk-bundle
pocketsphinx.dir=/Users/user/pocketsphinx
sphinxbase.dir=/Users/user/sphinxbase
```After everything is set, run `./gradlew build`. It will create
pocketsphinx-android-5prealpha-release.aar and
pocketsphinx-android-5prealpha-debug.aar in build/output.Using the library
=================Add bintray maven to your repositories
allprojects {
repositories {
maven {
url "https://dl.bintray.com"
}
jcenter()
google()
}
}Add `pocketsphinx-android` to your dependencies
dependencies {
implementation 'edu.cmu.pocketsphinx.android:pocketsphinx-android:5prealpha@aar'
}Using the library locally
=================Library is distributed as android archive AAR. You can add it to your project
as usual with Android Studio or directly in gradledependencies {
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