Chapter 9
The Web Speech API
Examples
Recipe 9.1
Dictating Text
Dictate into a text field with the Web Speech API.
Recipe 9.2
Creating a Promise Helper for Speech Recognition
Encapsulate speech recognition in a helper function that uses Promises.
Recipe 9.3
Getting the Available Voices
Get a list of the supported speech synthesis voices.
Recipe 9.4
Synthesizing Speech
Use a synthesized voice to speak some given text.
Recipe 9.5
Customizing Speech Synthesis
Use the properties of SpeechSynthesisUtterance to fine-tune the spoken text.
Recipe 9.6
Automatically Pausing Speech
Pause speech synthesis when switching to another tab, and resume when returning to the tab.