This tutorial allows for more practice building basic RAD applications.
First you will need to drag the appropriate
objects onto the canvas.
Left click and drag the following objects from the pallet to the canvas:
Next you should arrange the icons on the canvas as illustrated below, and draw the connecting lines.
Details on naming and connecting the objects can be found below the canvas image.
|
|
To rename the objects, right click on them to raise the
context menu,
then select "Rename".
Type in the new name, followed by Enter. Any spaces in the name will change to underscores.
You can add a red output port to the state "question" by selecting
"Add Output Port" from the context menu.
In order to connect the states, left click and drag from a red output port to the state which you
wish to connect to.
If you draw an incorrect line, you can right click on the line and select "Delete Line" to delete it.
|
|
Once the states are properly connected and named, you're ready to move on to setting the prompts for
each state. In order to open the prompt dialogue for a state, you'll need to double click directly on
the icon for the state. Enter the text below into the corresponding state's prompt dialogue.
|
| question | What element makes up 20 percent of the atmosphere |
| help | No that's not right. It starts with an O. |
| goodbye | That's right. Goodbye. |
|
|
|
|
Double click on the left red port of the "question" state. This will open the vocaulary dialogue,
where speech recognition is configured. In the left text box of the vocabulary area, type the
following:
oxygen
Once you have entered the word in the left box, click on "Update Empty" and the pronunciation
will appear in the right box. Click "Ok" to close the dialogue.
|
 |
You now need to configure the right port of the "question" state. Follow the same procedure as
above, but use the following word:
*any
Remember, *any matches any response except the ones which are referred to in other out ports.
Also, note that if you move the mouse over an out port or the line attached to it, a sticky note
appears, with information about what the vocabulary associated with that line/port is. For new
or undefined ports, this note is empty.
|
|
As before, click build and then run to see your application work.
|