Acquiring audio data with the Arduino Nano
Building the dataset with recordings obtained with the mobile phone’s microphone is undoubtedly good enough for many applications. However, to prevent any potential loss in accuracy during the model’s deployment, we should also include audio clips recorded with the microphone used by the end application in the dataset.
Therefore, this recipe will show you how to record audio samples with the built-in microphone on the Arduino Nano through Edge Impulse.
Getting ready
In the previous recipe, you will have noticed that in the options reported in the Collect data section, the mobile phone was not the only one, as shown in the following screenshot:
Figure 4.9: Some of the options available to collect data in Edge Impulse
For example, as reported in the previous screenshot, you can collect data using your computer’s microphone or a fully supported microcontroller board.
If you click on the Connect...