Meta SAM 3 Playground

Model · Meta SAM Audio · sound separation

Meta SAM Audio Guide Segment Anything for sound. Type a description, click a source in a video, or mark when a sound happens, and SAM Audio pulls that sound out of the mix, leaving the rest on its own track.

mix → target + residual
Animation of SAM Audio separating one sound from a mixA mixed recording of a voice, a barking dog and traffic is shown as three overlapping waveforms. The text prompt “dog barking” is applied. The barking waveform is pulled out on its own as the target track, and the voice and traffic stay together as the residual track. mixture.wav text › dog barking target.wav residual.wav
Illustration: one prompt, two output tracks.

Overview

What Is Meta SAM Audio?

Meta’s Segment Anything model for audio, released in December 2025, that isolates the sound you ask for from a mixed recording.

What it does

  • Isolates one sound: a voice, an instrument, a noise, a sound effect.
  • Returns two tracks: the target and the residual (everything else).
  • Works on speech, music and general sounds with one model family.
  • Runs on audio files or the audio of a video.

Where it fits

  • Part of Meta’s Segment Anything collection, alongside SAM 3 (images and video) and SAM 3D.
  • Open code and gated weights under the SAM License.
  • Try it in the Segment Anything Playground.
  • Paper: “SAM Audio: Segment Anything in Audio” (arXiv 2512.18099).

Prompting

Three Ways to Prompt SAM Audio

Describe it, point at it, or say when it happens. Combine them for the most control.

prompt types
Animation of the three SAM Audio prompt typesThree prompt types take turns. Text: typing “guitar”. Visual: clicking the guitarist in a video frame so a mask covers them. Span: marking the seconds on a timeline when the guitar plays. 1 · text promptguitar|short, lowercase noun or verb phrase 2 · visual prompt click the guitarist → mask (e.g. from SAM 3) → their sound 3 · span prompt + 6.3–7.0 s − absent mark when the sound is (+) or isn’t (−) present use one prompt type, or combine them
Illustration of text, visual and span prompts.
  • Text: “dog barking”, “singing voice”, “acoustic guitar”.
  • Visual: click or mask the person or object making the sound in a video.
  • Span: mark the seconds where the sound is present (+) or absent (−). Meta calls this an industry first.
  • Combine: Meta reports mixed prompts (e.g. text plus span) beat single prompts.
  • Same idea as SAM 3, which uses text, clicks and boxes for images: prompts explained

Models

SAM Audio Models

Three sizes, a “-tv” variant of each, plus two helper models.

CheckpointUse it for
sam-audio-smallLightest; quick tests and smaller GPUs
sam-audio-baseBalance of speed and quality
sam-audio-largeBest overall separation quality
sam-audio-{small,base,large}-tvBetter at picking the correct target sound and at visual prompting
sam-audio-judgeScores candidate separations for reranking
pe-av-largePerception Encoder Audio-Visual, used by SAM Audio and the Judge

All are under facebook/ on Hugging Face and gated: request access, then hf auth login. Same steps as for SAM 3: Hugging Face access guide.

Under the hood

How SAM Audio Works

An audio-visual encoder understands the mix and the prompt; the model generates separations, and a scorer can pick the best one.

how it works
Animation of how SAM Audio produces and picks a resultThe mixture and the prompt go into SAM Audio, which uses the PE-AV audio-visual encoder. It generates several candidate separations. A scorer combining CLAP, the SAM Audio Judge and, for visual prompts, ImageBind rates them, and the best candidate becomes the target and residual output. mixture prompt SAM AudioPE-AV encoder k candidates best scored by CLAP · SAM Audio Judge · ImageBind (visual) → target + residual
Simplified illustration of generation and reranking.
  • PE-AV: Meta’s Perception Encoder Audio-Visual links what’s seen with what’s heard; Meta says it was trained on over 100 million videos.
  • Span prediction (text prompts): the model first guesses when the sound occurs, which helps with intermittent sounds.
  • Reranking: generate several candidates and keep the best, scored by CLAP, the SAM Audio Judge and, for visual prompts, ImageBind.
  • Trade-off: span prediction and more candidates improve quality but cost time and GPU memory.

No code

Use SAM Audio Without Code

Segment Anything Playground

  1. Open the playground and choose the audio option.
  2. Upload an audio or video file, or pick a sample.
  3. Type the sound, click its source in the video, or mark a time span.
  4. Listen to the isolated sound and the rest, then download.

Menu names may change as Meta updates the site.

ComfyUI (community nodes)

  • Community packs add SAM Audio text, span and visual separation nodes that output target and residual audio.
  • Some wrap Meta’s sam_audio package; others reimplement it with converted weights. Check each pack’s licence and model source.
  • Pair with SAM 3 nodes for visual prompts: ComfyUI setup

Python

SAM Audio in Python

Install Meta’s package, then separate with text, span or visual prompts.

terminal

git clone https://github.com/facebookresearch/sam-audio.git
cd sam-audio && pip install .        # Python 3.11+, CUDA GPU recommended

# request access to the facebook/sam-audio-* repos on Hugging Face first
hf auth login

text prompt

import torch
import torchaudio
from sam_audio import SAMAudio, SAMAudioProcessor

model = SAMAudio.from_pretrained("facebook/sam-audio-large").eval().cuda()
processor = SAMAudioProcessor.from_pretrained("facebook/sam-audio-large")

batch = processor(audios=["podcast.wav"], descriptions=["dog barking"]).to("cuda")
with torch.inference_mode():
    result = model.separate(batch, predict_spans=False, reranking_candidates=1)  # fast settings

sr = processor.audio_sampling_rate
torchaudio.save("dog_barking.wav", result.target.cpu(), sr)   # the isolated sound
torchaudio.save("podcast_clean.wav", result.residual.cpu(), sr)  # everything else

span prompt + quality settings

# span prompt: the horn is audible from 6.3 s to 7.0 s ("+" = present, "-" = absent)
batch = processor(audios=["street.wav"], descriptions=["car honking"],
                  anchors=[[["+", 6.3, 7.0]]]).to("cuda")

# better quality: predict spans for intermittent sounds and rerank 8 candidates
with torch.inference_mode():
    result = model.separate(batch, predict_spans=True, reranking_candidates=8)  # slower, more memory

visual prompt

# visual prompt: isolate the person SAM 3 tracked in the video
# frames: the video frames; mask: that person's masks, e.g. collected from a SAM 3 video session
# (match the frame/mask format used in the sam-audio visual-prompting example notebook)
model = SAMAudio.from_pretrained("facebook/sam-audio-large-tv").eval().cuda()   # -tv: better for visual prompts
processor = SAMAudioProcessor.from_pretrained("facebook/sam-audio-large-tv")

batch = processor(audios=["interview.mp4"], descriptions=[""],
                  masked_videos=processor.mask_videos([frames], [mask])).to("cuda")
with torch.inference_mode():
    result = model.separate(batch, reranking_candidates=1)
torchaudio.save("speaker_1.wav", result.target.cpu(), processor.audio_sampling_rate)

Calls follow Meta’s sam-audio README; the examples folder has full notebooks for each prompt type. Start with reranking_candidates=1 and raise it once everything runs.

Better together

Use SAM 3 Masks as Visual Prompts

SAM 3 finds and tracks the speaker or instrument; SAM Audio uses those masks to extract its sound.

SAM 3 + SAM Audio
Animation of SAM 3 and SAM Audio working togetherSAM 3 tracks a speaker in a video and produces a mask for every frame. The masked frames go to SAM Audio as a visual prompt, and SAM Audio returns only that speaker’s voice. SAM 3: “person”, keep id 1 SAM Audio speaker 1’s voice only the mask tells SAM Audio which on-screen source to listen to
Illustration of SAM 3 masks guiding SAM Audio.
  1. 1Track the sourcewith SAM 3: a text prompt (“person”, “drummer”) or a click.
  2. 2Keep one object IDand collect its mask on every frame.
  3. 3Pass frames + masksto SAM Audio as a visual prompt (a -tv checkpoint is best).
  4. 4Save the voiceand, if needed, the residual for a clean background track.

Getting per-frame masks: video segmentation with Python · select one object in video

Use cases

What People Use SAM Audio For

Podcast clean-up

Remove a barking dog, a siren or keyboard clicks; keep the residual.

“dog barking”

Music practice and remixes

Pull out vocals or one instrument from a band recording.

“singing voice”

Outdoor video

Filter traffic or wind out of a vlog or interview.

“traffic noise”

One speaker in a video

Click the person to isolate their voice from the room.

visual prompt

Sound effects library

Extract clean effects (doors, birds, applause) from field recordings.

text + span

Research and accessibility

Isolate speech for transcription or focus on one sound source for analysis.

“man speaking”

More ideas across the SAM family: use cases

Tips

Prompt Tips for Better Separation

DoAvoid
Short lowercase phrases: thunder, man speakingSentences like “Thunder can be heard in the background”
Add a span when the sound comes and goesRelying on text alone for a sound that appears once
Use a visual prompt when two similar sources are on screen“woman speaking” when two women are talking
Turn on span prediction and reranking for final exportsMax settings while you’re still testing prompts
Listen to the residual tooChecking only the target track

Limitations

What SAM Audio Can’t Do (Yet)

Meta lists these limits; plan around them.

  • No audio-example prompts: you can’t give a sample clip of the sound you want.
  • Needs a prompt: it won’t split a mix into all its sources automatically.
  • Very similar sounds: one singer in a choir or one instrument in an orchestra remains hard.
  • Compute: higher-quality settings need more time and GPU memory.
  • Licence: use is governed by the SAM License. General SAM limitations

Questions

SAM Audio FAQ

What is Meta SAM Audio?

SAM Audio is Meta’s Segment Anything model for sound. You describe, click or mark the sound you want, and it returns that sound on its own plus everything else as a separate track.

What prompts does SAM Audio accept?

Text (“dog barking”), visual (click or mask a person or object in a video) and time spans (mark when the sound happens). They can be combined.

Is SAM Audio free?

The code and weights are published under the SAM License; the checkpoints on Hugging Face are gated and need an access request. You can also try it free in the Segment Anything Playground.

Can SAM Audio separate every instrument automatically?

No. It isolates the sound you prompt for. It doesn’t split a mix into all its sources without a prompt.

Can I use an audio clip as the prompt?

Not currently. Meta lists audio-example prompts as a limitation.

How does SAM Audio relate to SAM 3?

They’re separate models in the same Segment Anything family. SAM 3 can create the video masks that SAM Audio uses as visual prompts.

Which model size should I use?

Large gives the best quality; small and base are lighter. The “-tv” variants are better at picking the right target sound and at visual prompting.

Keep reading