Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Voice Application Development for Android

You're reading from  Voice Application Development for Android

Product type Book
Published in Nov 2013
Publisher Packt
ISBN-13 9781783285297
Pages 134 pages
Edition 1st Edition
Languages

Table of Contents (19) Chapters

Voice Application Development for Android
Credits
Foreword
About the Authors
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Speech on Android Devices 2. Text-to-Speech Synthesis 3. Speech Recognition 4. Simple Voice Interactions 5. Form-filling Dialogs 6. Grammars for Dialog 7. Multilingual and Multimodal Dialogs 8. Dialogs with Virtual Personal Assistants 9. Taking it Further Afterword
Index

The VPALib library


We have created a library that contains the code which connects with Pandorabots. Any app that wants to incorporate an agent just has to deal with the interface aspects, such as the GUI appearance and the control of the speech recognition and synthesis.

The VPALib library uses ASRLib, TTSLib, and XMLLib to manage speech recognition, speech synthesis, and asynchronous tasks when retrieving web contents (you can see it if you check the libs folder in the VPALib project). This way, it can focus on the code required to manage the VPA behavior.

The main class in the VPALib library is the Bot class, which sends queries to the Pandorabots website, parses the results, and carries out the corresponding actions on the device.

When a new bot is created, we must specify an ID to the constructor. This is the ID in the Pandorabots site (for example, d7b695cf0e344c0a for Jack). Also, we can specify its topic of specialization. For example, if the bot is specialized for providing information...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}