--- license: mit ---

MeanAudio: Fast and Faithful Text-to-Audio Generation with Mean Flows

[![Paper](https://img.shields.io/badge/Paper-arXiv-b31b1b?logo=arxiv&logoColor=white)](https://arxiv.org/abs/2508.06098) [![Code](https://img.shields.io/badge/Code-Repo-black?style=flat&logo=github&logoColor=white)](https://github.com/xiquan-li/MeanAudio?tab=readme-ov-file) [![Hugging Face Model](https://img.shields.io/badge/Model-HuggingFace-yellow?logo=huggingface)](https://huggingface.co/AndreasXi/MeanAudio) [![Hugging Face Space](https://img.shields.io/badge/Space-HuggingFace-blueviolet?logo=huggingface)](https://huggingface.co/spaces/chenxie95/MeanAudio) [![Webpage](https://img.shields.io/badge/Website-Visit-orange?logo=googlechrome&logoColor=white)](https://meanaudio.github.io/)

## Overview MeanAudio is a novel MeanFlow-based model tailored for fast and faithful text-to-audio generation. It can synthesize realistic sound in a single step, achieving a real-time factor (RTF) of 0.013 on a single NVIDIA 3090 GPU. Moreover, it also demonstrates strong performance in multi-step generation. ## Environmental Setup **1. Create a new conda environment:** ```bash conda create -n meanaudio python=3.11 -y conda activate meanaudio pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --upgrade ``` **2. Install with pip:** ```bash git clone https://github.com/xiquan-li/MeanAudio.git cd MeanAudio pip install -e . ``` ## Quick Start To generate audio with our pre-trained model, simply run: ```bash python demo.py --prompt 'your prompt' --num_steps 1 ``` This will automatically download the pre-trained checkpoints from huggingface, and generate audio according to your prompt. The output audio will be at `MeanAudio/output/`, and the checkpoints will be at `MeanAudio/weights/`. Have fun with MeanAudio 😊 !!!