Coder Social home page Coder Social logo

kaljurand / inimesed Goto Github PK

View Code? Open in Web Editor NEW
62.0 16.0 37.0 847 KB

An Android app that lets you search your contacts by voice. Internet not required. Based on Pocketsphinx. Uses Estonian acoustic models.

Home Page: http://kaljurand.github.io/Inimesed/

License: Apache License 2.0

Makefile 3.11% CSS 0.30% HTML 9.67% Java 55.25% C 31.67%
pocketsphinx android android-ndk speech-recognition estonian speech-to-text

inimesed's Introduction

Inimesed

Inimesed is an Android app that lets you search your contacts by voice. Since it uses the Android port of the Pocketsphinx speech recognizer, it does not require an internet connection. The current version of Inimesed uses Estonian acoustic models.

The FAQ tries to answer often occuring questions regarding porting Inimesed to other languages and use cases.

PocketSphinx on Android

In order to successfully build:

  • PocketSphinx libraries must be installed
  • swig must be installed
  • Android NDK must be installed (tested with: android-ndk-r9)
  • Android SDK must be installed
  • change SPHINX_PATH in jni/Android.mk to match your configuration
    • pocketsphinx (PocketSphinx 0.7 / PocketSphinx v0.5.99)
    • sphinxbase (Sphinxbase-0.7)

Follow http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/ to get everything installed.

Building for release

Run these commands in the app-directory. You need to have the files:

First time:

# Delete bin/ and gen/
ant clean

# This is needed only for the first time,
# and is run in jni-directory
cd jni/

# Create Java wrappers and pocketsphinx_wrap.c.
# They are already in the repository (generated using swig 2.0.4) so you do not
# necessarily need to run this.
# Note that swig 2.0.5+ breaks ndk_build. There is probably
# a simple solution to it but I haven't found it.
make swig_build

# Compile the c-files.
# First set an environment variable `ANDROID_NDK` to point to the Android NDK
make ndk_build

# Go back into the main directory
cd ..

# Compile and package everything for the release
# (asks for the release keys)
ant release

# Install
adb install -r bin/Inimesed-release.apk

Next time:

ant clean release
adb install -r bin/Inimesed-release.apk

Tags

Version tags are set by e.g.

git tag -a v0.8.18 -m 'version 0.8.18'

The last number should be even.

Lint

lint --html report.html .

inimesed's People

Contributors

kaljurand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inimesed's Issues

Running Demo

Hello I am trying to run the demo of ur project. it is crashing on mDecoder.startUtt();

I found the issue related to -jsgf config settings when I define the -lm file path it works fine. but -jsgf not working? I want to define my grammer. Can you tell me why defining -jsgf filepath not working??

Also it is giving error some:

08-12 17:33:27.887: I/dalvikvm(7804): Could not find method android.media.audiofx.AcousticEchoCanceler.create, referenced from method ee.ioc.phon.android.inimesed.SpeechAudioRecord.

These 3 lines making a problem in recording which causes crash

         c.setString("-hmm",  df.getHmm());
    c.setString("-dict", df.getDict());
    c.setString("-jsgf",   df.getJsgf());

When I replaced these with

        c.setString("-hmm","/sdcard/Android/data/edu.cmu.pocketsphinx/hmm/en_US/hub4wsj_sc_8k");
    c.setString("-dict","/sdcard/Android/data/edu.cmu.pocketsphinx/lm/en_US/hub4.5000.dic");
    c.setString("-lm","/sdcard/Android/data/edu.cmu.pocketsphinx/lm/en_US/hub4.5000.DMP");

it works fine than. Can you tell me what is the issue please??

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.