Menu

Issues compiling sphinx

Help
2008-09-21
2012-09-22
  • Mark Lilien

    Mark Lilien - 2008-09-21

    I was working with Sphinx in eclipse, and tried to add a new library to the build path. This operation crashed Eclipse, and not only that, anytime I tried to restart eclipse, it crashed. So, I decided to uninstall and then reinstall eclipse.

    Now, when I set up the Sphinx according to the instructions online and try to run the hellodigits demo, I get the following error:

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    assert cannot be resolved to a type
    Duplicate local variable rawLength
    Syntax error on token "==", = expected
    assert cannot be resolved to a type
    Duplicate local variable numStreams
    Syntax error on token "==", = expected

    at edu.cmu.sphinx.model.acoustic.TIDIGITS_8gau_13dCep _16k_40mel_130Hz_6800Hz.ModelLoader.loadDensityFil eBinary(ModelLoader.java:786)
    at edu.cmu.sphinx.model.acoustic.TIDIGITS_8gau_13dCep _16k_40mel_130Hz_6800Hz.ModelLoader.loadModelFiles (ModelLoader.java:541)
    at edu.cmu.sphinx.model.acoustic.TIDIGITS_8gau_13dCep _16k_40mel_130Hz_6800Hz.ModelLoader.load(ModelLoad er.java:476)
    at edu.cmu.sphinx.model.acoustic.TIDIGITS_8gau_13dCep _16k_40mel_130Hz_6800Hz.Model.allocate(Model.java: 177)
    at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate AcousticModel(FlatLinguist.java:336)
    at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate (FlatLinguist.java:31
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSe archManager.allocate(SimpleBreadthFirstSearchManag er.java:602)
    at edu.cmu.sphinx.decoder.Decoder.allocate(Decoder.ja va:109)
    at edu.cmu.sphinx.recognizer.Recognizer.allocate(Reco gnizer.java:182)
    at demo.sphinx.hellodigits.HelloDigits.main(HelloDigi ts.java:52)

    I didn't have this issue before reinstalling Eclipse. Does anyone have any idea what the issue might be? Thanks.

     
    • Mark Lilien

      Mark Lilien - 2008-09-22

      Figured it out. I needed to enable assertions in Eclipse. Not sure why I didn't need to do this the first time, but now it's all working.

       

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.