Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用
音频转音频Meta

SAM Audio Separate

API 文档
meta/sam-audio/separate

SAM Audio by Meta isolates any sound in a recording from a text description, such as a voice, an instrument or a dog barking. It returns the isolated target and the residual audio as separate files.

试用该模型

Playground

打开 playground
输入
Audio file or URL to process (WAV, MP3, FLAC).
Text describing the sound to isolate.
高级设置
Automatically predict the time spans where the target sound occurs.
17
Number of candidates to generate and rank (1–7). Higher improves quality but adds $0.025 per 30 s per extra candidate. 范围:1 到 7。
Output audio format.

Fill in audio, prompt to run

Per run$0.05
结果
示例
  1. 打开原始文件

示例

选择一个示例,将其输入和结果加载到 playground 中。

  • 输入
    {
      "audio": "https://static.sandbase.ai/examples/f8fec3d8-ddfe-43e2-98e6-d035d04578a2/input/3d1c2154-d87f-4d9f-b273-269231966b85.wav",
      "prompt": "piano playing"
    }
    打开结果 ↗
  • 输入
    {
      "audio": "https://static.sandbase.ai/examples/a0306d69-3764-45b0-aab8-7328daa6c9db/input/ad8e7f33-b823-4f8f-912b-c8d75fdf9d4d.mp3",
      "output_format": "wav",
      "predict_spans": true,
      "prompt": "toucan calls",
      "reranking_candidates": 3
    }
    打开结果 ↗
  • 输入
    {
      "audio": "https://static.sandbase.ai/examples/fea0c27b-e894-4d26-85e7-bdda458a9a9a/input/650c3fdd-11c3-4882-a556-848766bfc6ea.m4a",
      "predict_spans": true,
      "prompt": "person talking"
    }
    打开结果 ↗

SAM Audio Separate

SAM Audio isolates any sound you describe in text and returns it with the residual track.

Fields

FieldTypeDefaultNotes
audioaudio file or URL, required—Recording to separate (WAV, MP3, FLAC).
promptstring, required—Sound to isolate.
predict_spansbooleanfalseDetect where the target sound occurs before separating.
reranking_candidatesinteger 1–71Extra candidates improve quality; each adds $0.025 per 30 s.
output_formatwav / mp3wavOutput file format.

Output

FieldNotes
urlIsolated target sound.
residual_urlEverything else (the input minus the target).
durationOutput length in seconds.

Billing

$0.05 per started 30 seconds of output audio, plus $0.025 per 30 seconds for each extra reranking candidate. The final charge uses the measured output length; the quote uses the input length (10 minutes if it cannot be read).

AudioPrice
30 s, 1 candidate$0.05
2 min, 1 candidate$0.20
2 min, 3 candidates$0.40

Failed runs are not charged.

Prompting

  • Name the sound plainly, for example man singing or dog barking.

Also on SandBase

Related: meta/sam-audio/span-separate, meta/sam-audio/visual-separate.