Menu

.gram file changed dinamically

Help
2008-12-29
2012-09-22
  • Santiago Brandi

    Santiago Brandi - 2008-12-29

    Hi,

    I think it would be quite interesting the .gram file could be changed while the application is running, not manually but using code.
    The first advantaje that comes to my mind is that it could improve accurracy.

    Does anyone has an idea if this is possible??

    Thanks and excuse me for my english.
    Santiago

     
    • Santiago Brandi

      Santiago Brandi - 2009-01-30

      I correct myself, what i couldnt find reference to wasnt the config.xml file but the .gram file, thats the to change depending on the word recognized but i couldnt find where it is accesed to, having differente .gram files i could swap them to my convenience.

      Thanks,
      Santiago

       
    • Nickolay V. Shmyrev

      It's possible. See the API reference.

       
    • Santiago Brandi

      Santiago Brandi - 2009-01-30

      Hi, thanks for the tip, however i couldn´t find what i was expecting, could you be more precise please?

      I did find something interesting in the following link:

      http://java.sun.com/products/java-media/speech/forDevelopers/JSGF/JSGF.html#17971

      but I didnt understand it completely since i found nothing similar to "grammar com.acme.commands;" in sphinx 4.

      I have an idea but I dont know if it is possibble: If i could change the config.xml file depending on the words recognized and have a set of different .gram files it would solve the problem. Can this be made?? I debbuged the application but couldnt find when the config.xml file is called....

      Thanks,
      Santiago

       

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.