Skip to content

songs_only presetΒΆ

Extract only the singing/music portions from a recording. Removes speech, talking, and silence.

What it keepsΒΆ

  • Music segments (instrumental sections)
  • Singing segments (vocal melody)
  • With --demix: only pure singing (vocals separated from instruments)

UsageΒΆ

# Basic
praisonai-editor edit concert.mp3 \
  --preset songs_only \
  --detector ensemble \
  -v

# Best quality β€” with Demucs stem separation
praisonai-editor edit concert.mp3 \
  --preset songs_only \
  --detector ensemble \
  --demix \
  --primary-zone \
  -v

How content detection worksΒΆ

flowchart LR
    A[Input audio] --> B[FFmpeg stats\ndetector]
    A --> C[Demucs stem\nseparation]
    B --> D[Ensemble\ndecision]
    C --> D
    D --> E{Block type?}
    E -->|music| F[βœ… Keep]
    E -->|singing| F
    E -->|speech| G[❌ Remove]
    E -->|silence| G
    F --> H[Render output]
    G --> H

With --demix and --primary-zoneΒΆ

flowchart TD
    A[Input] --> B[Demucs separates\nvocals + instruments]
    B --> C[Classify each segment]
    C --> D[Find singing zones]
    D --> E[Identify PRIMARY zone\nlargest singing block]
    E --> F[Trim to primary zone]
    F --> G[Output: just the concert]

Install Demucs

pip install "praisonai-editor[demix]"

Python APIΒΆ

from praisonai_editor.pipeline import edit_media

result = edit_media(
    "concert.mp3",
    preset="songs_only",
    detector="ensemble",
    demix=True,
    primary_zone_only=True,
    verbose=True,
)