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

Summary


This chapter has shown how to use the Google speech API to implement speech recognition services, having checked that they are available on the device. The user is prompted to say some words and the results of the recognition, the recognized strings and their confidence scores, are displayed on the screen. The user can choose the language model for recognition and the maximum number of results to be retrieved. This functionality has been implemented following two different approaches in the ASRWithIntent and ASRWithLib apps.

The ASRWithIntent app is a basic easy-to-develop example in which all the code is contained in the same class. ASR is carried out using a RecognizerIntent class and there is an automatically generated dialog that provides feedback on whether the engine is listening or if there was any error.

The ASRWithLib app shows how to modularize and create a library for speech recognition that can be used in many apps. Instead of relying on the RecognizerIntent class only...

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 €14.99/month. Cancel anytime}