This PR integrates the Edge Impluse SDK and provides a voice recognition demo.
Step to test
Say "sparkle" towards the microphone
RGB turns green as long as sparkle is recognized correctly
Step to calibrate Edge Impulse model
Method 1
Add more samples to train the model.
Click the Data acquisition tab on Edge Impulse website
Provide more 1s samples with the correct label, sparcle, unknown..
Click the Retrain model tab to retrain the model
Click the Deployment tab to re-generate the SDK and replace the SDK in the snowflake firmware
Method 2
Performance calibration can help you to set the model parameter to make the model more strict or more lenient.
Click the Performance calibration tab on Edge Impulse website
Find the Select and save a config part, and select the new config
Click the Deployment tab to re-generate the SDK and replace the SDK in the snowflake firmware
Method 3
Set proper threshold in the firmware.
// Indicate the recognition result
// classification, 0: "sparkle", 1: "unknown"
// FIXME: The threshold value is set to 0.5 for now.
if (result.classification[0].value > 0.5) {
RGB.color(0, 255, 0); // green
} else {
RGB.color(255, 255, 255); // white
}
Issues
Due to the threshold being set quite loosely, the touch button sound of the Snowflake board is mistakenly recognized as "sparkle".
Introduction
This PR integrates the Edge Impluse SDK and provides a voice recognition demo.
Step to test
sparkle
is recognized correctlyStep to calibrate Edge Impulse model
Method 1
Add more samples to train the model.
Data acquisition
tab on Edge Impulse websitesparcle
,unknown
..Retrain model
tab to retrain the modelDeployment
tab to re-generate the SDK and replace the SDK in the snowflake firmwareMethod 2
Performance calibration can help you to set the model parameter to make the model more strict or more lenient.
Performance calibration
tab on Edge Impulse websiteSelect and save a config
part, and select the new configDeployment
tab to re-generate the SDK and replace the SDK in the snowflake firmwareMethod 3
Set proper threshold in the firmware.
Issues
Due to the threshold being set quite loosely, the touch button sound of the Snowflake board is mistakenly recognized as "sparkle".