CoffeeS0
Introduction
CoffeeS0 is the first sample application in a series called Coffee. It uses a consistent coffee shop motif. You will eventually be able to enter the shop, go to the order counter to order drinks, go to the gift store, or speak to management. The samples are intended to demonstrate adding speech recognition to an application. They are designed for the application-level (API) programmer and for those not familiar with speech technology. Writing engines such as speech recognition or text-to-speech, also called device driver programming, will be covered separately. Each sample will progressively add new features and increase in complexity. The tutorial chapters explain in detail the particulars of the code. You are encouraged to read each chapter.
As the introductory sample, CoffeeS0 is a simple application. There is one window and a limited vocabulary from which to speak. After opening CoffeeS0, you may speak any of the commands. If successfully recognized, the window displays the response, "Please order when ready!" To keep the application simple at this point, no other commands may be used. If the command was not successfully recognized, no action will take place. Due to the speed and processing capabilities of some computers, there might be a slight delay before the CoffeeS0 responds. If after a moment nothing happens, try the command again.
Commands may not be recognized for two reasons. First, the speech may not have been clear. Perhaps the words were not spoken clearly enough or distinctively enough. Speak the command again more slowly and clearly. Second, the words spoken may not have been in the command list. Look at the available commands and speak again. CoffeeS0 has a limited command list. If a word used is not in the list, the command will not be recognized.
To quit CoffeeS0, click the Close button in the upper right of the window frame.
Commands
Choosing one word from each line of a category forms the command. Commands in parenthesis are optional and do need to be included. Words or phrases separated by slashes indicate that any of the choices listed may be used although only one may be selected. Sections marked RULEREF indicate words or phrases may be chosen from the corresponding rule ID. Rule names are the same as listed in the corresponding XML configuration file.
For example, you can say, "enter counter," "please enter counter," or "please enter the counter." All three are recognizable commands. Since CoffeeS0 can only take you to the ordering counter, "please enter the shop," and "please enter the store," will have the same effect. Partial phrases or words not listed below may not be used. "Please enter the restaurant," or simply "counter" will not be recognized. The following commands are available:
Command List
XML rule ID: VID_Navigation
- (please)
- enter/go to
- RULEREF: VID_Place
XML rule ID: VID_Place
- (the)
- counter/shop/store