Primary Zone Detection (--primary-zone)ΒΆ
Automatically finds and extracts the main singing section from a long recording.
What is a singing zone?ΒΆ
A singing zone is a contiguous block where singing segments are close together. The primary zone is the longest/most significant zone β usually the main performance.
ExampleΒΆ
A 40-min live recording might contain:
00:00 β 05:20 π£οΈ Talking / intro
05:20 β 27:13 π΅ Main singing performance β PRIMARY ZONE
27:13 β 30:00 π£οΈ Talking / outro
30:00 β 35:00 π΅ Short bonus songs
--primary-zone crops the output to 05:20β27:13 automatically.
UsageΒΆ
praisonai-editor edit concert.mp3 \
--preset songs_only \
--detector ensemble \
--demix \
--primary-zone \
-v
Requires --demix
Primary zone detection works best with Demucs stem separation, which precisely identifies singing vs music.
How the algorithm worksΒΆ
flowchart TD
A[Classified blocks] --> B[Find all singing segments]
B --> C[Merge singing segments\nwithin 30s of each other]
C --> D[Score each zone\nby total singing duration]
D --> E[Select highest-scoring zone]
E --> F[Trim output to zone boundaries]