Menu

problem: test using netbeans

Help
javadev
2009-08-20
2012-09-22
  • javadev

    javadev - 2009-08-20

    first thanks sphinx team for helping us, my problem is:

    the target: test waveFile demo

    I tested the xaveFile using prompt command as instructions and it is worked correctly

    but

    when I tried to test it using netBeans it is giving me errors about config file

    i search the net the i read that i must change the <component name="jsgfGrammar"....
    as following:

    change
    value="resource:/edu.cmu.sphinx.demo.wavfile.WavFile!/edu/cmu/sphinx/demo/wavfile/"/>
    to
    value="resource:/wavfile.WavFile!/"/>

    but it is still giving me the same problem:
    (problem before changing, the same type after changing)
    Exception in thread "main" Property Exception component:'grammarLocation' property:'grammarLocation' - Can't locate resource:/edu.cmu.sphinx.demo.wavfile.WavFile.....

    hope u help me, thanks

     
    • javadev

      javadev - 2009-08-21

      thanks for ur replay

      about:
      value="resource:/wavfile.WavFile!/wavefile/"

      i changed the grammer value like up in config file ... it is worked with eclipse but with netbeans it is giving me error

      Exception in thread "main" Property Exception component:'grammarLocation' property:'grammarLocation' - Bad URL resource:wavfile.WavFile!/wavfile/unknown protocol: resource
      edu.cmu.sphinx.util.props.InternalConfigurationException: java.net.MalformedURLException: unknown protocol: resource .......................................

       
    • javadev

      javadev - 2009-08-20

      hint: i copied the wavefile folder to my sourcePackages >> package wavefile
      and jar files to the project classpath

       
    • javadev

      javadev - 2009-08-20

      my target: test to connect user interface with wavefile demo and others

      if there is any tutorial how to use sphinx with ((netbeans)) or eclipse >>> that would be great

      i prefer netbeans but eclipse would be helpful

       
    • javadev

      javadev - 2009-08-20

      ok forget every thing i posted before ..... just help me from here

      i found a very good tutorial to test wavefilw with eclipse:
      http://www.bakuzen.com/?p=4

      and it is work correctly with eclipse ..... but when i wanted to do the same with netbeanse it is giving me problem

      the problem with netbeanse when changing the config file as instructions in tutorial <<<

      just hope some body who is expert to see the tutorial and tell me the problem when trying to test wavefile.jar with netbeans

      i prefer netbeans beacuse i already know who to use it and i have learning videos for it

      i will be thankful if some body helped me here ... please help me .........

       
    • Nickolay V. Shmyrev

      Well, the problem kind of trivial, once you changed the package name and consequently the class location you should change the location of the grammar in the config file. But the only you suggested is not correct, the correct one is:

      value="resource:/wavfile.WavFile!/wavefile/"

      or something like that. I'm not sure in your exact layout that's why it's hard to hell you precisely.

       

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.