Code Monkey home page Code Monkey logo

pocketsphinxdemo's Introduction

/* 
 *   This is my University Project 
 *   Urdu based Offline Speech recognition for Smartphones (Android Platform)
 *   Copyrights by Sumeet Gehi 2012
 */
 
 Offline Speech Recognition With PocketSphinx
Follow the below steps to run AndroidPocketSphinxDemo project provided by Sphinx community:

1. Download the latest version of sphinxbase from the following link:
    http://sourceforge.net/projects/cmusphinx/files/sphinxbase/
    Extract the downloaded tar file and save it under a folder called 'sphinx' .

2. Download the latest version of pocketsphinx from the link:
    http://sourceforge.net/projects/cmusphinx/files/pocketsphinx
    Extract the downloaded tar file and save it under a folder named 'sphinx' .

3. After extracting sphinxbase and pocketsphinx, you will have to install both 
    in your system through the following commands,

        cd <sphinxbase path or pocketsphinx path>
        ./configure
        make
        make install

4. Make sure that you have installed Android NDK, if not installed, refer
    the link:
    http://developer.android.com/sdk/ndk/index.html

5. Download AndroidPocketSphinxDemo project from the link:
    https://github.com/cjac/cmusphinx/tree/trunk/PocketSphinxAndroidDemo

6. Copy the following files from <pocketsphinx path>/swig/edu/cmu/pocketsphinx
    to PocketSphinxDemo/jni/edu.cmu.pocketsphinx. The required files are:

        Config.java
        Decoder.java
        Hypothesis.java
        pocketsphinx.java
        pocketsphinxJNI.java
        SegmentIterator.java



7. Specify the path of 'sphinx' folder containing pocketsphinx and sphinxbase in
    'Android.mk' file. Then do Ndk build.

8. In the emulator/device in which you are going to install the project, create the
    folder called 'edu.cmu.pocketsphinx' under the path '/sdcard/Android/data/' .
   
9. Under the folder 'edu.cmu.pocketsphinx', create two folders called 'hmm' and
    'lm'. Under both 'hmm' and 'lm' create folder called 'en_US'.

10. Inside '/sdcard/Android/data/edu.cmu.pocketsphinx/hmm/en_US', copy the
      folder 'hub4wsj_sc_8k' present under   
      <pocketsphinx path>/model/hmm/en_US

11. Inside  '/sdcard/Android/data/edu.cmu.pocketsphinx/lm/en_US', copy the files
      'hub4.5000.dic' and 'hub4.5000.DMP' present under
      <pocketsphinx path>/model/lm/en_US

12. Now the project is ready to run on the emualtor/device. 

pocketsphinxdemo's People

Contributors

samigehi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.