sphinx4-core

Sphinx4 core

License

License

BSD
Categories

Categories

Net
GroupId

GroupId

net.sf.phat
ArtifactId

ArtifactId

sphinx4-core
Last Version

Last Version

5prealpha
Release Date

Release Date

Type

Type

jar
Description

Description

sphinx4-core
Sphinx4 core
Project URL

Project URL

http://cmusphinx.sourceforge.net/
Source Code Management

Source Code Management

https://github.com/cmusphinx/pocketsphinx-android

Download sphinx4-core

How to add to project

<!-- https://jarcasting.com/artifacts/net.sf.phat/sphinx4-core/ -->
<dependency>
    <groupId>net.sf.phat</groupId>
    <artifactId>sphinx4-core</artifactId>
    <version>5prealpha</version>
</dependency>
// https://jarcasting.com/artifacts/net.sf.phat/sphinx4-core/
implementation 'net.sf.phat:sphinx4-core:5prealpha'
// https://jarcasting.com/artifacts/net.sf.phat/sphinx4-core/
implementation ("net.sf.phat:sphinx4-core:5prealpha")
'net.sf.phat:sphinx4-core:jar:5prealpha'
<dependency org="net.sf.phat" name="sphinx4-core" rev="5prealpha">
  <artifact name="sphinx4-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.sf.phat', module='sphinx4-core', version='5prealpha')
)
libraryDependencies += "net.sf.phat" % "sphinx4-core" % "5prealpha"
[net.sf.phat/sphinx4-core "5prealpha"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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 folder

For 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 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

net.sf.phat
Mirror of SourceForge repository.

Versions

Version
5prealpha