Skip to main content

Implementing Speech Input and Output

  • Chapter
  • First Online:
The Conversational Interface

Abstract

There are a number of different open-source tools that allow developers to add speech input and output to their apps. In this chapter, we describe two different technologies that can be used for conversational systems, one for systems running on the Web and the other for systems running on mobile devices. For the Web, we will focus on the HTML5 Web Speech API (Web SAPI), while for mobile devices we will describe the Android Speech APIs .

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 109.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 139.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 199.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API?hl=en. Accessed February 21, 2016.

  2. 2.

    https://developers.google.com/web/updates/2014/01/Web-apps-that-talk-Introduction-to-the-Speech-Synthesis-API?hl=en. Accessed February 21, 2016.

  3. 3.

    https://en.wikipedia.org/wiki/Android_(operating_system). Accessed February 21, 2016.

  4. 4.

    http://zoraidacallejas.github.io/ConversationalInterface/. Accessed March 2, 2016.

  5. 5.

    https://dvcs.w3.org/hg/speech-api/raw-file/9a0075d25326/speechapi.html. Accessed February 21, 2016.

  6. 6.

    http://www.w3.org/community/speech-api/. Accessed February 21, 2016.

  7. 7.

    https://lsi.ugr.es/zoraida/conversandroid/. Accessed March 2, 2016.

  8. 8.

    https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section. Accessed February 21, 2016.

  9. 9.

    https://www.google.com/intl/en/chrome/demos/speech.html. Accessed February 21, 2016.

  10. 10.

    https://dvcs.w3.org/hg/speech-api/raw-file/9a0075d25326/speechapi.html#speechreco-section. Accessed February 21, 2016.

  11. 11.

    https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-error. Accessed February 21, 2016.

  12. 12.

    https://www.google.com/intl/en/chrome/demos/speech.html. Accessed February 21, 2016.

  13. 13.

    Remember that we have uploaded to http://lsi.ugr.es/zoraida/conversandroid for you, so that you do not have to set a server to try the examples provided in the book.

  14. 14.

    http://developer.android.com/reference/android/speech/tts/package-summary.html. Accessed February 22, 2106.

  15. 15.

    If you are not familiar with the term, you can learn more here: http://developer.android.com/guide/components/intents-filters.html. Accessed February 22, 2016.

  16. 16.

    A Toast is a small text pop up shown on the device to provide simple feedbacks and notifications. Learn more in: http://developer.android.com/guide/topics/ui/notifiers/toasts.html. Accessed February 22, 2016.

  17. 17.

    The input_text and speak_button elements are defined in the simpletts.xml layout file.

  18. 18.

    http://developer.android.com/reference/android/speech/tts/UtteranceProgressListener.html. Accessed February 22, 2016.

  19. 19.

    In order to show toasts from a listener, make sure that you run them on the UI thread.

  20. 20.

    http://developer.android.com/reference/android/speech/RecognizerIntent.html.

  21. 21.

    http://developer.android.com/intl/es/training/permissions/requesting.html.

  22. 22.

    https://play.google.com/store/apps/details?id=com.techcasita.android.reco. Accessed February 22, 2016.

  23. 23.

    http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API. Accessed February 22, 2016.

  24. 24.

    http://stiltsoft.com/blog/2013/05/google-chrome-how-to-use-the-web-speech-api/. Accessed February 22, 2016.

  25. 25.

    http://html5hub.com/using-the-web-speech-api/#i.1vh8jnvry3ex4w. Accessed February 22, 2016.

  26. 26.

    http://grahamhinchly.wordpress.com/2013/11/14/working-with-the-web-speech-api/. Accessed February 22, 2016.

  27. 27.

    http://www.moreawesomeweb.com/demos/speech_translate.html. Accessed February 22, 2016.

  28. 28.

    http://www.adobe.com/devnet/html5/articles/voice-to-drive-the-web-introduction-to-speech-api.html. Accessed February 22, 2016.

  29. 29.

    http://www.broken-links.com/tests/webspeech/synthesis.php. Accessed February 22, 2016.

  30. 30.

    http://html5-examples.craic.com/google_chrome_text_to_speech.html. Accessed February 22, 2016.

  31. 31.

    http://blog.teamtreehouse.com/getting-started-speech-synthesis-api. Accessed February 22, 2016.

  32. 32.

    https://developers.google.com/web/updates/2014/01/Web-apps-that-talk-Introduction-to-the-Speech-Synthesis-API. Accessed February 22, 2016.

  33. 33.

    http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#getEngines(). Accessed February 22, 2016.

  34. 34.

    http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#synthesizeToFile(java.lang.CharSequence,android.os.Bundle,java.io.File,java.lang.String). Accessed February 22, 2016.

  35. 35.

    http://developer.android.com/reference/android/content/Intent.html#ACTION_WEB_SEARCH.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Michael McTear .

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

McTear, M., Callejas, Z., Griol, D. (2016). Implementing Speech Input and Output. In: The Conversational Interface. Springer, Cham. https://doi.org/10.1007/978-3-319-32967-3_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-32967-3_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-32965-9

  • Online ISBN: 978-3-319-32967-3

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics