O'Reilly logo

Voice Application Development for Android by Zoraida Callejas, Michael F. McTear

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

FormFillLib

To build a form-filling app, we must specify a data structure such as the one in the flight example. To do this, we define two classes: Form and Field. As shown in the UML diagram, a Form has a collection of Fields, and a Field has five attributes; a name, a string representing the prompt that the app will use to ask for the piece of data, two strings representing the prompts to be used when the app does not understand the user's response to the initial prompt (nomatch), or does not hear it (noinput), and the value that has been understood by the app.

FormFillLib

For example, the Field flight setting could have the following values for its attributes: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required