Build a Speech Recognition System on a Raspberry Pi
YouTube transcript, YouTube translate
A quick preview of the first subtitles so you know what the video covers.
hi everyone i'm patrick from assembly ai and today you learn how you can do real-time speech recognition on a raspberry pi and build a voice assistant all you need is a raspberry pi so in my case it's the pi4 and of course a microphone so in my case it's a simple usb mic and that's all to get started so let's test it hey sam send a tweet python is awesome [Music] hey sam save a note do bodyweight workout later today [Music] all right let's do the unboxing first in my case i got a fancy starter kit with the raspberry pi 4 a case with an integrated fan heatsinks and all the cables of course all of this is not necessary and the basic version gets the job done as well but hey the company i'm working for recently raised 28 million dollars in series a funding so i can at least spend 100 bucks on a raspberry pi right now let's set up the pi which came with and i will link the resources below but basically we just need two async functions that work with websockets one to send the audio data from the microphone and want to receive the transcript from assembly ai and then we can do whatever we want with it in this simple example we just print it to the console now you can run the file and say something and then you should see the output in the console congratulations you did it now let's look at two more steps we can do to improve this project the first next improvement is wake word detection because of course we don't want to call the speech recognition api every time we say something so the raspberry pi should be able to constantly listen