This repository contains the official code release for DirectAudioEdit: Inversion-Free Text-Guided Audio Editing via Diffusion Prediction Contrast.
Text-guided audio editing aims to modify the language-specified acoustic content while preserving edit-irrelevant source components. Existing training-free methods typically rely on inversion-based editing. While inversion-free editing is appealing as it decreases computational overhead and reconstruction errors, it remains largely unexplored for audio editing. The key challenge is to construct a source-to-target editing trajectory through diffusion denoising dynamics. In this paper, we introduce DirectAudioEdit, the first attempt to develop a training-free and inversion-free method for audio editing.
Visit niutrans.github.io/DirectAudioEdit to listen to audio editing samples and compare DirectAudioEdit with baseline methods (DDIM-inv, DDPM-inv, SDEdit).
python -m pip install -r requirements.txtCUDA_VISIBLE_DEVICES=0 python ./code/main_run.py --init_aud example/a_baby_is_crying.wav --source_prompt "a baby is crying" --target_prompt "A cat is meowing" --results_path ./results@article{directaudioedit2026,
title={DirectAudioEdit: Inversion-Free Text-Guided Audio Editing via Diffusion Prediction Contrast},
author={Ge, Zhengkun and Liu, Xiaoqian and Zhang, Haoran and Ge, Yuan and Zhang, Junxiang and Yu, Zhengtao and Zhu, Jingbo and Xiao, Tong},
journal={arXiv preprint arXiv:2606.07356},
year={2026}
}
Parts of this code are heavily based on AudioEditingCode
AudioLDM2 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Therefore, using the weights of AudioLDM2 (the default) and code originating in the code/audioldm folder is under the same license (eg., utils.py:load_audio uses code from code/audioldm).
The rest of the code (inversion, PCs computation) is licensed under an MIT license.
