Menu

sphinx-4 setting up questions?

Help
javadev
2009-07-14
2012-09-22
  • javadev

    javadev - 2009-07-14

    to set up sphinx-4 to my net beans application
    1- Add all subfolders of the src-directory
    2- Add lib/js.jar, lib/tags.jar and lib/jsapi.jar to your project classpath.
    3- jsapi.jar is not shipped directly with Sphinx4 but can be easily created by running lib/jsapi.sh (or lib/jsapi.bat on windows) once.

    question:
    in setp3 I have windows and I do not jsapi.bat ? from where I can get the file

    (Im using sphnix-4 bin folder)
    thanks

     
    • Nate

      Nate - 2009-07-14

      You don't have lib/jsapi.bat but you should have lib/jsapi.exe

       
    • eliasmajic

      eliasmajic - 2009-07-15

      Well in the thread directly below this, the person has issues with jsapi as well. nshm said theres a known bug with jsapi and vista and to install linux.

      https://sourceforge.net/forum/forum.php?thread_id=3332281&forum_id=5471

       
    • javadev

      javadev - 2009-07-15

      yes i have .exe and i generated the jsapi thats mean I already made step 3

      but why it is gave me nullpointerexception

      i tested the software on vista,windows 7 and xp .... all of them gave me nullpointerexception

       
    • Nate

      Nate - 2009-07-16

      First of all, you should be trying to run the Hello World demo bundled with Sphinx4 (for information on running the binary see http://cmusphinx.sourceforge.net/sphinx4/src/apps/edu/cmu/sphinx/demo/helloworld/README.html). Second, to run any Sphinx demo from its source code, you need to have the relevant libraries in your classpath. Consult the manifest file to see what libraries you need.

       
      • javadev

        javadev - 2009-07-16

        hello thanks for responding...

        the jar file for hello world demo does not worked with me ... when I click the jar nothing appears

        when I click ZipCity.jar I it is run but does not recognize the city numbers

        the only one worked with me AudioTool.jar that do not hav e recognizer just record my voice

        can you help me here???

         
    • javadev

      javadev - 2009-07-16

      there is note saying :
      to run the demo, type:
      sphinx4> java -mx256m -jar bin/HelloWorld.jar

      where I type this code...

      thanks for caring

       
      • eliasmajic

        eliasmajic - 2009-07-17

        "where I type this code..."

        If you meant to say, Where do I type this code? ,
        the answer is in the shell or command prompt. Does vista have a command prompt still?
        You can also avoid all this and use eclipse for example, thus you can just set the debug properties and put it there.

         
        • javadev

          javadev - 2009-07-17

          ok yes I entered the command opend hello world demo :-)

          it is worked :-)

          BUT does not recognize my voice the answer was
          (you said: ) <<< :-(

          why?

           
    • javadev

      javadev - 2009-07-17

      is that because the speech recognition need to train at my voice ..... if yes .... how?

       
    • eliasmajic

      eliasmajic - 2009-07-17

      You should read some of the tutorials:

      1-http://www.speech.cs.cmu.edu/sphinx/tutorial.html
      2-http://cmusphinx.sourceforge.net/sphinx4/

      Also consider reading a book on speech recognition if you want to understand more.
      1-Spoken Language Processing
      or
      2-Speech and Language Processing

       
    • Nate

      Nate - 2009-07-17

      >BUT does not recognize my voice

      Are you using the trunk version of sphinx (obtained via subversion), or the release (obtained by downloading the .zip)?

       
    • javadev

      javadev - 2009-07-18

      I am writing every problem happened with me and the solution after finishing the project i will post it in discussion

      thanks for helping me until now

       
    • javadev

      javadev - 2009-07-14

      question2:
      I tried to test hello world example with out doing step3, after I run the program it is gave me NullPointerException on (( rec.allocate(); ))

      the hello example link:
      http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-guide/Recognition.html#11644

      is that beasuse step 3 , if yes from where i can get .bat file

      (op:windows vista, using: netbeans 6.5, sphnix 4)

      hope you help me ...

       
    • javadev

      javadev - 2009-07-18

      about the package I download it from : http://sourceforge.net/projects/cmusphinx/files/
      this folder: sphinx4-1.0beta2-src.zip

      about the links the seconed one I read it from first to end but the first one :
      it is talk about training my voice?

      I have a api book and i will read it but after the demo worked to be sure I can begin with it as graduate project

       
    • javadev

      javadev - 2009-07-18

      Hello Digits Demo worked: but not recgnize my voice correctly i said 1 he wirte oh ....

      but

      Hello World! Demo does note recognize any thing << :-(

      is it just need training at my voice or something else

      if just trainnig this link you gave me would help?http://www.speech.cs.cmu.edu/sphinx/tutorial.html

       

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.