Deploy Edge-Impulse model to ESP-IDF ESP32s3

Question/Issue:
[Describe the question or issue in detail]
The build fails when trying to deploy Edge-impulse model to ESP32s3 based custom PCB.
Project ID:
[793647]

Context/Use case:
Use case is using Microphone to sample and train data and then deploy the model

Summary:
[Provide a concise summary of the bug]
I have copied the standalone application template for esp32 idf environment. The issue that I am running into is during the build process of the application.
The project fails to build
C:/Users/ujjwa/try_mic_espc6/edge-impulse-sdk/dsp/numpy_types.h:693:5: error: expected specifier-qualifier-list before ‘std’
693 | std::function<int(size_t offset, size_t length, float *out_ptr)> get_data;
| ^~~
In file included from C:/Users/ujjwa/try_mic_espc6/edge-impulse-sdk/classifier/ei_model_types.h:41:
C:/Users/ujjwa/try_mic_espc6/edge-impulse-sdk/dsp/ei_dsp_handle.h:38:1: error: unknown type name ‘class’
38 | class DspHandle {
| ^~~~~
C:/Users/ujjwa/try_mic_espc6/edge-impulse-sdk/dsp/ei_dsp_handle.h:38:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
38 | class DspHandle {
| ^
In file included from C:/Users/ujjwa/try_mic_espc6/edge-impulse-sdk/classifier/ei_model_types.h:42:
C:/Users/ujjwa/try_mic_espc6/edge-impulse-sdk/dsp/numpy.hpp:54:10: fatal error: cfloat: No such file or directory
54 | #include
| ^~~~~~~~
compilation terminated.
[1066/1342] Building CXX object esp-idf/main/CMakeFiles/idf_main.dir//edge-impulse-sdk/dsp/memory.cpp.obj
ninja: build stopped: subcommand failed.
Steps to Reproduce:

  1. [Step 1]
    Create a model on Edge impulse and train it. Download the keyword spotting model.
  2. [Step 2]
    Download the standalone app for ESP-IDF dev. Enviromint.
  3. [Step 3]
    Build the application code along with main() application.

Expected Results:
[Describe what you expected to happen]
Build normally
Actual Results:
[Describe what actually happened]

Reproducibility:

  • [ *] Always
  • [ ] Sometimes
  • [ ] Rarely

Environment:

  • Platform: [ESP32s3-ESP-IDF.]

  • Build Environment Details: [ ESP-IDF]

  • OS Version: [ Windows 11]

  • Edge Impulse Version (Firmware): [e.g., 1.2.3]
    To find out Edge Impulse Version:

  • Edge Impulse CLI Version: [e.g., 1.5.0]

  • Project Version: [e.g., 1.0.0]

  • Custom Blocks / Impulse Configuration: [Describe custom blocks used or impulse configuration]
    Logs/Attachments:
    [Include any logs or screenshots that may help in diagnosing the issue]

Logs/Attachments:

Additional Information:
I have a model trained on the studio. The model is keyword detection model using Microphone.