Menu

Building an application (s3)

Help
xavic383
2008-04-21
2012-09-22
  • xavic383

    xavic383 - 2008-04-21

    Hi!!

    I need to write an application based on sphinx3, so I'd be able to perform recognition as I do via "sphinx3_decode" command.
    Could anyone point me some guidelines (libs to import, functions,...) to do so, please ?

    Thanks in advance !!!

     
    • Sebastian

      Sebastian - 2008-04-27

      >but I'm not able to find the jars >TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar , >WSJ_8gau_13dCep_8k_31mel_200Hz_3500Hz.jar and >WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar.

      now, i have those 3 files under c:\ ... \sphinx4\lib directory.
      but those 3 files, indeed, do not exist when i download source file from cmusphinx.svn.sourceforge.net using subversion (i do not remember the exact command i used to download it, but something like: c:\>svn checkout https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx ...)

      i get those 3 files after i build sphinx4 using ant command. these are the steps:
      - go to c:\ ... \sphinx4 directory
      - under this directory, if you give dir command, you will find build.xml file (33 kb)
      - then give this command to build sphink4: c:\ ... \sphinx4>ant
      (of course after you have jsapi.jar in its place)

      ant will build sphinx4 and in approximately 2 minutes i get those 3 files under c:\ ... \sphinx4\lib directory
      TIDIGITS ... 1,403 kb
      WSJ 16k ... 21,770 kb
      WSJ 8k ... 10,863 kb .. and several other jars.

      maybe you can try to do the same. i hope this helps.

      regards,
      Sebastian

      ps. sorry, i do not know how to use netbean (not that i do not want to .. :)

       
    • Nickolay V. Shmyrev

      http://www.speech.cs.cmu.edu/sphinx/sphinx3/doxygen/html/dirs.html

      Actually it's just better to read sphinx3_livedecode or sphinx3_livepretend code and follow it.

       
    • xavic383

      xavic383 - 2008-04-22

      Hi,

      thanks for the link, but it doesn't help me very much... I see that the files just contain header's functions, not implementation.

      I need some suggestions... my application is supposed just for decoding, making calls from a "main" function to the files built during the training process.

      Taking a look to the sphinx4's documentation, I read how to intall sphinx4 using an IDE. I thought it might be interesting (and easier) if I want to build an application (don't you?), but I fail at "Add JSAPI 1.0 as a jar to the Eclipse Project" step (http://cmusphinx.sourceforge.net/sphinx4/doc/Eclipse.html) because there's no jsapi.jar at sphinx4 package...

      I'm completly lost. Sphinx3 ? Sphinx4 ? Any demo about how to do it ?

       
    • Sebastian

      Sebastian - 2008-04-22

      >but I fail at "Add JSAPI 1.0 as a jar to the Eclipse Project" step >(http://cmusphinx.sourceforge.net/sphinx4/doc/Eclipse.html) because >there's no jsapi.jar at sphinx4 package...

      hi xavic383,

      jsapi.jar is inside jsapi.exe or jsapi.sh in sphinx4\lib directory

      i got the jsapi.jar after following instructions in this README.txt file also found in sphinx4\lib directory (for windows os)

      here are part of the README.txt:
      1.Unix Systems - This distribution includes a self-extracting shell
      archive containing the jsapi.jar file. If you are running under Linux
      or the SolarisTM Operating Environment, (or any other system that
      supports sh) follow these instructions:
      1. Go to the sphinx4/lib directory
      2. Type sh ./jsapi.sh
      3. If the binary license agreement is acceptable, accept
      it by typing "y". The jsapi.jar file will be unpacked
      and deposited into the lib directory.

      2.Win32 - This distribution includes an installer program containing the jsapi.jar file. If you are running on a Win32 Operating system follow these instructions:
      1. Go to the sphinx4/lib directory
      2. Type .\jsapi.exe
      3. If the binary license agreement is acceptable, accept
      it by clicking "I Agree". The jsapi.jar file will be unpacked and deposited into the lib directory.

      regards,
      sebastian

       
    • xavic383

      xavic383 - 2008-04-23

      Hi Sebastian,

      I work on Unix system, and this is what i get after typing "y":

           x - creating lock directory
           x - extracting jsapi.jar (binary)
           ./jsapi.sh: 1428: uudecode: not found
           restore of jsapi.jar failed
           ./jsapi.sh: 1428: cannot open jsapi.jar: No such file
           jsapi.jar: original size 51811, current size !
      

      Obviously, no jsapi.jar is unpacked and deposited into the lib directory...

      Any suggestions, please ??

       
    • xavic383

      xavic383 - 2008-04-23

      Hi again Sebastian,

      As I couldn't get the jsapi.jar in Linux, I've tried it with Windows and it succeded, so I'm trying to add sphinx4 to a Netbeans project on Windows.

      I'm at the last step: "Add Sphinx-4 specific jars as jars to the NetBeans Project" (http://cmusphinx.sourceforge.net/sphinx4/doc/NetBeans.html), but I'm not able to find the jars TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar , WSJ_8gau_13dCep_8k_31mel_200Hz_3500Hz.jar and WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar.

      Can you help me ?

      Thanks a lot !!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.