Package org.speakright.core.render

Examples of org.speakright.core.render.InlineGrammar


  }
 
  @Test public void inlineGram()
  {
    String words = "kenny cartman [ter phil] (mister hat) (big gay al) [wendy]";
    InlineGrammar gram = new InlineGrammar(words);
    ArrayList<String> L = gram.wordList();
   
//    for(String s : L) {
//      System.out.println(s);
//    }
     
View Full Code Here


        flow.add(new PFlow("this is the FIRST page MONDAY 28"));
        flow.add(new PFlow("and now the SECOND page of my speech application."));
//        flow.add(new QFlow("abc.grxml", "what size is it?"));

        QuestionFlow qflow = new QuestionFlow("", "what size? {audio:welcome.wav}");
    InlineGrammar gram = new InlineGrammar("yes no");
    gram.addBinding("confirm", "city");
    qflow.addGrammar(gram);
    flow.add(qflow);
       
        flow.add(new PFlow("back from the big question. City is {$M.city} {audio:audio/Greeting.wav}"));
        return flow;
View Full Code Here

      m_rcontext.m_logger.log("INLINE: " + tmp);
      GrammarItem item = GrammarItem.CreateInline(tmp);
      grammar.m_item = item;
    }
    else if(grammar instanceof InlineGrammar) {
      InlineGrammar inline = (InlineGrammar)grammar;
      GrammarItem item = GrammarItem.CreateInline(inline.m_wordL);
      grammar.m_item = item;
      m_rcontext.m_logger.log("INLINE: " + item.m_wordL.size() + " phrases.");
    }
    else {
View Full Code Here

  ArrayList<String> m_choiceL = new ArrayList<String>();

  public SROChoice(String subject, String gtext)
  {
    super(subject);
    InlineGrammar gram = new InlineGrammar(gtext);
    m_choiceL = gram.wordList();
  }
View Full Code Here

TOP

Related Classes of org.speakright.core.render.InlineGrammar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.