Wednesday, February 2, 2011

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.

113 comments:

  1. Thank you very much! The article is very helpful indeed.

    ReplyDelete
  2. Which version of pocketsphinx did you download? It seems that the 0.6.1 version doesn't include the swig folder referenced in your tutorial.

    ReplyDelete
    Replies
    1. hey this is for windows Environment or Linux..

      Delete
  3. It looks like the swig file is only in the snapshot directory:
    http://cmusphinx.svn.sourceforge.net/viewvc/cmusphinx/trunk/pocketsphinx/?view=tar

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Hi nickruiz,

    I have mentioned about pocketSphinx version:0.6.1

    Swig folder will be generated after step 3.

    ReplyDelete
  6. The swig folder wasn't created after I completed step 3, unfortunately. I ended up using the swig folder from the link I mentioned above and tried to reconfigure/rebuild the sphinxbase and pocketsphinx libraries.

    Unfortunately, when I try to build in step 7, I still get errors that I'm missing sphinxbase/err.h and pocketsphinx.h. Any ideas?

    ReplyDelete
  7. Did you check whether there were any errors while installing sphinxbase and pocketsphinx through commands ./configure
    make
    make install

    ReplyDelete
  8. Thanks again. I solved those problems. I had to make sure that my LOCAL_C_INCLUDES were pointing to the right locations. Now I have a bizarre set of errors related to ARM registers.

    elected processor does not support `smull r1,r2,r0,r4'

    I'm now asking on the Sphinx (SourceForge) forums: http://sourceforge.net/projects/cmusphinx/forums/forum/5471/topic/4390960?message=9490202

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. I used the tarball that was posted on the Stack Overflow thread that you had used.
    http://www.zachrattner.com/PocketSphinxDemo.tar.gz

    It works until I try to compile it on my own machine. I still get the strange assembly errors. I posted a question on StackOverflow.
    http://stackoverflow.com/questions/5169699/problems-trying-to-build-pocketsphinxandroiddemo-using-ndk

    ReplyDelete
  11. I am having the same problem as nickrulz as well. It doesn't create a swig folder and I don't see any error messages. I'm building on ubuntu 32 bit OS.

    ReplyDelete
  12. did anyone resolve the problem with creating a swig folder after step 3.

    ReplyDelete
  13. hey...

    sorry to bug you again...but can you tell me where i can find this path "'/sdcard/Android/data/' (step 7)

    i am at this step but i dont know what to do for this part of the guide

    ReplyDelete
  14. @Nitin, I had to grab some folders from the "bleeding edge" version of PocketSphinx to get the swig folder. Apparently, the folder is supposed to be created automatically when you build, but that didn't work for me.

    Which SDK version of Android are you using? If you're using 2.2 or higher, you'll have to use /mnt/sdcard/ to access your external storage. Are you trying to run the code on the emulator, or on a phone?

    ReplyDelete
  15. thanks for the quick reply

    i am trying to run the code on the emulator first and it is running on 2.2.

    But i want to get it running on the phone which is running on 2.1. But I guess i will have to update the firmware to 2.2 . But i dont know where to find /mnt/sdcard/ folders....is there any way to find /sdcar/android/data command/folders. I have no clue how to get past this. Thanks for your help.

    ReplyDelete
  16. Is there any way that i can chat or email you as my project is due next week and i really need to get this running on my device. thank you so much for your help.

    ReplyDelete
  17. If the swig folder wasn't created after you completed step 3, you maybe want to rename
    sphinxbase-X.X to sphinxbase by typing

    > mv sphinxbase-X.X sphinxbase (where X.X being the version of sphinxbase)

    ReplyDelete
  18. Hi, yes i did that and it compiled perfectly. Now when i run the app in the emulator and i press the hold and speak button, the app crashes (exits). I know i have to do something with the /sdcard/android....
    i am just not sure where to find this path and how to do this! please help!

    thanks,

    Nitin

    ReplyDelete
  19. hi Nithin,

    As i saw your comments above, i understood that you are running the code in emulator. So, get into "adb shell" of the emulator and there you can do "cd /sdcard/android", inside this directory run steps starting from 8 to 11.

    ReplyDelete
  20. Nickrulz. I am in the same boat as you are in. I went got the bleeding edge source and did a ./autogen.sh and a ./configure. The ./configure complained that sphinxbase headers were not found. Where did you go to change the LOCAL_C_INCLUDES? In fact have you gotten it working yet, or are you still stuck at your last comment?

    ReplyDelete
  21. By using both sphinxbase and pocketshpinx snapshots I have the swig folder that I need and no .h files missing. But the contents in /swig/edu/cmu/pocketsphinx are different than what you describe. I have ConfigTest.java,
    DecoderTest.java,
    goforward.wav,
    LatticeTest.java
    and test.cfg.

    It was someone on IRC who told me to get both snapshots of sphinxbase and pocketsphinx

    ReplyDelete
    Replies
    1. hi mac
      i also have those 5 files in my swig folder.
      and there is no exact PocketSphinxDemo/jni/edu.cmu.pocketsphinx. folder in my androidpocketsphinxdemo folder..Can u give a detailed description or guidance how to do it.i have downloaded a sphinxbase 0.7 and pocketsphinx 0.7 version

      Delete
  22. I was trying to install pocketsphinx-0.6.1. When i was running make command, it's giving error that there is no make file..

    any help...

    ReplyDelete
  23. Hi Bose,

    Did you check whether the extracted pocketsphinx has file called "Makefile" in it?

    ReplyDelete
  24. Hi Swathi,
    Thanks for your reply..

    It was successfully installed, but i am unable to find swig folder...

    ReplyDelete
  25. Bose I explained that in my post. You have to download the snapshots for both pocketsphinx and base sphinx

    ReplyDelete
  26. Also I was getting an error when trying to ndk-build -B the jni folder. I found out that you have to reverse the order the static-libraries are listed when building the shared library. So the last two lines look like this for me.

    LOCAL_STATIC_LIBRARIES := pocketsphinx sphinxlm sphinxfeat sphinxfe sphinxutil

    include $(BUILD_SHARED_LIBRARY)

    If I didn't reverse the order of the files it would complain about undefined references when trying to build the shared-library.

    ReplyDelete
  27. I'm sure I'll incur the wrath of everyone here but I simply don't have the time to muddle through the above. Has anyone considered making an installer for this? I'd pay for simple installable version of this.

    ReplyDelete
  28. The Java files (Config.java, Decoder.java, Hypothesis.java, etc.) don't seem to be in /swig/edu/cmu/pocketsphinx anymore, either in the 0.7 release or in the snapshots. Does anyone know where I can get these files?

    ReplyDelete
  29. I got the Java files to appear in [pocketsphinx directory]/swig/edu/cmu/pocketsphinx by:

    0. install swig (sudo apt-get install swig)
    1-3. as written above.
    3.1. cd [pocketsphinx directory]/swig
    3.2. make

    Don't know if the rest of the steps will work, trying now.

    ReplyDelete
  30. I imported the project into Eclipse to install it on my phone, and I got one error: "refresh scope invalid." It did not give any more information.

    ReplyDelete
  31. dear Swathi;
    i have a problem in running ndk inside eclipse i think it is the problem when i specify the location to my ndk
    my location is: /home/amal/Desktop/senior_project/android-ndk-r3/build/host-setup.sh

    is this a correct path or i am missing something
    i am also having errors such as:
    Refresh Scope invalid
    and errors occurred during the build

    thanks
    Amal

    ReplyDelete
  32. Hi Amal,

    Even i was facing "Refresh scope invalid", its because eclipse takes few minutes to refresh workspace and before it gets refreshed if you run the project, you will face such error. To resolve it, i was just refreshing for a minute, then the error got resolved.

    I may not be correct, if its wrong forgive me.

    For further issues, you can refer the link below:

    http://sourceforge.net/projects/cmusphinx/forums/forum/5471/topic/4022625/index/page/1

    ReplyDelete
  33. Dear Swathi;
    thank you for reply.
    can you tell me how did you do the ndk build because i do not know if my way is correct. i am building my ndk inside eclipse like this tutorial http://mobilepearls.com/labs/ndk-builder-in-eclipse/
    can you tell me how did you build your ndk.

    thanks
    amal

    ReplyDelete
  34. Hi Amal,

    Here are the commands below which i use to run ndk-build:

    swathi@swathi-laptop:~/workspace2$ cd TestJni/bin/
    swathi@swathi-laptop:~/workspace2/TestJni/bin$ /home/swathi/android/android-ndk-r4-crystax/ndk-build
    Install : libndk1.so => /home/swathi/workspace2/TestJni/libs/armeabi

    In the above commands,
    TestJni - Project folder
    /home/swathi/workspace2/TestJni/libs/armeabi - ndk-build script path

    After the execution of above commands libs and obj folders will be generated in your project directory.

    ReplyDelete
    Replies
    1. it shows command not found when i i run
      Install : libndk1.so => /home/swathi/workspace2/TestJni/libs/armeabi

      Delete
  35. dear swathi;
    which version of ndk are you using?

    ReplyDelete
  36. Dear Swathi,

    I got the pocketsphinx android demo to work. However, it runs very slowly - usually anywhere between 10x and 50x realtime to generate a final hypothesis. Then again, I'm running it on an HTC Dream (the slow-as-molasses original Android phone). How long does it take to run on your Droid? And how accurate is it?

    Thanks,
    Albert

    ReplyDelete
  37. dear swathi;
    thank you i was able to run the ndk and i got the libs and obj folders but i have in build.xml this error:
    Default target help does not exist in this project build.xml /PocketSphinxDemo line 2 Ant Buildfile Problem

    do you have any advice for this?

    ReplyDelete
  38. Hi Albert,

    I tested PocketSphinxAndroidDemo in HTC Sprint, with the default dictionary of pocketSphinx, i was able to get 70% accuracy. Then i used:

    http://cmusphinx.sourceforge.net/wiki/tutoriallm

    tutorial in the above link to develop my own corpus using webService(lmtool) to generate language model and a dictionary files. This gave me around 95% accuracy.

    ReplyDelete
  39. Hi amal,

    I am using ndk version 4.

    Sorry amal, i don't have idea about build.xml. I didn't use it to build the project.

    ReplyDelete
  40. I want to run Pocket Spinx on Android Emulator by using Eclipse on Windows. Are these steps related to it? because I cant be able to run step 3 on command prompt of Windows

    If not, how can I install Pocket Sphinx on Android Emulator by using Eclipse on Windows?

    Waiting for your reply anxiously.

    ReplyDelete
    Replies
    1. Did you solved this problem ? How can we build on windows

      Delete
  41. dear swathi;
    after i run the ndk i got the obj and libs foleders, but when i run the application all what i get is a black scfreen on my android virtual machine.

    should not I get the output on the screen after i do the ndk step? or after i do all steps?

    ReplyDelete
  42. oh i forgot to tell you that i did not the ndk build.
    this step is required if i am running my application using ant build but because i am working in eclipse this is done automatically so i needed only the ndk-build.
    this problem is solved now i just need to see the result and i do not know why i am not getting any output.

    ReplyDelete
  43. Hello Swathi;
    now it is working with me for the English language :)

    ReplyDelete
  44. Hello Amal,

    Happy to hear that it worked :)

    ReplyDelete
  45. Hey Swathi, i followed these steps both on Windows(cygwin) and Backtrack(GNU/Linux), When i try to use the command NDK-BUILD, It asks for the project folder instead of the root folder where pocketsphinx and sphinxbase is, i even tried it on PocketSphinxDemo folder but it returns with an error saying target pattern contains no "%".

    Also step three has to be done on sphinxbase first and then pocketsphinx or just one of them? I did it in this order and it worked.(i guess).

    I tried to run the project on the emulator and it ran without errors but as soon as the dialog appears the app closes without any notification.

    Also Lastly how can we deploy this an app? as in we need to put these files together and then create a folder in the sd card using the code ? Is it possible ?

    And amar please help me set this up using eclipse if you can

    Thanks

    ReplyDelete
  46. Sorry Amal not amar my mistake !

    ReplyDelete
  47. Hello Swathi,
    I am really a naive user of Linux, and when i followed the third step after doing configure, when i did the make command it gives :
    make: *** No targets specified and no makefile found. Stop.

    and yes while configure command, at the end it said that :

    You need to install Bison.

    Thanks

    ReplyDelete
  48. Hey Swathi,

    I have found the solution to the above problem.

    ReplyDelete
  49. Dear Amal,

    Did you use the same link
    http://mobilepearls.com/labs/ndk-builder-in-eclipse/

    as you have given above to configure your eclipse with the NDK .

    thanks,

    ReplyDelete
  50. Hi,
    i am trying to do these steps to implement offline speech recognition in my project.
    But when i hit both the links (step1 and step2)it shows same
    "Download pocketsphinx-0.7-win32.zip (212.2 kB)"
    can you guide me.
    And now i am downloading cygwin to do this.

    ReplyDelete
  51. Hi swathi,

    I have placed the code of PocketSphinxDemo.
    But in RecognizerTask.java It shows an error for Config,Decoder,Hypothesis and pocketsphinx as undefined

    ReplyDelete
  52. Hi,

    I had downloaded and extracted the tar files. When i run ./configure command, it shows some error showing 'sphinxbase is not found' . Here is the command log.


    checking for sphinxbase in /root/Documents/sphinx/pocketsphinx/../sphinxbase... no
    checking for sphinxbase in /root/Documents/sphinx/pocketsphinx/../sphinxbase... no
    checking for SphinxBase... no
    configure: error: in `/root/Documents/sphinx/pocketsphinx':
    configure: error: SphinxBase was not found on your system.
    Make sure that you have installed it and that the
    PKG_CONFIG_PATH environment variable is set correctly, if
    it was installed in a non-standard prefix.

    ReplyDelete
  53. Are you using windows? It doesn't look like. How can I install it on a Windows computer?

    ReplyDelete
  54. i have follow all the steps but when go in the folder of sphinxbase or pocketsphinx usig command prompt and type ./configure. it says '.' is not recognized as an internal ot extranal command.

    I have check sphinxbase or pocketsphinx folders, and all required files are there.
    Any Guide??

    Thanks

    ReplyDelete
  55. my above problem is solved, i was trying on windows, but its for Linux , and now have install Sphinxbase, but now facing problem which @mukunda has.
    Any Guide.

    Thanks

    ReplyDelete
  56. when i run this app in emulator it opens. when i click the HOld and speak the app exits..

    when i have to do to fix this issue...
    Any help would be appreciated.
    Thanks in advance..

    ReplyDelete
  57. Hi swathi, I stuck in step 3 will you please help me I am trying to run this commands on command prompt.

    ReplyDelete
  58. hi swathiep....

    thanks for the tutorial...

    I have done everything same as the tutorial. There's no error. But it cant running on my devices. The application only open for 1-2second. After that it close again..

    Do u have any idea about that..
    Thanks

    ReplyDelete
  59. There is a working solution here...
    https://github.com/cesine/AndroidPocketSphinx
    runs great on my device with android 2.33
    i tried the solution in this blog and on cmu site before...but got in to trouble with setting up the programm on my device

    ReplyDelete
  60. hi i have problem on eclipse when i run program it's run but after i press hold and speak it close
    i wanna know how to reach for path '/sdcard/Android/data/' .
    can you help me

    ReplyDelete
  61. the problem solved but now program run for 1 or 2 sec and exits can you help me ??with any idea

    ReplyDelete
  62. I get the following error when I try to execute the "make" command.


    Makefile:314: recipe for target `pocketsphinx_continuous.exe' failed
    make[2]: *** [pocketsphinx_continuous.exe] Error 1
    make[2]: Leaving directory `/cygdrive/c/android-ndk-r7/samples/sphinx/pocketsphinx-0.7/src/programs'
    Makefile:269: recipe for target `all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/cygdrive/c/android-ndk-r7/samples/sphinx/pocketsphinx-0.7/src'
    Makefile:362: recipe for target `all-recursive' failed
    make: *** [all-recursive] Error 1

    Can anyone please help me. I am using cygwin on windows. I could install sphinxbase but not sphinx pocket

    ReplyDelete
  63. please can any one help me to know how to be sure that sphinxbase and pocketsphinx have been successfuly installed , plaesw any help , because when trying step 3
    the command ./configure for basesphinx ask me to install bison , i do not know what bison refer to but i search for it and follow the steps to install it and still did not see it and ask for it ,and when i try to ignore and do make and makefile the terminal reply that no target to make , what to do please any help,thanks in advance.

    ReplyDelete
  64. can help me, how to find this path '/sdcard/Android/data/'

    *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/'

    ReplyDelete
    Replies
    1. i have do this by ,launch the emulator do you want to run application on it then , from eclipse menues do the following
      Window--> open perspective--> other -->DDMS
      after DDMS open , click folder browser tab , then you click mnt folder then you will find sdcard then select it and then click + icon it will creat folder name it as described brfore to push in it file select it and click the arrow icon then choose file you want to push

      Delete
  65. Swathi EP
    i need your project please
    can u help me and give me it
    send it to my email
    elkaber203040@yahoo.com

    ReplyDelete
  66. Is this method apt for the Windows operating system? As far as I know there in no make and makefile in windows. Is there a way to make a similar thing work on Windows?

    ReplyDelete
  67. Hi,
    I have uploaded voice recognition without using internet project to the sourceforge. sphinxbase and pocketsphinx are compiled according to the procedure. PocketSphinxDemo also uploaded to the that.
    http://sourceforge.net/p/s2t4android/code/3/tree/

    Thanks all.

    ReplyDelete
  68. can you upload the so file,so that i should not compile the jni,thank you

    ReplyDelete
    Replies
    1. Charindu, I am assuming the sourceforge project is a complete android project. If so how can I download your files from sourceforge

      Warm regards
      Brian

      Delete
  69. Hi Swathi, It is much appreciated if you able to help me with the codes, after i run the application in the android, seems there is no error but if force stop. so please advise me. thanks a lot

    ReplyDelete
  70. i cannot used ./configure command.

    ReplyDelete
    Replies
    1. what are the errors that encountered?

      Delete
    2. I can't get the Accuracy .If I say "Hello" . it produce "the".

      Delete
    3. Charidu !

      Iwas trying to Get src code from the apk u hav uploaded ,But it is corrupted ....

      If u don't mind... send your apk to the address
      rakesh@soffeltech.in

      Delete
  71. Hi Swathi,

    I installed the app on the device but on tsarting the app it exits with below log. Please help.

    08-02 09:03:26.060: I/ActivityManager(127): Start proc edu.cmu.pocketsphinx.demo for activity edu.cmu.pocketsphinx.demo/.PocketSphinxAndroidDemo: pid=1974 uid=10076 gids={1015}
    08-02 09:03:26.120: D/dalvikvm(1974): Trying to load lib /data/data/edu.cmu.pocketsphinx.demo/lib/libpocketsphinx_jni.so 0x407a0e10
    08-02 09:03:26.120: D/dalvikvm(1974): Added shared lib /data/data/edu.cmu.pocketsphinx.demo/lib/libpocketsphinx_jni.so 0x407a0e10
    08-02 09:03:26.120: D/dalvikvm(1974): No JNI_OnLoad found in /data/data/edu.cmu.pocketsphinx.demo/lib/libpocketsphinx_jni.so 0x407a0e10, skipping init
    08-02 09:03:26.200: D/dalvikvm(1974): Debugger has detached; object registry had 1 entries
    08-02 09:03:26.240: I/DEBUG(1648): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    08-02 09:03:26.240: I/DEBUG(1648): Build fingerprint: 'acer/vg_gen2/vangogh:3.2.1/HTK55D/1322550301:user/release-keys'

    ReplyDelete
  72. Sorry Guys, But can I use those tutorial on Windows? Or Can you help me guys where can I find tutorial pocketsphinx installation on windows

    ReplyDelete
  73. I downloaded new version and it's missing require file on step 6

    ReplyDelete
  74. It's working if
    1) i download snapshot pocketsphinx, sphinxbase.
    2) i have installed
    sudo apt-get install libtool
    sudo apt-get install autoconf
    sudo apt-get install automake
    sudo apt-get install swig
    sudo apt-get install bison

    When I key "make" and "sudo make install", I don't get all file. For this, it is necessary the following...

    1.- cd [pocketsphinx directory]/swig
    2. make

    ReplyDelete
  75. PocketSphinxDemo/jni/edu.cmu.pocketsphinx. The required files are:
    Config.java
    Decoder.java
    Hypothesis.java
    pocketsphinx.java
    pocketsphinxJNI.java
    SegmentIterator.java
    could not find it

    ReplyDelete
  76. ./configure not recognized??

    ReplyDelete
  77. Hi I tried to configure sphinxbase but error occured please let me know the sloution of this problem

    libtool: link: ar cru .libs/libsphinxad.a cont_ad_base.o ad_oss.o
    libtool: link: ranlib .libs/libsphinxad.a
    /bin/sed: can't read Folder/sphinxbase/src/libsphinxbase/libsphinxbase.la: No such file or directory
    libtool: link: `Folder/sphinxbase/src/libsphinxbase/libsphinxbase.la' is not a valid libtool archive
    make[2]: *** [libsphinxad.la] Error 1
    make[2]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxad'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src'
    make: *** [all-recursive] Error 1

    ReplyDelete
  78. I have tried the PocketSphinxDemo file that download from the main site. Everything are fine except RecognizerTask.java. It shows 2 error which are config() and Decoder(c). These two function can import at first, but when it used, error occurs as undefined. Help me to solve this problem please. Thanks a lot.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  79. This comment has been removed by the author.

    ReplyDelete
  80. I am successful in running the app. But,I find the speech recognizer is not accurate,can u guide me in optimization?

    ReplyDelete
  81. hi is there any need to compile with swig if we didn't change in demo project in window as swig file already in demo project and we have to generate only .so file and change in .mk file .

    I mean to say need to use of step 3
    3. After extracting sphinxbase and pocketsphinx, you will have to install both
    in your system through the following commands,

    cd
    ./configure
    make
    make install

    ReplyDelete
    Replies
    1. but how to install could you please give me the clear picture in my case when i am entering these commands it showing directory cant be find i am doing cd sphinxpath
      cd configure am doing right please rectify me..

      Delete
  82. Hello Swathi, this one is very nice post, but i am facing problem to built this project could you please help me. my problem is
    http://stackoverflow.com/questions/16437698/pocketsphinxandroiddemo-is-not-building-on-windows

    ReplyDelete
  83. This comment has been removed by the author.

    ReplyDelete
  84. This comment has been removed by the author.

    ReplyDelete
  85. I can not resolve the error please help


    "Compile thumb : pocketsphinx_jni <= pocketsphinx_wrap.c
    C:/Users/Mauricio/Documents/CMUsphinxandroid/prueba2/CMUSphinx/PocketSphinxAndroidDemo//jni/pocketsphinx_wrap.c:760:26: fatal error: pocketsphinx.h: No such file or directory
    compilation terminated.
    make: *** [C:/Users/Mauricio/Documents/CMUsphinxandroid/prueba2/CMUSphinx/PocketSphinxAndroidDemo//obj/local/armeabi/objs/pocketsphinx_jni/pocketsphinx_wrap.o] Error 1

    ReplyDelete
    Replies
    1. Hey Carlos. How did you solve this problem? I also has the same problem. //jni/pocketsphinx_wrap.c:760:26: fatal error: pocketsphinx.h: No such file or directory.

      Delete
  86. This comment has been removed by the author.

    ReplyDelete
  87. Recognition approximately 50% as I can change this for better recognition. thanks for the help

    ReplyDelete
  88. If you could make a video tutorial about this project, starting everything from scratch that would be nice!

    ReplyDelete
  89. Excuse me, but I'm experiencing a Fatal Signal 11 (SIGSEV) at 0x0000001c (code=1) on my logcat when i run the demo.

    what is this code saying?
    what should i do?

    ReplyDelete
    Replies
    1. May be you missed some files to copy.. check the pocketsphinxJNI.log file to see what is the error

      Delete
  90. thank you join to my group
    https://www.facebook.com/groups/AndroidsDevelopers/

    ReplyDelete
  91. Hey i am not able to instal sphinxbase 0.8n in my windows system when i eneterting sphinxpath
    ./configure its showing directory cant be find..

    ReplyDelete
  92. Hello, we are part of a research group in the American University of Beirut. We are working on building pocketsphinx on Android. When we import the project to eclipse, however, we get the error:"duplicate src in project". The problems shown are: "The project was not built since its build path is incomplete."

    ReplyDelete
  93. Please help.... .\configure not recognised!

    ReplyDelete
  94. Swathi EP
    i need your project (.apk) please
    can u help me and give me it, send it to my email
    i7in3t@gmail.com

    ReplyDelete
  95. Casinos Near Bryson City Casino & Hotel, Bryson City, NC
    Casino reviews, photos and maps for 충청남도 출장샵 Bryson City Casino 충청북도 출장안마 & Hotel in Bryson City, 강원도 출장마사지 NC. Harrah's Cherokee 제주도 출장샵 Casino 아산 출장샵 Resort is home to Harrah's Cherokee Casino,

    ReplyDelete