Technology9 min read
How AI Music Generators Actually Work
A plain-English guide to the technology behind Suno, Udio, Lyria, Eleven Music, Stable Audio and MusicGen, plus voice cloning, stem separation, AI mastering, watermarks and detectors, and what these tools still can't do.
Type "melancholy indie folk about a lighthouse keeper" into a box and, a few seconds later, out comes a finished song with vocals. It feels like magic, but the machinery underneath follows a few ideas that can be explained without any math. This guide covers how the generators are built, where their training music comes from, and how platforms are trying to tell their output apart from human work.
The short version
An AI music generator is a statistical model trained on a very large amount of recorded audio, usually paired with text descriptions or lyrics. It learns which sounds tend to follow which, and how a word like "lo-fi" relates to what you hear. When you type a prompt, it doesn't paste library clips together. It produces new audio that fits the patterns it learned and the description you gave. Three things separate one product from another: training data, the way audio is compressed, and the type of model doing the generating. Companies differ a lot in how much they reveal about each.
Step one: turning sound into "tokens"
Raw audio is huge: CD-quality sound has 44,100 measurements per second per channel, so a three-minute song is millions of numbers. Modern systems therefore start with a neural audio codec (sometimes called a tokenizer or autoencoder), a separate network trained to squeeze audio into a much smaller set of numbers and rebuild it afterward with as little audible loss as possible.
Meta's open-source MusicGen paper gives a concrete example. It uses Meta's EnCodec codec to turn 32 kHz audio into 50 frames per second, and each frame is described by four "codebook" entries chosen from a vocabulary of 2,048 options. Those entries work like words in a sentence: a long run of them describes a piece of music. Once music is written in this compact "language," the techniques that power text chatbots can be applied to sound.
Diffusion-based systems use a similar trick with a different output. Stability AI's Stable Audio Open paper describes a variational autoencoder that compresses stereo 44.1 kHz audio into a continuous "latent" representation, a compact numerical sketch rather than a list of discrete tokens.
Step two: the generator itself
There are two main families of generator, and products can mix ideas from both.
Transformers (the "next token" approach). The kind of model behind chatbots, a transformer predicts the next audio token, then the next, until the clip is finished, and the codec turns the tokens back into sound. MusicGen is a single transformer that predicts several streams of codec tokens at once, using what its authors call interleaving patterns so it doesn't need a chain of separate models (arXiv).
Diffusion (the "sculpt from noise" approach). A diffusion model starts with random noise and removes it step by step, nudging the result toward something that matches the prompt. It's a bit like a photo slowly coming into focus. Stable Audio Open combines its autoencoder with a "diffusion transformer" that does this denoising in the compressed latent space, and it generates up to 47 seconds of stereo audio (arXiv).
Which approach do Suno, Udio, Lyria and Eleven Music use? As of November 2026, those companies have published little about the architecture of their flagship models. Google's announcements for Lyria 3 and Lyria 3 Pro describe features, not model design, and ElevenLabs' Eleven Music launch post discloses neither its architecture nor its training data in detail. Anyone who tells you exactly how Suno's v6 works internally is guessing, unless they are citing the company.
Step three: conditioning, or how your prompt steers the music
"Conditioning" is the technical word for the information that steers generation. The most common kind is text. MusicGen runs your prompt through a pretrained language model called T5, which turns the words into numbers the music model can attend to. It can also be conditioned on a melody, which it reads as a simplified chromagram, essentially a moment-by-moment record of which pitch class is loudest (MusicGen paper).
Commercial tools have added more ways to steer:
- Lyrics. Gemini's Lyria 3 can write lyrics from a prompt, and users can guide style, vocals and tempo. It can also take an uploaded photo or video as inspiration (Google).
- Song structure. Lyria 3 Pro, launched in March 2026, lets users ask for intros, verses, choruses and bridges, in tracks up to three minutes long (Google). Eleven Music offers editing of individual sections and their lyrics (ElevenLabs).
- Audio input. In 2024 Suno and Udio both added uploads, so users could extend or remix their own clips (Music Ally). That feature has a downside. The Verge showed in 2026 that a copyrighted song could be fed into Suno Studio and used as the seed for new tracks, including covers (The Verge).
Where the training music comes from, and why it's contested
A generator can only learn what it has heard, so training data is the heart of both the technology and the controversy.
Some developers have documented their data. Meta says MusicGen was trained on 20,000 hours of licensed music, including an internal collection plus tracks from the stock libraries Shutterstock and Pond5 (MusicGen paper). Stable Audio Open was trained on about 486,000 Creative Commons recordings from Freesound and the Free Music Archive (arXiv). The original Stable Audio, launched in 2023, was trained on licensed content through a partnership with the music library AudioSparx (Music Business Worldwide). ElevenLabs reportedly worked with Merlin and Kobalt to train Eleven Music (The Hindu).
The best-known consumer tools were built differently. In an August 2024 court filing, Suno said its training data "includes essentially all music files of reasonable quality that are accessible on the open internet," and argued that this was fair use (404 Media). In a September 2026 filing it admitted that "audio data was obtained from YouTube for use as training data using YT-DLP," a download tool (Music Business Worldwide). Google says it was "very mindful of copyright and partner agreements" in training Lyria 3 but gives no further detail (Google), and independent artists have sued, claiming the model was trained on unlicensed music from YouTube (Billboard). In June 2026, The Atlantic published searchable databases of training datasets circulating among AI developers that together hold more than 21 million recordings (Music Business Worldwide).
The legal fight is a story of its own. Some labels have since settled with Suno or Udio and licensed them, while other suits continue as of November 2026. One result is that Suno's v6, released in September 2026, was presented as its first model made in cooperation with Warner Music Group, BMG and Believe, with payments to labels (Bloomberg). Suno hasn't said publicly how much of v6's training data is licensed and how much isn't.
Voice cloning and voice conversion
Voice cloning works differently from song generation. The common open-source method is voice conversion: you sing or speak, and the software re-renders the performance in someone else's timbre while keeping your words, melody and timing. A widely used tool, Retrieval-based Voice Conversion (RVC), extracts what is being said with a speech model called HuBERT, tracks the pitch separately, and swaps in matching sound features from the target singer's training recordings. Because it starts from pretrained weights, a usable model can be trained on as little as about 10 minutes of clean audio (Hugging Face).
That low barrier explains the flood of unofficial "AI covers," and it's why voice rights have become a separate legal front. In September 2026, for example, musicians led by Jason Isbell sued Suno in Boston, alleging that it imitates their voices and used artists' identities to train its AI "without consent" (The New York Times). Some companies have tried to address the problem with permission. Universal partnered with SoundLabs in 2024 on "ultra-high fidelity vocal models" of its artists (Rolling Stone).
The quieter AI: stems, mixing and mastering
Many musicians use AI that never writes a note.
Stem separation splits a finished mix into vocals, drums, bass and other parts. Meta's open-source Demucs, one of the best-known models, uses a hybrid design that analyzes both the raw waveform and a spectrogram, with a transformer linking the two (GitHub). The technology became widely known in 2023, when it helped isolate John Lennon's voice from the piano on an old demo, which became the Beatles' "Now and Then" (NPR). Labels now use companies such as AudioShake to make stems from back catalogs for remixes and sync licensing (Billboard). Separation still isn't perfect. Demucs' own documentation warns of "bleeding and artifacts" on piano in its experimental six-stem model.
AI mastering services such as LANDR analyze a mix's style, dynamics, frequency balance and stereo width, then build a custom processing chain. LANDR itself says professional engineers still bring "expertise and creative input, especially for complex or high-stakes projects" (LANDR).
Watermarks and detectors
As AI tracks have flooded streaming services, two kinds of technology have emerged to identify them.
Watermarking builds a hidden signal into the audio when it's created. Google's SynthID embeds a watermark in Lyria output that Google describes as "inaudible to the human ear" and says resists added noise, MP3 compression and speed changes. It can be checked through Google's SynthID Detector portal or by asking Gemini (Google DeepMind). Google hasn't published test figures for how well the audio watermark survives. In August 2026 Suno announced plans for watermarks and fingerprints that it called "durable and resistant to tampering," but it didn't say which technology it would use (TNW). The limitation is that a watermark only identifies output from companies that choose to add one.
Detection tries to recognize AI audio after the fact, without a watermark. Deezer, the most visible example, says its in-house detector identifies fully AI-generated tracks from tools such as Suno and Udio with 99.8% accuracy, based on its own testing. It says it can add other generators when it has example data from them. Deezer reports that its tool might miss about 0.2% of AI tracks, but it doesn't publish a false-positive rate. It also notes that the tool targets fully AI-generated music, not songs where AI played a part. In June 2026, Deezer opened the detector to listeners on other streaming services, saying it was receiving nearly 75,000 AI tracks a day, over 44% of its deliveries (Deezer). A month later it said fully AI-generated music had passed half of its daily uploads (Billboard). Detectors can also get it wrong, and in November 2026 Digital Music News reported on AI-detection tools mislabeling human artists' work (Digital Music News).
What the tools can and can't do today
They can:
- Produce polished, radio-length songs with vocals in seconds. Lyria 3 Pro generates up to three minutes per track (Google).
- Imitate genres and production styles convincingly. In a Deezer–Ipsos survey of 9,000 people, 97% couldn't tell AI music from human-made music in a blind test (Deezer).
- Edit sections, extend uploaded audio and split mixes into stems for producers.
They still struggle to:
- Sound distinctive. Reviewers called Suno's v5 "technically impressive" but soulless (The Verge), and The Verge said v6 still can't capture the "natural imperfections" of human performance (The Verge).
- Work well without strong training data. Stable Audio Open's authors say it "cannot produce intelligible speech or singing" and isn't competitive with state-of-the-art music models, because there is little high-quality Creative Commons music to train on (arXiv).
- Follow complex instructions exactly. The same paper notes trouble with prompts that link several events ("and," "then," "after").
- Avoid echoing existing songs. Google says Lyria outputs are checked against existing content but admits the approach "may not be foolproof" (Google).
Key takeaways
- AI music generators compress audio into compact "tokens" or latents, then use transformers, diffusion models or both to generate new audio that matches a text, lyric or audio prompt.
- Open research models (MusicGen, Stable Audio Open) document their methods and data, while Suno, Udio, Lyria and Eleven Music have disclosed little about their architectures as of November 2026.
- Training data is the central controversy. Suno has said it trained on "essentially all" music it could reach online, including YouTube audio, and that dispute is still being fought in court and through licensing deals.
- Voice conversion can re-render a performance in another singer's voice from minutes of audio, which is why voice and likeness rights are a separate legal battle.
- Watermarks such as SynthID only work for companies that add them. Detectors such as Deezer's report high accuracy based on their own testing, but they focus on fully AI tracks and can produce false positives.
- Today's tools are fluent at style but still weak on originality, precise control and human-sounding imperfection.
Sources and further reading
- MusicGen: Simple and Controllable Music Generation (Meta, arXiv)
- Stable Audio Open (Stability AI, arXiv)
- Google: Gemini can now create music with Lyria 3
- Google: Lyria 3 Pro
- Google DeepMind: SynthID
- ElevenLabs: Eleven Music
- 404 Media: Suno says it trained on "essentially all music files" online
- Music Business Worldwide: Suno admits obtaining YouTube audio for training
- Music Business Worldwide: The Atlantic's music training datasets
- Deezer: AI music detector for playlists
- TNW: Suno's watermarking and download limits
- Hugging Face: What is RVC?
- Demucs on GitHub
- LANDR: What is AI mastering?
Last updated November 24, 2026. This article is for general information.
In the news
Related weekly coverage
Weekly news
Week of Sep 7, 2026
Suno launches licensed models with Warner and BMG, Universal teams with ElevenLabs on an AI creation platform, SOCAN sues Suno, and an AI track cracks Korea's Melon Top 100 for the first time.
Weekly news
Week of Apr 27, 2026
Spotify launches a 'Verified' badge to separate human artists from AI, Taylor Swift files trademarks on her voice and image, and Suno and ElevenLabs push AI music further into the mainstream.
Weekly news
Week of Feb 23, 2026
Google buys ProducerAI (formerly Riffusion), Sony's AI-music tracing tech draws wide coverage and skepticism, an AP feature finds Suno and Udio trying to join the industry they angered, and artist groups launch a 'Say No to Suno' push.
Monthly news
August 2025
ElevenLabs launches a licensed AI music generator, music publishers widen their fight with Anthropic, AI fakes appear under real artists' names, and the TRAIN Act targets unauthorized AI training.
Keep reading
More articles
Artists10 min read
A Musician's Guide to Using AI Tools Safely
Who owns a song made with AI, what Suno, Udio and ElevenLabs actually let you do, how distributors, streamers and PROs treat AI-assisted music, and how to protect your own voice and catalogue, as of November 2026.
Industry9 min read
The Business of AI Music: Money, Startups and the Deals Reshaping the Industry
Suno is valued at $5.4 billion, ElevenLabs at $22 billion, and the major labels are turning lawsuits into licensing deals. Here is where the money in AI music comes from, where it goes, and what it means for working musicians.
Legal9 min read
The AI Music Lawsuits, Explained
A guide to the major court fights over AI and music, from the labels' suits against Suno and Udio to the publishers' lyrics cases against Anthropic and GEMA's wins in Munich: who sued whom, what is alleged, and where each case stands as of November 2026.