syncalong.vocal_separator¶
Optional vocal isolation using Meta's Demucs.
Requires the vocal-separation extra (pip install syncalong[vocal-separation]).
vocal_separator ¶
Optional vocal isolation using Meta's Demucs.
Separating vocals from the instrumental track dramatically improves alignment accuracy on studio recordings where background music would otherwise confuse the speech model.
This module is only imported when --separate-vocals is passed.
separate ¶
Run Demucs on an audio file and return the isolated vocals path.
Demucs writes to a temporary directory (removed at process exit via
atexit) and this returns the path to the produced vocals.wav.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
audio_path
|
Path
|
The mixed audio file to separate. |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to the isolated |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If Demucs exits with a non-zero status. |
FileNotFoundError
|
If no vocals file is produced. |