Recognizing Music Genres With the Raspberry Pi Pico
This article is an excerpt from my book TinyML Cookbook, Second Edition. You can find the code used in the article here.
Getting Ready
The application we will design in this article aims to continuously record a 1-second audio clip and run the model inference, as illustrated in the following image:
Figure 1: Recording and processing tasks running sequentially
From the task execution timeline shown in the preceding image, you can observe that the feature extraction and model inference are always performed after the audio…