Sound & music · Research feature

DreamAudio enables personalized audio generation using reference sounds

A new system uses reference audio clips to generate customized sound clips that match specific auditory events and text prompts.

Adapted from research by Yi Yuan, Xubo Liu, Haohe Liu and colleagues.

arXiv preprint revision · 2026-04-27 · Attribution & reuse
In this article
Editorial illustration of sound waves.

Editor’s introduction

It compares generated outputs to reference audio clips to ensure alignment with specific auditory events, such as a particular type of sound or environment. The system evaluates performance using metrics like Fréchet Audio Distance and subjective assessments of audio-text consistency. Findings show that DreamAudio produces audio that closely matches both the input text and the reference sound features.

Introduction

Audio generation, as a crucial technology for enabling artificial intelligence generated content (AIGC), has gained significant interest from the research community. In recent years, conditional audio generation has become a popular paradigm, where music, speech, or general sound effects are generated based on a variety of conditions, such as text, images, and videos. This opened up new opportunities for a range of potential applications, including audio generation for movies, games, and audiobooks.

Facilitated by advances in diffusion-based generative models and large-scale audio-language datasets, several models have been developed for audio generation with text prompts as conditions, such as AudioLDM, AudioGen, DiffSound, TANGO, Make-an-Audio2, Re-AudioLDM, and AudioLDM2. Building on the “semantic prior” learned from large collections of datasets to associate textual concepts with audio features, these models have shown strong capabilities in generating audio samples of high quality, fidelity and diversity. For example, when provided with the text prompt dog barking, the model leverages this particular “semantic prior” to generate various audio clips depicting dog barking across varying species, emotions, and durations.

Diffusion Models

Diffusion-based models have demonstrated improved performance in generative tasks for image, audio, and video. In the realm of audio synthesis, researchers initially followed the design used in image generation, and adapted it for audio generation based on mel-spectrogram and waveform. Due to the involvement of high-dimensional data, the representations for waveform and spectrogram can be difficult to train and slow to infer. To address this limitation, recent diffusion-based models work in a latent space through encoding pipelines. Specifically, current state-of-the-art (SOTA) systems follow an encoder-decoder framework, trained to generate the target features in a latent space, which are then decoded into waveforms through vocoders.

Conditional Audio Generation

Conditional generation has emerged as an important area in audio synthesis, enabling users to guide generative models with specific constraints or conditions to produce desired outcomes. Text-driven audio generation has gained significant attention. AudioGen employs a conditional language modeling pipeline that generates audio waveforms directly. AudioLDM employs the Contrastive Language-Audio Pretraining (CLAP) model to generate the embeddings of audio and text. These embeddings are then used as conditions to guide the training and inference of the latent diffusion model for audio generation. Specifically, AudioLDM is trained to generate feature representations of target audio within the latent space, followed by a variational autoencoder (VAE) decoder to reconstruct the spectrogram from the latent representation. Make-an-Audio develops a pseudo-prompt enhancement strategy to generate extra audio-caption pairs with large-scale compositions to alleviate the data scarcity problem. Tango uses a structure similar to AudioLDM, but replaces the CLAP model with Flan-T5.

Due to the diversity of the training dataset, these previous methods allow the model to generate highly diverse samples for the same prompt. However, these models are not designed for CTTA tasks and often struggle to generate content in terms of user preferences, which is the problem to be addressed in this paper.

Audio Generation with Flow Matching

Flow matching has recently emerged as an efficient alternative to diffusion-based generative models. By learning a deterministic flow path between noise and target distribution, flow matching significantly reduces the number of inference steps required for high-quality synthesis, leading to improved efficiency and enhanced performance. FlashAudio is the first audio generation model to employ flow matching, providing fast and high-fidelity results. LAFMA further exploits flow-matching models and reduces the number of inference steps to ten without compromising performance. More recently, TangoFlux and Stable Audio have applied flow matching to large-scale text-to-audio models, achieving SOTA performance on several audio-generation benchmarks. These studies demonstrate that flow matching provides an efficient and scalable framework for audio synthesis, enabling faster sampling and strong performance. Our work builds upon this framework and applies flow matching as the core backbone.

Customized Generation

Current methods for customized content generation are developed dominantly for images. Customized image generation could be categorized into tuning-based customization, and tuning-free customization. In tuning-based methods, such as DreamBooth, the generation models are fine-tuned with the embeddings of specific subjects to control the generated contents. In tuning-free methods, such as FreeCustom, customization is achieved by integrating the target feature with the generated feature during the inference stages to minimize the fine-tuning processes. Our DreamAudio resembles tuning-free customization methods. While the model itself is trained from scratch to learn general customization capabilities, it does not require any additional adaptation or parameter updates when encountering unseen user-provided reference concepts during inference.

Speech and Music Generation

Several customized systems have been explored in speech and music generation. For speech generation, ViT-TTS introduces a visual-text encoder that extracts additional visual scene information from reference images to improve text to speech (TTS) generation performance. F5-TTS incorporates reference speech as conditioning signals to control speaking style, prosody, and voice characteristics. In the music domain, Plitsis et al. adapted user-specific concepts from DreamBooth and fine-tune the text embeddings for personalized music style control. Unlike CTTA systems, these existing methods mainly adjust global acoustic attributes such as speaker style, prosody, timbre, genre, or overall musical texture. Their conditioning signals depend on complete speech or full musical phrases, whereas CTTA requires fine-grained, event-level controllability, making it fundamentally different from these style-based generation tasks.

General Audio Generation

FreeAudio and TG-Diff are two works designed to customize the timing of sound events in general audio generation. These two models both applied tuning-free customization strategies. More specifically, TG-Diff achieves temporal controllability by learning per-second embeddings, while FreeAudio achieves customization by applying a strategy for decoupling and aggregating attention tokens to fill-in the time-window tokens. However, both systems focus on timing control in text-to-audio generation, which differs from our goal on controlling the acoustic audio events. In addition, these two methods focus on training the time-related embeddings and tokens to match the timing window. Such requirement does not involve zero-shot scenarios, as most temporal patterns can be covered by massive training data with different temporal features.

Retrieval-Based Generation

Another task similar to CTTA is retrieval-based TTA, which was developed recently to improve the performance of TTA models in the few-shot and zero-shot cases. An example is Re-AudioLDM, which incorporates external audio features into the generation process using retrieval-augmented approaches. This system demonstrates more stable performance on low-occurrence audio events in TTA generation. Building on this concept, AudioBox TTA-RAG introduces a retrieval-information embedding module to enhance the capability in zero-shot generation. Although these systems can improve the TTA generation performance in the few-shot and zero-shot cases, the quality of the audio samples is limited by the database for audio retrieval. Furthermore, these models lack the capability to generate specific content for customization tasks, and research for CTTA tasks remains to be explored.

In this paper, we design a novel CTTA system, which allows the generated audio content to be tailored and controlled in terms of user preference derived from the reference concepts. The ability to achieve customization not only enhances the creative process, but also improves controllability in the event level in TTA systems. Hence, we aim to address a crucial practical challenge for deploying TTA systems in real-world applications.

Datasets and Evaluation Benchmark

Previous text-to-audio generation models mainly work on public audio-language datasets These datasets only provide audio clips and their corresponding captions. In customized generation tasks, additional reference concepts, including reference audio clips and corresponding captions are also required. To this end, we construct the customized training and evaluation datasets based on four commonly used audio-language datasets. The construction of these datasets enables DreamAudio to extract the customized feature from specific user contents. In addition, we manually collect a small-scale dataset with real-world customized scenarios as the first benchmark for CTTA. In the following sections, we first introduce the datasets collected as the base dataset to form the customized datasets. Then, we discuss the strategies for developing the training and testing data, followed by the introduction of the benchmark dataset. All evaluation benchmarks used for the system are presented in the end.

Evaluation Metrics

Following the evaluation protocol of baseline audio generation models, we use three different metrics for performance evaluation, including the Fréchet Audio Distance (FAD), Kullback-Leibler (KL) divergence and Contrastive Language Audio Pretraining (CLAP) related score. In addition, we follow the evaluation pipelines from the customized image generations and incorporate subjective assessments that measure the consistency and the fidelity between generated and target audio, including CLAP audio score (CLAPA), AudioBox Aesthetics, and subjective evaluations. Specifically, audio-text latent similarity based metrics including FAD, KL and CLAP-score are applied for evaluating the performance on Customized-Concatenation, Customized-Overlay and general AudioCaps testing sets, subjective evaluations and AudioBox Aesthetics are used for the evaluations on Customized-Fantasy.

Subjective Evaluation

We adopt the evaluation metrics used in the baseline models, incorporating both Overall Impression (OVL) and Audio-Text Relation (REL) for subjective assessments. Detailed scoring instructions, including illustrative examples, are provided to the raters to ensure clarity. For OVL, we follow the approach outlined in the baseline models by asking raters: How would you rate the overall quality of this audio sample?. Responses are scored on a Likert scale, ranging from 5 for “excellent” to 1 for “bad”. For REL, we adapt the metric to better suit the customized generation tasks by asking: Does the generated audio successfully present the target audio events customized by the reference audio samples? The subjective evaluation was conducted with ten human raters recruited through an open advertisement within the Department of Electrical and Electronic Engineering at the University of Surrey. All participants were PhD students and were not involved in the development of the proposed model or the writing of this paper, and none of the authors participated in the evaluation. To encourage diverse perspectives and reduce potential bias, the participant pool included six raters with backgrounds in audio related research and four raters from unrelated fields such as computer vision and robotics, providing complementary non-expert assessments.

General Text-to-Audio Generation

In this section, we evaluate the capability of DreamAudio on general text-to-audio generation tasks. We compare the performance on audio generation with several SOTA systems, including AudioLDM, AudioGen, Make-an-Audio, Stable Audio Open, Tango2, AudioLDM2, TangoFlux, and Re-AudioLDM. All the checkpoints are downloaded from open-sourced GitHub or HuggingFace to reproduce the results. For plain text-to-audio tasks without any reference inputs, DreamAudio is provided with empty reference audio clips and empty reference text token. As shown in Table IV, DreamAudio trained on reference-based data does not achieve SOTA performance when directly applied to general text-to-audio generation tasks. We believe the main reason for this is that DreamAudio is architecturally designed for customized generation with reference-based conditions. The MRC module provides an additional pathway for extracting and leveraging external audio/text reference signals. When reference data are available during training stages, the model learns to rely on these external concepts for capturing acoustic feature and fine-grained attributes. This makes the model less dependent on the text conditions while generating audio. Consequently, when operating on general tasks without reference concepts, the external pathway of MRC is un-used. Hence, the performance is limited since the model has been guided by the conditions from both reference concepts and text prompts, rather than purely text prompts.

After fine-tuning DreamAudio on AudioCaps, the model recovers strong performance and achieves comparable results to most non-retrieval based systems. Furthermore, when DreamAudio is trained from scratch with only AudioCaps and no reference-based data, the model exhibits even better performance, demonstrating that the architecture itself remains fully capable of high-quality general text-to-audio generation. These findings indicate that the system can be applied to general text-to-audio generation tasks by reducing the conditioning of the reference concepts.

Effectiveness of RFM

As shown in Table III, we compare the outputs of DreamAudio with different training approaches on various datasets. Experiments on RFM-based systems present enhanced performance on customized tasks, i.e., Customized-Concatenation and Customized-Overlay. On the other hand, we observe that DreamAudio-DDPM trained with diffusion-based techniques offers better results in the semantic feature than DreamAudio by achieving better CLAP scores. These experimental results demonstrate two key findings: a) RFM-based models show promising performance in generating customized and personalized content; b) DDPM-based approaches guide the models toward more robust performance by preserving the capability of generating features based on semantic information.

Effectiveness of MRC

We conducted various experiments with and without the external feature extraction path from the MRC module in Table III. For DreamAudio-UNet, the input of the generator module is a concatenation of general latent input and three VAE latent features of the reference audios. The results show that DreamAudio with only basic UNet structures exhibits significant performance degradation in all metrics. In addition, the comparison between DreamAudio-SEncoder and DreamAudio indicates that the use of two groups of encoder blocks for encoding and feature extraction helps improve the overall performance.

Effectiveness of Data Masking and Dropping

We also conducted experiments on reference concept masking, dropping, and the impact of different data proportions. As shown in Table VI, the masking and dropping ratios significantly influence the model’s performance on customized tasks. When provided with more precise reference concepts, the model learns more effectively. However, based on the KL divergence and CLAPA scores, we observe that the generated results contain more similar information to the target audio. This may be because the model is led to pay more attention to extraction and concatenation rather than generation, which may explain the reason of performance drop in general TTA generation tasks. This indicates that without masking and dropping, the model’s performance is degraded. Furthermore, in the data distribution comparison, we found that an excessive amount of customized-concatenation data makes the model overly reliant on the content of the reference concept. In contrast, Customized-Overlay data helps maintain a balance between leveraging the reference concept and the text prompts.

Training with AudioCaps data improves the robustness of the model in general TTA scenarios. However, an excessive amount of AudioCaps data causes the model to shift focus away from the features provided by the reference concept, leading to degraded performance on the CTTA task. Lastly, the experiment with 100% dropping represents the system trained without any reference text concepts while maintaining access to the reference audio clips, evaluating the ability of the model to perform customization based solely on the reference audio clips. The result shows a decrease in customization performance, which illustrates the importance of reference text in providing semantic grounding and helping the model exploit the reference audio features. In addition, as shown in Table IV, DreamAudio offers improved performance on general text-to-audio tasks on the AudioCaps benchmark, giving lower FAD and higher CLAP scores, as compared to AudioLDM and Stable Audio Open. This suggests that without the constraints of the reference text, DreamAudio tends to reduce its reliance on reference concepts and learn to generate audio based primarily on the target prompt.

Conclusion and Future Works

In this paper, we have introduced DreamAudio, a model for customised text-to-audio generation (CTTA). Given target prompts and reference audio-caption pairs as input, DreamAudio demonstrates satisfying performance in generating audio clips with specified audio content in the CTTA task. In addition, DreamAudio delivers competitive results in the general TTA task, establishing a robust foundation for a wide range of audio-related applications. To further validate the real-world applicability of our method, we created the first benchmark for CTTA, which includes zero-shot audio events to simulate real-world scenarios. Our evaluation demonstrates that DreamAudio captures these user-specific audio events, highlighting its ability to generate meaningful and semantically coherent content. In addition, we studied the adaptability of the proposed method, which can effectively handle a varying number of audio-caption pairs as reference concepts. Future work will focus on improving the flexibility of incorporating reference audio-text pairs, changing the number of references, and developing diverse and high-quality real-world data. We will integrate additional modalities such as images and video, and extend its use in other customized audio tasks, such as audio separation, style transfer, and editing.