next up previous contents
Next: NATURAL LANGUAGE PROCESSING Up: SPEECH INTERFACE Previous: Non-functional Requirements   Contents

Design Specification

Using the requirements defined above, the class diagram shown in Figure 3.2 is derived. The Speech Interface package, or module, need only consist of a single class containing the necessary functions and operations to communicate with ViaVoice.

The internal data members required by this class are the knowledge of the current state of the microphone and a text buffer to be used for reporting error messages. The methods contained within this class are all private and should not be accessible from other objects, with the exception of the microphone toggle operation, which should be accessible from the user interface in order for the user to control the ViaVoice recognition state.

The class should have a method by which to signal the phrase recognised by ViaVoice to both the NLP module for parsing and the animation module for display.

Figure 3.2: Class diagram for the Speech Interface module

\begin{picture}(0,0)\includegraphics{images/SpeechUML.eps}
\end{picture}



Andrew P Coates (UG) 2002-07-17