Skip to main content
This example comes from the Edge Impulse Linux Inferencing Python SDK that has been slightly modify to upload the raw data back to Edge Impulse based on the inference results. To run the example:
  1. Clone this repository:
  1. Install the dependencies:
  1. Grab your the API key of the project you want to upload the inferred results raw data:
  1. Past the new key in the EI_API_KEY variable in the audio-classify-export.py file. Alternatively, load it from your environment variable:
  1. Download your modelfile.eim:
  1. Run the script:
Here are the arguments you can set:
  • modelfile.eim, path the model.eim
  • yes,no, labels to upload, separated by comas, no space
  • 0.6, low confidence threshold
  • 0.8, high confidence threshold
  • <audio_device_ID, optional>
In a keyword spotting model, it can give the following results: