User Interface Service Software Developerís Guide - Hitech Projects
User Interface Service Software Developerís Guide - Hitech Projects
User Interface Service Software Developerís Guide - Hitech Projects
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
January 2008<br />
Public<br />
3.3 Component Architecture<br />
3.3.1 Implicit speech input component interface<br />
The keyword spotting module is primarily designed to be used as a front-end to the topic<br />
recognition Amigo context source.<br />
Nevertheless, if you really want to use it as a stand-alone module, please use the following<br />
procedure:<br />
1. First, you need to instantiate a JAVA JulModule object, which represents your single<br />
access point to the keyword recognizer. The JulModule object actually communicates<br />
via socket with the real keyword recognizer, which is written in C. The JulModule object<br />
further implements the JAVA swing Box interface that shows the keyword spotting<br />
controls, which makes it easy for your application to add it to any of your graphical user<br />
interface.<br />
2. Then, you need to implement the JAVA RecoSubscriber interface, and to subscribe to<br />
the JulModule object by calling the JulModule.subscribe(RecoSubscriber) method.<br />
Whenever a new sentence has been recognized by the keyword spotting module, the<br />
method RecoSubscriber.pushText(String) is called.<br />
The interfaces are summarized next:<br />
public interface fr.loria.parole.topicRecognition.RecoSubscriber<br />
This interface shall be implemented by any object that exploits the output of the keyword<br />
recognition module.<br />
Method Summary<br />
void pushText(java.lang.String s)<br />
This method is called by the keyword recognition module whenever a new<br />
sentence has been recognized from the speaker.<br />
public class fr.loria.parole.topicRecognition.JulModule extends javax.swing.Box<br />
This class is the main access point to the keyword recognition module It shall be instantiated by<br />
the application that requires to access to the keyword recognition module. This class further<br />
implements the javax.swing.Box interface, which makes it easy to include into any of the<br />
application GUI. It then displays the GUI controls of the keyword recognition module.<br />
Method Summary<br />
void subscribe(RecoSubscriber sub)<br />
This method MUST be called by the application that needs to be warned when<br />
the user has uttered a new sentence.<br />
Amigo IST-2004-004182 81/114