This is a template plugin for TFlite framework. It is intended to be used as a starting point for creating new plugins. If compiled as it is, the plugin will just pass the audio through. However, it will prove that a plugin that integrates TensorFlow Lite can be compiled and run on either the local machine or on the Elk Audio OS.
This is part of the elk-audio-AI-tutorial, where you'll find working examples to be compiled.
Crosscompilation has been tested as a headless plugin for the Elk Audio OS on a Raspberry PI4.
/libs includes an TensorFlow Lite (v2.11.0) binary for linux-aarch64.
- Download and install the Elk Pi4 SDK for the desired OS version .
- cd into
libs/and run the TensorFlow Lite compile script for the desired architecture. - Open
TFliteTemplatePlugin.jucerwith the Projucer and save to generate the project files. - cd into
Builds/linux-aarch64and runcompileDebugElkPi4.sh(Making sure you downloaded the appropriate ElkPiSDK, read the script comments for more info). - Copy the generated
Builds/linux-aarch64/build/TFliteTemplatePlugin.vst3to your Elk Pi4 in the~/plugins/folder. - Copy the desired JSON config file from
config_files/to a folder of your choice on the Elk Pi4. - From a terminal in the board, run:
sushi -r -c /path/to/config_tflitetemplate.json
This is part of the elk-audio-AI-tutorial.
2023 Domenico Stefani