Author Message
KarlBurnam2
Joined: Nov 11, 2013
Messages: 58
Offline
I have an application that is running a Speech Grammar in the app root node for various "hot words". Is it possible to turn this grammar off inside a local node?

RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
If you look at the attached image, the following code in AppRoot.java disables the link "MyTestLink" for the node/servlet "AskWhickPhrase":


@Override
public void updateLinks(Collection links, SCESession mySession) {
for (Iterator iterator = links.iterator(); iterator.hasNext();) {
Link link = (Link) iterator.next();
if ((link.getName().equals("MyTestLink") == true) &&
(mySession.getServlet().getServletName().equals("AskWhichPhrase") == true)) {
link.setEnabled(false);
System.out.println("link disabled");
} else {
System.out.println("link enabled");
}
}
}

  • [Thumb - Untitled.png]
[Disk] Download
Go to:   
Mobile view