Who is this for?

This is an introductory topic for developers looking to deploy the Stable Audio Open Small text-to-audio model using LiteRT on an Android™ device or on a reasonably modern platform with macOS®.

What will you learn?

Upon completion of this Learning Path, you will be able to:

  • Download and test the Stable Audio Open Small model.
  • Convert the Stable Audio Open Small model to the LiteRT (.tflite) format.
  • Compile the application for an Arm CPU.
  • Create a simple application that generates audio.
  • Run the application on an Android smartphone and generate an audio snippet.

Prerequisites

Before starting, you will need the following:

  • A Linux-based x86 or macOS development machine with at least 8 GB of RAM and 50 GB of disk space (tested on Ubuntu 22.04 with x86_64).
  • A HuggingFace account.
  • An Android phone in developer mode and a cable to connect it to your development machine.

Summary

AI-assisted

This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
You’ll convert Stable Audio Open Small to LiteRT (.tflite) and run its audio-generation application on Android or macOS Arm devices. First, you’ll prepare the workspace, download the model files, and convert its Conditioners, DiT, and AutoEncoder submodules. Then, you’ll build LiteRT and FlatBuffers, compile the application for your chosen platform, run it with a text prompt, and retrieve the generated output.wav file.

Frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
How do I know the model download is complete before conversion?
Verify that model_config.json and model.ckpt are in your workspace directory. Run the listed ls command before you start conversion.
Where do I run CMake to build the Android app?
From your workspace, navigate to ML-examples/kleidiai-examples/audiogen/app and create a build directory. Run CMake from that build directory.
Which Android ABI should I use for Arm targets?
Set ANDROID_ABI=arm64-v8a in the CMake command for the Android build.
What paths do I pass to CMake after building LiteRT?
Build LiteRT and FlatBuffers, then configure CMake with TF_INCLUDE_PATH, TF_LIB_PATH, and FLATBUFFER_INCLUDE_PATH.
What result should I expect when running the program on the device?
Run audiogen on the device with a text prompt. After inference, pull /data/local/tmp/app/output.wav to your host machine.
Next