File size: 5,621 Bytes
fe451a8
 
08dbeff
 
 
 
 
 
 
23aff3c
 
 
 
 
 
fe451a8
a55c68b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
license: apache-2.0
pretty_name: MA-Bench
tags:
  - datasets
  - pandas
  - polars
  - mlcroissant

configs:
  - config_name: annotations
    default: true
    data_files:
      - split: train
        path: "annotation/*.json"
---
# 🎶 AudioGenie: A Training-Free Multi-Agent Framework for Diverse Multimodality-to-Multiaudio Generation

[![arXiv](https://img.shields.io/badge/arXiv-2505.22053-brightgreen.svg?style=flat-square)](https://arxiv.org/pdf/2505.22053) 
[![githubio](https://img.shields.io/badge/GitHub.io-Project-blue?logo=Github&style=flat-square)](https://audiogenie.github.io/)
[![Hugging Face Dataset](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Dataset-blue)](https://huggingface.co/datasets/ryysayhi/MA-Bench)
[![github](https://img.shields.io/badge/GitHub-Code-blue?logo=Github&style=flat-square)](https://github.com/ryysayhi/AudioGenie)


**This is the official repository for "[AudioGenie: A Training-Free Multi-Agent Framework for Diverse Multimodality-to-Multiaudio Generation](https://arxiv.org/pdf/2505.22053)".**


## ✨ Abstract

Multimodality-to-Multiaudio (MM2MA) generation faces significant challenges in synthesizing diverse and contextually aligned audio types (e.g., sound effects, speech, music, and songs) from multimodal inputs (e.g., video, text, images), owing to the scarcity of high-quality paired datasets and the lack of robust multi-task learning frameworks. Recently, multi-agent system shows great potential in tackling the above issues. However, directly applying it to MM2MA task presents three critical challenges: (1) inadequate fine-grained understanding of multimodal inputs (especially for video), (2) the inability of single models to handle diverse audio events, and (3) the absence of self-correction mechanisms for reliable outputs. 
To this end, we propose AudioGenie, a novel training-free multi-agent system featuring a dual-layer architecture with a generation team and a supervisor team. For the generation team, a fine-grained task decomposition and an adaptive Mixture-of-Experts (MoE) collaborative entity are designed for detailed comprehensive multimodal understanding and dynamic model selection, and a trial-and-error iterative refinement module is designed for self-correction. The supervisor team ensures temporal-spatial consistency and verifies outputs through feedback loops. Moreover, we build MA-Bench, the first benchmark for MM2MA tasks, comprising 198 annotated videos with multi-type audios. 
Experiments demonstrate that our AudioGenie achieves state-of-the-art (SOTA) or comparable performance across 9 metrics in 8 tasks. User study further validates the effectiveness of our method in terms of quality, accuracy, alignment, and aesthetic.


## ✨ Method

<p align="center">
  <img src="pic/generation.png" width="98%"/>
</p>

<p align="center"><strong>Overview of the AudioGenie Framework.</strong></p>


## 🚀 News
- **2025-10**: MA-Bench has been released!
- **2025-07**: AudioGenie has been accepted by ACM MM 2025! We look forward to seeing you in Dublin, Ireland!



## 🔮 MA-Bench

The dataset has been released on [Hugging Face](https://huggingface.co/datasets/ryysayhi/MA-Bench).

<p align="center">
  <img src="pic/dataset.png" width="98%"/>
</p>

<p align="center"><strong>Statistics of video categories within our MA-Bench.</strong></p>


## 🛠️ Environment Setup

- Create Anaconda Environment:
  
  ```bash
  git clone https://github.com/ryysayhi/AudioGenie.git
  cd AudioGenie
  conda create -n AudioGenie python=3.10
  conda activate AudioGenie
  pip install -r requirements.txt
  ```
- Install ffmpeg:
  
  ```bash
  sudo apt-get install ffmpeg
  ```


## 📀 Establish Tool Library

- In the `/bin` folder, we provide four examples: [MMAudio](https://github.com/hkchengrex/MMAudio), [CosyVoice](https://github.com/FunAudioLLM/CosyVoice), [InspireMusic](https://github.com/FunAudioLLM/FunMusic), [DiffRhythm](https://github.com/ASLP-lab/DiffRhythm).
You can clone each project and install it following its own guide. Then set:
  
  ```bash
  export MMAUDIO_HOME=<PATH_TO_MMAUDIO>
  export COSYVOICE_HOME=<PATH_TO_COSYVOICE>
  export INSPIREMUSIC_HOME=<PATH_TO_INSPIREMUSIC>
  export DIFFRHYTHM_HOME=<PATH_TO_DIFFRHYTHM>
  
  export MMAUDIO_CONDA=mmaudio
  export COSYVOICE_CONDA=cosyvoice
  export INSPIREMUSIC_CONDA=inspiremusic
  export DIFFRHYTHM_CONDA=diffrhythm
  ```
- To extend the library, add your preferred speech / song / music / sound-effect models by defining a `ToolSpec` in `tools.py`, and add a matching `run_model.py` in `/bin`.


## 🎯 Infer
We use Gemini as the MLLM in this repo. You can swap it for another MLLM (e.g., Qwen2.5-VL, which we used in the paper). 
- Set your API key for Gemini in `run.py` (or export it as an env var):
  ```bash
  os.environ['GEMINI_API_KEY'] = 'Your_Gemini_Api_Key'
  # or in shell:
  # export GEMINI_API_KEY=Your_Gemini_Api_Key
  ```

- Run the inference script:
  ```bash
  python AudioGenie/run.py \
    --video <PATH_TO_VIDEO or omit> \
    --image <PATH_TO_IMAGE or omit> \
    --text  "<YOUR_TEXT or omit>" \
    --outdir <OUTPUT_DIR>
  ```


## 📭 Contact

If you have any comments or questions, feel free to contact me (yrong854@connect.hkust-gz.edu.cn).


## 📚 Citation

If you find our work useful, please consider citing:

```
@article{rong2025audiogenie,
  title={AudioGenie: A Training-Free Multi-Agent Framework for Diverse Multimodality-to-Multiaudio Generation},
  author={Rong, Yan and Wang, Jinting and Lei, Guangzhi and Yang, Shan and Liu, Li},
  journal={arXiv preprint arXiv:2505.22053},
  year={2025}
}
```