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.
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. However, we will demonstrate using a readily available audio sample. We will make use of audio samples made available by a research publication (available at http://ecs.utdallas.edu/loizou...