Changing sampling frequency to collect data with raspberry pi 4

Hi ! I use a raspberry pi 4 with a hifiberry hat to collect data and it works, but the sampling frequency in the data aquisition window is set to 16kHz and can’t be adjusted. I can record with higher sampling frequencies with the same device when it’s not through edge impulse.
I would like to set a higher sampling frequency, do you know if that is possible ?

Hello @laetidrum,

I actually never tried this one (so I cannot 100% guarantee it works for audio), but we do have a custom-collect.ts example in our Edge Impulse Linux CLI in case you want to implement something custom yourself.

Please see: https://github.com/edgeimpulse/edge-impulse-linux-cli/blob/3e419d5373d27ef9a076335c35d6ae083e22134f/examples/ts/collect-custom.ts

I just created a feature request so we can change the frequency directly from the CLI by passing an argument like --frequency 32000

Regards,

Louis

1 Like