Discrete Cosine Transformation

i want to develop an application that will get an audio signal in nano33ble sense or an esp32 and to extract the discrete cosine coefficients (or the wavelet coefficient ) of tha captured raw audio data. any help would be apreciated. Anyone ever implemented such a project ?

I've implemented DCT (and IDCT) for JPEG, but never for audio.
How big ?

at various sampling rates the 1D vector will be 1024 or maximum 4096 if that is possible.
i want to extract that coeffs in order to use them as features to train a machine learning model to classify sounds.

The first order of business is getting the raw PCM data. Do you plan on using Bluetooth? I would suggest getting the raw audio instead of some compress format for faster processing (at the cost of more SRAM)

Thank you for your answer.
No i will use a max4466 and esp or the model nano33ble mic. I won't uses Bluetooth. Will get raw data uncompressed.

The module is basically a microphone with an analog out. You can use the ADC peripheral of the ESP (if it has one) and sample the data at whatever sampling rate you desire. You save the sampled data set in SRAM and from there do your Math thing. That's the gist of it.

Thanks for you kind interest
I have the same thoughts about the procedure
I just want to k ow if some one has something imemented as far as the dct or dwt just to save time ...

Thanks for you kind interest
I have the same thoughts about the procedure
I just look for the dct implemented algorithm