Voice recognition

At this point, you have had an incredible experience talking to your Raspberry Pi and getting back some answers to your questions. This is not something that Raspberry Pi Zero W can do. As a result, it is important to clarify how this works. In the following figure, you can see that your Raspberry Pi Zero W board is on the left, and as soon as it is triggered with the word Alexa, it changes to Listen mode. In Listen mode, it hears everything you say, and when you stop talking, it processes that speech input and sends it back to Amazon's servers.

Now, these servers somehow find the answers using AI and some other technologies to send the response back to the Raspberry Pi Zero W. As a result, the Raspberry Pi sends the answer as output back to you in your Bluetooth speakers or headphones:

In the preceding image, you can see that the captured audio uses our Raspberry Pi Zero W code to make a request from the AVS API and get the response back. Once this is completed, the audio playback starts. You can understand that this procedure cannot be done in 1 second, so sometimes you have a delay of 4-5 or more seconds depending on your network and your location.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.90.44