Menu

implement small vocabulary easily?

Help
rjn59
2005-07-12
2012-09-22
  • rjn59

    rjn59 - 2005-07-12

    Hello all,

    I am working on a project using Sphinx4 and FreeTTS to speak some simple math commands like "add 101 and 110", do the calculation then synthesize the answer. If I use keyboard input, everything works but I cannot get the Sphinx component to work.

    My client code looks like the HelloDigits demo. The exceptions occur in the Config Mgr on the grammar and linguist properties. I made a little gram file but it doesn't seem to help.

    Is there an easy way for me to get a simple grammar going that recognizes the 4 words add, subtract, multipy, and divide. And can also recognize digits?

    My Java is ok but not great so if anyone can help, please take it easy on me. Thank you all in advance.

     
    • rjn59

      rjn59 - 2005-07-15

      Thanks for all the help.

       
    • Willie Walker

      Willie Walker - 2005-07-17

      Hi:

      To get you going, you might start with the demo/sphinx/helloworld demo. I think it might have the general structure you are looking for.

      For a generalized digit grammar that might help, you might look at tests/performance/jsgf/integers.gram.

      Hope this helps,

      Will

       
    • Alex Shaykevich

      Alex Shaykevich - 2005-07-27

      Lonely around here. Any replies for a general guide to creating a specific grammar for use with Sphinx4?

       
    • Alex Shaykevich

      Alex Shaykevich - 2005-07-21

      I pretty much have the same question and have failed to find a simple guide for creating simple grammars. I've only been researching for 2 days, so it's very likely I missed it.

      Where is the guide that explains how to create a simple grammar and integrate it so that it will
      work with a standard Java deployment?
      I've found the SimpleLM file which outputs "a .dict a .arpabo and a .arpabo.DMP file." What do I do with these? How do I package them up so that I can write a BNF grammar file against them.
      I would think this is the first thing most people want to know, and I'm surprised it's not more easily found. I'm sure the research rather than commercial nature of the product explains it, but still...

      Thanks,
      Alex

       

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.