Menu

Sphinx4 startup issues

Help
2009-03-11
2012-09-22
  • Aquilusater

    Aquilusater - 2009-03-11

    Basically, what I need is an application that runs silently in the background that outputs a sequence of keypresses whenever it recognizes one of several predefined sentences. What would be the simplest/quickest way to implement this?

    Also, I'm having some issues innstalling/making anything work. Nothing happens when I try to run the precompiled binaries, and I haven't had any luck following the source install in Vista. Trying to get it working with Eclipse, if that matters at all.

     
    • Aquilusater

      Aquilusater - 2009-03-12

      Voce uses Sphinx4, so its hardly unrelated. Anyways, I got everything working after some struggle this morning, so just ignore this thread.

       
    • Aquilusater

      Aquilusater - 2009-03-12

      Tried using Voce (http://voce.sourceforge.net/), but I still can't get it to compile any examples. Getting the following error:

      [Voce] Initializing recognizer. This may take some time...
      [Voce ERROR] Cannot load speech recognizer:
      java.io.FileNotFoundException: C:\eclipse\voce-0.9.1......\lib\voce.config.xml (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(Unknown Source)
      at java.io.FileInputStream.<init>(Unknown Source)
      at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
      at java.net.URL.openStream(Unknown Source)
      at edu.cmu.sphinx.util.props.SaxLoader.load(SaxLoader.java:64)
      at edu.cmu.sphinx.util.props.ConfigurationManager.loader(ConfigurationManager.java:383)
      at edu.cmu.sphinx.util.props.ConfigurationManager.<init>(ConfigurationManager.java:115)
      at voce.SpeechRecognizer.<init>(SpeechRecognizer.java:73)
      at voce.SpeechInterface.init(SpeechInterface.java:79)
      at recognitionTest.main(recognitionTest.java:33)
      Exception in thread "main" java.lang.NullPointerException
      at voce.SpeechRecognizer.setEnabled(SpeechRecognizer.java:177)
      at voce.SpeechInterface.setRecognizerEnabled(SpeechInterface.java:178)
      at voce.SpeechInterface.init(SpeechInterface.java:84)
      at recognitionTest.main(recognitionTest.java:33)

       
    • eliasmajic

      eliasmajic - 2009-03-12

      No clue what VOCE is. So post error output from the sphinx examples, not of another unrelated project.

      But I will answer regardless as it is obvious what the java error is. it cannot find a file. Check if that file exists and if it doesnt, change it to the correct path where that file is. Or just copy the file over.

      java.io.FileNotFoundException: C:\eclipse\voce-0.9.1......\lib\voce.config.xml (The system cannot find the path specified)

       

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.