Package org.speakright.core.render

Examples of org.speakright.core.render.InlineGrammar.addBinding()


        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

TOP
Copyright © 2018 www.massapi.com. 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.