Speech recognition
In this section, we will discuss developing a speech recognition example in Python involving speech recognition. We will make use of the requests
module (discussed in the previous chapter) to transcribe audio using wit.ai
(https://wit.ai/).
Note
There are several speech recognition tools, including Google's Speech API, IBM Watson, Microsoft Bing's speech recognition API. We are demonstrating wit.ai
as an example.
Speech recognition can be useful in applications where we would like to enable the Raspberry Pi Zero responses to voice commands. For example, in Chapter 10, Home Automation Using the Raspberry Pi Zero, we will be working on a home automation project. We could make use of speech recognition to respond to voice commands.
Let's review building the speech recognition application in Python using wit.ai
(its documentation is available here at https://github.com/wit-ai/pywit). In order to perform speech recognition and recognize voice commands, we will need a microphone...