Sound & music · Research feature

FreeAudio: Training-Free Timing Planning for Controllable Long-Form Text-to-Audio Generation

A new training-free AI system allows accurate timing control in long-form text-to-audio generation, matching performance with trained models without needing aligned audio-text data.

Adapted from research by Yuxuan Jiang, Zehua Chen, Zeqian Ju and colleagues.

arXiv preprint revision · 2025-09-18 · Attribution & reuse
In this article
Editorial illustration of sound waves.

Editor’s introduction

The study introduces FreeAudio, a framework that enables precise timing control in text-to-audio generation by planning non-overlapping time windows using a language model and applying attention control and latent composition techniques. It evaluates timing accuracy using event-based measures and clip-level F1 scores, while also assessing audio quality with metrics like Fréchet Audio Distance and CLAP. The system achieves state-of-the-art results in timing-conditioned 10-second generation among training-free methods and matches training-based models in long-form synthesis. This marks the first effort to enable timing-controlled long-form audio generation without requiring temporally aligned training data. The evaluation includes both timing fidelity and audio quality, addressing a prior gap in the field where earlier methods focused only on timing metrics. Findings show FreeAudio performs comparably to leading training-based systems in both timing precision and audio realism, demonstrating potential for practical creative applications.

Introduction

Audio generation is playing an increasingly important role in content creation. It not only generates vivid and realistic sound elements for environments to enhance the auditory immersion of narrative scenes, but also serves as a key component in the design of music and sound effects in games. Meanwhile, as an essential part of multimodal generative systems, audio content that is coherent and finely controllable is being widely adopted in multimedia productions, significantly enhancing their expressiveness and dissemination potential. This trend continues to expand the role of audio throughout the creative workflow. In recent years, Text-to-Audio (T2A) generation has been intensively explored to synthesize semantically aligned and acoustically realistic audio samples from natural language prompts. Benefiting from the advancement of generative models, T2A systems have demonstrated remarkable generation quality by capturing the distribution of collected large-scale audio samples.

Despite the impressive progress made by existing T2A models, they still face significant challenges in achieving precise timing control and long-term continuity. These models often struggle to accurately follow lengthy and complex prompts, which limits their practical performance and scalability. Extending the capabilities of current T2A models remains a key research direction in the field of audio generation. However, most publicly available audio datasets are relatively short (typically around 10 seconds) and only offer coarse-grained, subtitle-level annotations. These data limitations hinder the development of models capable of fine-grained timing control and long-form coherence. To address these challenges, prior work has explored various dimensions such as long-duration generation, temporal control, and event sequence modeling. For example, Stable Audio leverages diffusion models trained on large-scale proprietary long-form audio datasets to generate up to 4 minutes and 30 seconds of audio. However, its approach relies on high-cost, precisely labeled data and extensive computational resources, making it difficult to replicate in open environments. Make-an-Audio 2 enhances a model’s temporal sequencing ability through data augmentation strategies, while methods such as PicoAudio and MC-Diffusion incorporate event timestamps as additional conditioning signals to help the model interpret and control temporal information. Nonetheless, these approaches often depend on pre-defined event categories and struggle to generalize to open-ended natural language descriptions, which limits their practicality and general applicability.

A straightforward approach to improving temporal control in T2A models is to construct large-scale, long-form datasets with precise temporal annotations and train a dedicated T2A model (e.g., Stable Audio ) that can better understand and execute complex instructions. However, such methods suffer from significant limitations: collecting and annotating high-quality, long-duration, and controllable datasets is prohibitively costly, and training or fine-tuning diffusion models at this scale demands substantial computational resources and engineering overhead. To address these challenges, we propose FreeAudio, a text-to-audio generation framework that supports temporal control and long-form synthesis without additional training. Our goal is to enable a structured understanding of complex prompts (e.g., a combination of text and timing prompts) in order to facilitate controllable, high-quality audio synthesis in a training-free manner. Leveraging audio timestamps and corresponding sub-prompts, we introduce Decoupling & Aggregating Attention Control to improve both the flexibility and quality of T2A generation. Specifically, we first employ the planning capability of large language models (LLMs) to convert textual and temporal prompts into a sequence of non-overlapping time windows, each accompanied by a natural language recaption. Audio segments are then independently generated for each sub-prompt within its designated time window, and subsequently merged via truncation and alignment of effective audio segments. This Decoupling & Aggregating Attention Control enables the generation of temporally aligned audio based on natural language descriptions. Furthermore, to extend temporal control to longer durations, we synchronize multiple diffusion processes to optimize a joint generation procedure that produces coherent and stylistically consistent outputs. Concretely, we enhance local boundary smoothness across adjacent audio segments by explicitly incorporating contextual information in the latent space, while maintaining global stylistic consistency via reference-guided generation.

Diffusion-Based Text-to-Audio Generation

Diffusion models have emerged as a dominant approach for T2A generation, offering superior fidelity and flexibility. Diffsound first introduced discrete diffusion on mel-spectrogram tokens. Building on this, AudioLDM proposed latent diffusion conditioned on CLAP embeddings, enabling higher audio quality while reducing dependence on paired data. Stable Audio advanced long-form audio generation by leveraging large-scale proprietary datasets to train diffusion models capable of producing high-quality audio over extended durations. While it introduced timing-conditioned embeddings, they are primarily used for controlling the overall length of the generated audio rather than providing fine-grained temporal guidance. On the semantic alignment front, TANGO and TangoFlux explored instruction-tuned language models and preference-based fine-tuning to improve alignment with complex text prompts and enhance compositional accuracy. Despite these advancements, existing diffusion-based models still face challenges in explicitly modeling long-range temporal structures and achieving fine-grained timing control within audio generation.

Timing-Controlled Audio Generation

Recent works have explored improving timing controllability in text-to-audio generation. Audio-Agent leverages large language models (LLMs) to decompose text or video inputs into timestamped instructions to guide pretrained diffusion models. PicoAudio integrates temporal information directly into model design, supported by fine-grained, temporally aligned audio-text datasets. MC-Diffusion enhances controllability by introducing timestamped content and style conditions via a trainable control encoder. TG-Diff proposes a training-free method that adjusts latent variables during inference to enforce temporal alignment. AudioComposer achieves fine-grained control of audio generation purely from natural language descriptions using cross-attention-based diffusion transformers. Despite these advances, scalable and precise timing control in open-domain scenarios and fine-grained control in long-form audio generation remain open challenges.

Long-Form Audio Generation

Long-form audio generation methods can be broadly categorized into autoregressive modeling and diffusion-based modeling. AudioGen and MusicGen adopt transformer-based architectures to model discrete representations of audio and music, enabling coherent generation conditioned on text or melody. AudioLM introduces a hybrid tokenization framework to jointly capture local fidelity and long-term structure, achieving high-quality speech and music continuations. MusicLM further extends autoregressive modeling with a hierarchical design, supporting controllable music generation over extended durations. In contrast, diffusion-based approaches model audio generation as iterative denoising over latent spaces. AudioLDM 2 integrates a self-supervised AudioMAE encoder, a GPT-2-based language model, and a latent diffusion model, extending the capability of audio generation to longer durations. Stable Audio incorporates timing embeddings into latent diffusion models, enabling controllable synthesis of stereo audio up to 95 seconds with strong structural consistency. InfiniteAudio further improves scalability by introducing a lightweight inference strategy that extends generation to infinite lengths without additional training.

Preliminaries on the Base T2A Model

DiT-based T2A models are typically trained to learn the reverse of a diffusion process, progressively removing noise from an initial random state conditioned on a text prompt over multiple diffusion steps. This framework generally consists of three main modules: 1) an audio VAE, responsible for transforming the waveform into a compressed latent representation and reconstructing the waveform from these latents; 2) a pretrained text encoder, which encodes a text prompt into conditioning embeddings; and 3) a Transformer-based diffusion model (DiT), which predicts the denoised audio latents conditioned on the text embeddings. Recent advancements further enhance the controllability of DiT-based T2A models by incorporating timing embeddings for target durations, enabling variable-length generation.

Building on the DiT-based T2A framework, we select this pretrained T2A model as our base model and aim to adapt it for long-form generation with precise timing control using a training-free approach. Specifically, we develop a base model with the Flan-T5 as the text encoder, trained on audio sampled at 16 kHz mono. The Flan-T5 encoder is frozen during training and its embeddings are injected via cross-attention to condition the diffusion process. We adopt a variable-length training strategy with continuous timing values up to 10 seconds to simulate diverse audio lengths.

Overall Pipeline

To facilitate information exchange within the batch during denoising, we introduce two attention control mechanisms. First, Decoupling Attention Control segments the base latent according to the timing windows and guides each sub-segment to perform cross-attention independently with its corresponding recaptioned prompt. This design enhances intra-window consistency by allowing finer control within each time window. Second, Aggregating Attention Control concatenates the attended sub-segments based on the timing plan and integrates them with the base latent, enabling global information fusion and ensuring overall semantic and temporal coherence. Aggregating Attention Control is applied in both self-attention and cross-attention blocks, whereas Decoupling Attention Control is applied only in cross-attention blocks, based on our empirical observation that applying Decoupling Attention Control to self-attention adversely affects the precision of timing alignment.

Experiment Settings

To objectively evaluate the controllability and scalability of the proposed method, we utilize the publicly available test split from AudioCondition, which consists of 1,110 audio samples from AudioSet-Strong. Each sample is annotated with frame-level timestamps for sound events, covering a vocabulary of 456 event classes. The fine-grained temporal annotations make this dataset particularly well-suited for evaluating timing-controllable generation.

Evaluation Metrics

For evaluating timing control, we follow prior work on temporal order control and employ two timing metrics: the event-based measures (Eb) and the clip-level macro F1 score (At), computed using a sound event detection (SED) system. We conduct evaluations using the open-source PB-SED system. Notably, previous methods for timing-controllable audio generation only reported timing-related metrics while neglecting audio generation quality. To address this gap, we additionally assess the audio quality of the generated samples based on standard metrics: Fréchet Audio Distance (FAD), Kullback–Leibler (KL) divergence, and CLAP score. Furthermore, to complement the objective evaluation, we introduce two subjective measures: temporal alignment and overall audio quality.

Experiment Settings

We adopt the standard AudioCaps and MusicCaps datasets as evaluation benchmarks. The AudioCaps test set consists of 979 audio clips from YouTube, while MusicCaps comprises 5521 music clips, also sourced from YouTube. Since both datasets provide 10-second audio segments, we follow the evaluation protocol of Stable Audio and extend it to support variable-length generation at a 16kHz sampling rate. Notably, the provided captions correspond only to the original 10-second segments and do not offer consistent semantic coverage over longer durations. Therefore, in our experiments, the 10-second clips are used as references, while the generated audio samples are extended to variable lengths ranging from 10 to 90 seconds.

Evaluation Metrics

We adopt FAD, KL, Fréchet Distance (FD), Inception Score (IS), and CLAP score as evaluation metrics for long-form audio generation, following the evaluation protocol proposed in Stable Audio. For KL divergence, each generated audio sample is divided into overlapping sub-windows. We compute the logits for each window, average them across all windows, and apply the softmax operation to obtain the final probability distribution. The same strategy is applied to KL evaluation at 16 kHz. For FAD, FD, and IS, we similarly use the overlapping sub-window scheme and report the mean of the scores as the final evaluation result.

For the CLAP metric, we compute the cosine similarity between the text embedding of the prompt and the audio embedding of the generated audio. Following Stable Audio, we adopt the Feature Fusion variant of CLAP to accommodate long-form audio. Specifically, three 10-second crops are extracted from the beginning, middle, and end of each audio sample and fused into a global representation.

Case Studies

In addition, FreeAudio benefits from a robust T2A backbone trained on diverse audio-text datasets beyond AudioCaps and MusicCaps (see Appendix A.1 for details), as well as an LLM planner capable of interpreting noisy or out-of-distribution prompts. The LLM module not only corrects errors such as typos, unconventional syntax, and inconsistent formatting, but also adapts to previously unseen concepts or expressions not present in training data, allowing FreeAudio to operate reliably in real-world scenarios. We provide qualitative examples of the LLM’s robustness in Appendix D.1.

Ablation Study

To further validate the effectiveness of Reference Guidance (RG), we perform an ablation study on long-form audio generation. Beyond standard metrics, two additional measures—Intra-LPIPS and Intra-CLAP—are introduced to assess cross-view coherence, computed by measuring the internal similarity between 10-second audio segments extracted via a sliding window. Specifically, Intra-CLAP is the cosine similarity between CLAP embeddings of different segments.

Conclusion

In this work, we propose FreeAudio, a novel training-free T2A framework that achieves superior performance in timing-conditioned text-to-audio generation. For 10-second timing-conditioned generation tasks, FreeAudio surpasses previous training-free methods by a large margin and achieves results comparable to state-of-the-art training-based models, without requiring any temporally aligned audio-text data for training. Furthermore, for long-form audio generation, FreeAudio makes the first attempt to enable timing-conditioned long-form synthesis, delivering performance on par with training-based approaches while significantly reducing computational overhead.

Model Configurations

Our diffusion model is built upon the DiT (Diffusion Transformer) architecture, following a latent diffusion modeling (LDM) paradigm that offers strong generative capabilities and effective context modeling. The model is conditioned on three types of inputs: a natural language prompt (prompt), the start time of the audio segment (seconds_start, which is set to 0 by default in our task), and the total duration (seconds_total). All conditions are embedded into a 768-dimensional feature space. The prompt is encoded using a pretrained Flan-T5-Base model, while seconds_start and seconds_total are treated as numerical inputs with value ranges restricted between 0 and 10 seconds.

The backbone of the diffusion network adopts a DiT structure with 24 layers and 24 attention heads, each with an embedding dimension of 1536. The model supports both cross-attention and global conditioning: cross-attention is applied to all types of conditional inputs, while global conditioning specifically handles duration-related control signals. The internal token dimension of the diffusion model is set to 64, with a conditional token dimension of 768 and a global condition embedding dimension of 1536. The generated latent representation has the same dimensionality as io_channels, which is 64.

Objective Metrics

We conduct a comprehensive evaluation of our proposed models from the perspectives of audio quality, semantic alignment, and inference efficiency. For objective evaluation, we adopt the following metrics: Fréchet Audio Distance (FAD), Kullback-Leibler (KL) divergence, Inception Score (IS), Fréchet Distance (FD), and the LAION-CLAP score.

FAD, adapted from the Fréchet Inception Distance (FID) in the image domain, measures the distributional difference between generated and reference audio based on VGGish embeddings, and serves as our primary metric for audio fidelity. KL divergence is computed using the PANN tagging model and quantifies the difference in posterior distributions of acoustic events between the generated and ground truth audio, reflecting event-level consistency. IS captures both the diversity and discriminability of the generated samples by computing entropy over predicted event class distributions. FD is structurally similar to FAD but operates in a more general embedding space; it tends to be less stable in audio tasks and is thus included as a supplementary metric.

Subjective Evaluation

For subjective evaluation, we recruited 20 human raters to assess two distinct tasks: timing-controlled generation and long-form audio generation. In the timing-controlled generation task, we evaluated the model from two perspectives: (i) temporal alignment accuracy, which measures how well the generated audio conforms to the specified timing constraints, and (ii) overall perceptual quality, which reflects the general auditory impression of the output. In the long-form audio generation task, we conducted evaluations on both the AudioCaps and MusicCaps datasets. For each sample, raters scored the results along three dimensions: overall audio quality, temporal coherence across segments, and stylistic consistency throughout the sequence. These criteria are designed to assess the model’s ability to maintain semantic integrity and structural stability in long-duration audio generation.

LLM Robustness on Unseen or Noisy Prompts

To further assess the robustness of FreeAudio’s planning module, we examine its ability to handle noisy and previously unseen prompts. This capability is largely attributed to the use of a LLM that interprets and decomposes text and timing prompts into structured sub-instructions.

This example demonstrates the planner’s ability to extract relevant semantic elements and unify inconsistent formats into coherent sub-instructions. By leveraging the generalization power of the LLM, FreeAudio can effectively handle real-world, imperfect user prompts without requiring strict input formatting, enhancing its practical usability in open-ended scenarios.

LLM Planning Prompts

We design a set of prompts to guide GPT-4o in the temporal planning stage of FreeAudio. Given a global audio caption and a set of event-level timing hints, the model generates a structured timeline by first inferring a sequence of non-overlapping time windows and performing event fusion and gap completion when necessary. It then produces a recaptioned prompt for each time window, ensuring that the resulting descriptions align with the input style expected by the downstream generative models. This process highlights the capability of GPT-4o in organizing events, understanding temporal context, and restructuring language, serving as a critical component for generating coherent multi-event audio scenes in FreeAudio.