HƯỚNG DẪN AI âm thanh

Stable Audio and Timing-Conditioned Latent Audio Diffusion

Stable Audio is Stability AI's family of text-to-audio models, which generate music and sound effects by running diffusion in a compressed latent space rather than on raw waveforms.

Nghe hướng dẫn nàyAI thuật lại · ~8 min

Trên trang nàyđọc 9 phút
  1. Tổng quan
  2. Những điểm chính rút ra
  3. Lặn sâu
  4. Working out the latent size for a 30-second request
  5. Triển khai trong thế giới thực
  6. The Future of Stable Audio and Timing-Conditioned Latent Audio Diffusion
  7. Đưa nó vào thực tế
  8. Nguồn tham khảo và đọc thêm
  9. Tiếp tục khám phá
  10. Câu hỏi thường gặp

Tổng quan

The original model, described in an ICML 2024 paper, added timing embeddings so users can choose output length, and produced 95 seconds of 44.1 kHz stereo in about 8 seconds on one A100 GPU.

Những điểm chính rút ra

  1. Stable Audio generates audio by running diffusion on a compressed latent code from a variational autoencoder, then decoding it to a waveform.
  2. The original model's autoencoder shortens 44.1 kHz stereo audio in time by a factor of 1,024 into 64 latent channels.
  3. Timing embeddings for start time and total length let users request a specific duration within the model's 95-second window.
  4. Stable Audio 2.0, announced April 3, 2024, generates up to three minutes of stereo audio and uses a diffusion transformer instead of a U-Net.
  5. Stable Audio Open 1.0 was trained on about 486,500 Creative Commons recordings and generates clips up to 47 seconds long.

Lặn sâu

Stable Audio is a set of generative models from Stability AI that turn a text description, such as a style, mood, tempo and instrumentation, into an audio file. The technique underneath is latent diffusion, the same idea behind the Stable Diffusion image models. Instead of generating 44,100 sound samples per second per channel directly, the system first learns a compact code for audio, called a latent representation, and then learns to generate those codes. A decoder turns the generated code back into a waveform. The original Stable Audio research model also introduced timing conditioning, which lets a user ask for a specific duration instead of always receiving a fixed-length clip.

The pipeline in the original model has three parts. First, a variational autoencoder (VAE), a network trained to compress and then reconstruct its input, squeezes 44.1 kHz stereo audio along the time axis by a factor of 1,024 into a 64-channel latent sequence, an overall compression ratio of 32. Second, a text encoder based on CLAP, a model trained to match audio with descriptions, turns the prompt into a sequence of feature vectors. Third, a diffusion model, a 907-million-parameter U-Net, starts from random noise in the latent space and removes it step by step, guided by the text features through cross-attention and by the timing information. After denoising, the VAE decoder converts the latent sequence into stereo audio.

Timing conditioning is what made the original model distinctive. During training, each example was a window cut from a longer file, and the model received two learned embeddings: seconds_start, where the window began in the source file, and seconds_total, the full file's length. Files shorter than the training window were padded with silence. At generation time, a user sets seconds_start to 0 and seconds_total to the length they want, and the model fills that much of its 95-second window with content and the rest with silence, which is trimmed afterwards. This gives control over length, and because the model has seen where windows sit within whole files, it is designed to produce clips that begin and end rather than ones cut mid-phrase.

The timeline runs as follows. Stability AI launched Stable Audio as a product in September 2023, with a research post describing a model trained on over 800,000 files, about 19,500 hours of music, sound effects and instrument stems licensed from the stock music library AudioSparx. The full paper, Fast Timing-Conditioned Latent Audio Diffusion by Zach Evans, CJ Carr, Josiah Taylor, Scott H. Hawley and Jordi Pons, was posted in February 2024 and accepted to ICML 2024. It reports generating up to 95 seconds of stereo audio in about 8 seconds on an A100 using 100 sampling steps. Stable Audio 2.0, announced on April 3, 2024, extended tracks to three minutes, added audio-to-audio transformation, and replaced the U-Net with a diffusion transformer (DiT), which the company said handles long sequences better. Stable Audio Open 1.0, described in a July 2024 paper, released weights trained only on Creative Commons audio.

The main alternative design is autoregressive generation, used by models such as MusicGen, which predict discrete audio tokens one after another. The Stable Audio paper compared against MusicGen and AudioLDM2 variants and reports better scores on two of its three main MusicCaps metrics, Fréchet distance computed on OpenL3 embeddings and KL divergence computed with the PaSST classifier, along with much faster generation than the autoregressive baselines. Diffusion generates the whole clip in parallel over a fixed number of steps, so generation time grows slowly with length, while autoregressive models must produce tokens sequentially. The paper presents full-band stereo output and long-form musical structure as the advantages over some earlier state-of-the-art models.

The limitations are concrete and partly acknowledged by the authors. In human evaluations, stereo correctness on AudioCaps sound-effect prompts was only 57%, and text alignment was weaker for sound effects, which the authors link to sound effects being only about a quarter of the training files. Timing accuracy had more errors for requested lengths around 40 to 60 seconds. The autoencoder itself causes a small loss of fidelity compared with real recordings. The open model's card adds that Stable Audio Open cannot generate realistic vocals, works best with English prompts, performs unevenly across musical styles and cultures, and is stronger at sound effects than music. Bias toward the cultures most represented in the training data is flagged in both the paper and the model card.

Data provenance is a central issue for music generation, and Stability AI has addressed it publicly. The original and 2.0 models were trained on a licensed AudioSparx catalog, and the 2.0 announcement says artists could opt out. Stable Audio Open used CC0, CC BY and CC Sampling+ recordings from Freesound and the Free Music Archive, with copyrighted music screened out using a classifier, Audible Magic matching and human review. These choices reduce some legal risk but also limit the styles the models know, which helps explain uneven quality across genres.

In practice, using Stable Audio comes in three forms. The hosted service requires no hardware. Stable Audio Open can be run locally with Stability AI's stable-audio-tools code, which is developed on Python 3.10 and requires PyTorch 2.5 or later for its attention kernels; the weights are released under the Stability AI Community License, which directs commercial users to Stability AI's licensing terms. Training a model from scratch requires a large, rights-cleared dataset and multi-GPU compute, which is why most users fine-tune or prompt existing models. For any published work, users should check the license attached to the specific model version they used, since terms differ between the hosted product and the open weights.

04Ví dụ hoạt động

Working out the latent size for a 30-second request

  1. Start with the request: 30 seconds of stereo audio at 44,100 samples per second.

  2. Compute the waveform size: 30 x 44,100 = 1,323,000 samples per channel, so 2,646,000 values for two channels.

  3. Recall the model always works in its 95-second window of 4,194,304 samples, which the VAE downsamples by 1,024 to 4,096 latent frames.

  4. Each latent frame has 64 channels, so the full latent holds 4,096 x 64 = 262,144 numbers.

  5. Set seconds_start to 0 and seconds_total to 30, so the model fills about the first 1,292 latent frames (1,323,000 / 1,024) with content.

  6. After decoding, trim everything after 30 seconds, which the model should have generated as silence.

Những gì nó cho thấy

The diffusion model handles 262,144 latent values instead of over 8 million raw stereo samples for the full window, a compression ratio of 32, which is what makes fast generation possible. Check by confirming the decoded file is silent after the 30-second mark before trimming.

Triển khai trong thế giới thực

Generating instrumental music beds and sound effects from text prompts on Stability AI's Stable Audio service, whose 2.0 version announced on April 3, 2024 produces tracks up to three minutes long at 44.1 kHz stereo.

Transforming an uploaded sample with a text prompt, the audio-to-audio feature Stability AI introduced with Stable Audio 2.0, with uploads checked by Audible Magic content recognition for copyright matches.

Running Stable Audio Open 1.0 locally to create sound effects and field-recording-style clips up to 47 seconds long, using open weights trained on about 486,500 Creative Commons recordings.

Training or fine-tuning custom audio diffusion models with Stability AI's MIT-licensed stable-audio-tools repository, which includes autoencoder and diffusion training code and a Gradio test interface.

Benchmarking text-to-music research: the Stable Audio paper evaluated on MusicCaps and AudioCaps and introduced metrics adapted for long-form, full-band stereo audio.

The Future of Stable Audio and Timing-Conditioned Latent Audio Diffusion

The Stable Audio line shows the main direction of the field since 2023: longer outputs, more editing control and clearer data provenance. Stability AI moved from a 95-second U-Net model in 2023 to three-minute generation with a diffusion transformer in the April 2024 2.0 release, and published open weights trained on Creative Commons audio in mid-2024. Open problems the authors themselves name include accurate stereo imaging for sound effects, timing accuracy at intermediate lengths, and better coverage of underrepresented musical cultures. Training data and rights remain the most consequential open question for music generation broadly. Licensed catalogs with opt-outs and Creative Commons collections are two approaches in use, each limiting what a model can learn. Evaluation is also unsettled: the metrics in the 2024 paper had to be adapted for long, full-band stereo audio, and human listening tests remain necessary to judge musical structure. How these models are licensed, credited and integrated into music production tools is still developing, and claims about future capability should be checked against each new release's published documentation.

Đưa nó vào thực tế

Tại sao nó quan trọng

  • Truy cập và tiếp cận. Nó cải thiện khả năng tiếp cận thông qua phiên âm, tường thuật và giao diện giọng nói.
  • Chi phí và ngân sách. Các nhóm truyền thông có thể gửi âm thanh tinh tế nhanh hơn với ngân sách nhỏ hơn.
  • Tốc độ và tỷ lệ. Các hệ thống hướng tới khách hàng có thể xử lý các tương tác bằng giọng nói ở quy mô lớn hơn.

coi chừng

  • Rủi ro lạm dụng giọng nói và mạo danh sẽ tăng lên khi thiếu sự đồng ý.
  • Độ chính xác có thể giảm đối với các giọng, phương ngữ hoặc môi trường ồn ào.
  • Âm thanh tổng hợp có thể bị nhầm lẫn với lời nói đích thực nếu không có nhãn rõ ràng.

Các bước tiếp theo

  1. Nhận được sự đồng ý rõ ràng để thu âm, sao chép và tái sử dụng giọng nói.
  2. Kiểm tra chất lượng trên nhiều loa và điều kiện nền khác nhau.
  3. Xác định khi nào con người phải xem xét hoặc phê duyệt kết quả đầu ra.
  4. Dán nhãn âm thanh tổng hợp và lưu giữ hồ sơ xuất xứ để đảm bảo trách nhiệm giải trình.

Nguồn tham khảo và đọc thêm

  1. arXiv / ICML 2024 (Evans et al., Stability AI)Fast Timing-Conditioned Latent Audio Diffusion
  2. Stability AIStable Audio: Fast Timing-Conditioned Latent Audio Diffusion
  3. Stability AIIntroducing Stable Audio 2.0
  4. arXiv (Evans et al.)Stable Audio Open
  5. Stability AI on Hugging Facestabilityai/stable-audio-open-1.0 model card
  6. GitHubStability-AI/stable-audio-tools

Tiếp tục khám phá

Bản tin miễn phí

Nhận bản tóm tắt AI hàng ngày

Ba câu chuyện AI đã được xác minh vào mỗi buổi sáng các ngày trong tuần, được viết bằng tiếng Anh đơn giản. Miễn phí mãi mãi, không có quảng cáo.

Một email mỗi ngày trong tuần. Hủy đăng ký trong một cú nhấp chuột. Chúng tôi không bao giờ bán hoặc chia sẻ địa chỉ của bạn.

Tự kiểm tra

Take the Stable Audio and Timing-Conditioned Latent Audio Diffusion quiz

Phản hồi tức thì về mọi câu trả lời và chứng chỉ có thể chia sẻ với ID có thể xác minh sau khi bạn vượt qua khóa học.

Bắt đầu bài kiểm tra

Hỗ trợ giáo dục AI miễn phí. AI Understanding là tổ chức phi lợi nhuận 501(c)(3) — không bao giờ có quảng cáo, không có tường phí. Hãy quyên góp

Câu hỏi thường gặp

What is Stable Audio and Timing-Conditioned Latent Audio Diffusion?

Stable Audio is Stability AI's family of text-to-audio models, which generate music and sound effects by running diffusion in a compressed latent space rather than on raw waveforms. The original model, described in an ICML 2024 paper, added timing embeddings so users can choose output length, and produced 95 seconds of 44.1 kHz stereo in about 8 seconds on one A100 GPU.

Stable Audio sử dụng kỹ thuật cốt lõi nào để tạo âm thanh?

Âm thanh ổn định áp dụng khuếch tán tiềm ẩn, khử nhiễu biểu diễn âm thanh tiềm ẩn được nén thay vì các pixel hoặc mẫu thô.

What timing information conditions the original Stable Audio research setup?

Timing conditions are supplied and their resulting duration behavior is evaluated in the paper.

Thành phần nào nén âm thanh thô thành bản trình bày tiềm ẩn?

VAE mã hóa âm thanh nổi 44,1 kHz thành chuỗi tiềm ẩn nhỏ gọn và sau đó giải mã nó trở lại dạng sóng.

What capability did the official April 2024 Stable Audio 2.0 announcement report?

The statement is explicitly tied to version 2.0’s launch, not every current or prior model.

How does a text-only generation run in the original latent-diffusion setup start?

Audio-to-audio workflows can have additional input conditions, so this question specifies text-only generation.