Song-Analyse: eigenständiges Werkzeug und Lese-Schnittstelle in Rust

- tools/analyze + tools/song_analysis: Trennung in Stems, Takte, Akkorde, Tonhöhe und Text mit Wortzeiten
  (eigene Python-3.11-Umgebung, README, Tests)
- schemas/song-analysis-v1: JSON-Schemas der Ausgabe
- src/lib.rs, src/song_analysis.rs: liest die Ausgabe (Version 1); Integrationstest in tests/
- .gitignore: Umgebung, Modelle und Zwischenspeicher des Werkzeugs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 08:56:23 +01:00
parent 7656c8de41
commit 438266d780
17 changed files with 830 additions and 0 deletions

View File

@ -0,0 +1,48 @@
# Song-Analyse (eigenständiges Werkzeug)
Die CLI erzeugt aus einer Audiodatei einen versionierten Ausgabeordner. Die Rust-Anwendung muss dafür keine Python-Pakete laden; `src/song_analysis.rs` kann die JSON-Dateien aus dem Ordner lesen. Das Werkzeug ändert keine Charts.
## Installation
Python 3.11, `ffmpeg`, `ffprobe` und `vamp-simple-host` mit dem Vamp-Plugin **NNLS Chroma/Chordino** werden benötigt. Die Modellgewichte werden beim ersten Einsatz von den jeweiligen Bibliotheken geladen. Eine eigene virtuelle Umgebung vermeidet Konflikte mit den vorhandenen Werkzeugen:
Ein lokal gebautes `nnls-chroma.so` kann unter `tools/song_analysis/vamp/` liegen. Die Pipeline findet es dort automatisch. Der Ordner bleibt aus Git ausgeschlossen. Der [Quellcode von Chordino](https://github.com/c4dm/nnls-chroma) steht unter GPL-2.0.
```bash
uv venv --seed --python 3.11 tools/song_analysis/.venv
uv pip install --python tools/song_analysis/.venv/bin/python \
--index https://download.pytorch.org/whl/cpu \
'torch==2.5.1+cpu' 'torchaudio==2.5.1+cpu' 'torchvision==0.20.1+cpu'
tools/song_analysis/.venv/bin/pip install -r tools/song_analysis/requirements.txt
```
Auf Linux-Systemen, die bei `import whisperx` das Laden von `libctranslate2` wegen eines ausführbaren Stacks verweigern, hilft einmalig in dieser Umgebung:
```bash
tools/song_analysis/.venv/bin/patchelf --clear-execstack \
tools/song_analysis/.venv/lib/python3.11/site-packages/ctranslate2.libs/libctranslate2*.so*
```
Die obigen PyTorch-Builds laufen auf der CPU. Für GPU-Betrieb ist ein zur Grafikkarte passender PyTorch-Build nötig; die Pipeline erkennt ihn dann automatisch.
Aufruf (mit dieser Umgebung):
```bash
tools/song_analysis/.venv/bin/python tools/analyze song.mp3 --out songs/song/ --lyrics lyrics.txt
tools/song_analysis/.venv/bin/python tools/analyze song.mp3 --out songs/song/ --force
```
Optionen: `--language en` für die WhisperX-Sprache, `--whisper-model large-v3`, `--separator-bin /pfad/audio-separator`, `--model-dir /pfad/modelle`, `--roformer-model DATEI`. Wenn der BS-RoFormer bereits unter `~/AI/models/maestro/ckpts/roformer/` liegt, kann dieser Ordner mit `--model-dir` verwendet werden. Das Demucs-Modell heißt `htdemucs_ft.yaml`.
## Ablauf und Dateien
1. ffmpeg erzeugt `_cache/original.wav` mit 44,1 kHz und Stereo. Dessen Beginn ist für alle Zeiten Sekunde 0.
2. `audio-separator` trennt Vocals und Instrumental mit BS-RoFormer; `htdemucs_ft` trennt das Instrumental in Drums, Bass und Other. Die vier Stems liegen unter `stems/`. `_cache/instrumental.wav` ist ein Zwischenprodukt für Wiederaufnahmen.
3. madmom Downbeat Tracking berechnet `beats.json` und BPM. `vamp-simple-host` mit Chordino berechnet `chords.json`. Chordino liefert keine Kalibrierung der Akkordsicherheit; `conf` ist deshalb `null`.
4. torchcrepe (PyTorch-Implementierung von CREPE) liefert `pitch.json` mit 10-ms-Raster. Frequenzen unter 0,5 Konfidenz werden als 0 Hz (unvoiced) geschrieben; die tatsächliche Konfidenz bleibt in `conf`. Basic Pitch verarbeitet denselben Vocal-Stem separat für `melody.mid` und den Other-Stem für `guitar.mid`.
5. WhisperX richtet den gelieferten Text wortweise aus. Ohne `--lyrics` transkribiert WhisperX selbst, und `lyrics.json` trägt `verified: false`. Wörter ohne Zeiten werden ausgelassen. Die Zeilen entstehen aus Pausen über 0,6 s, Taktgrenzen und etwa 40 Zeichen.
6. madmom schätzt die Tonart für `meta.json`; bei fehlender Erkennung ist `key` null. Alle JSON-Dateien werden gegen `schemas/song-analysis-v1/` geprüft.
Jeder Schritt prüft seine Ausgabedateien. Ein normaler erneuter Lauf lässt vorhandene Dateien unverändert, einschließlich manueller Korrekturen. `--force` berechnet sie neu. Fehlgeschlagene Schritte stehen unter `meta.json.errors`; die CLI beendet sich dann mit Status 1. Unabhängige Schritte laufen weiter. `meta.json` wird für den aktuellen Fehlerstatus aktualisiert; seine manuell gesetzten Werte für `title`, `bpm`, `key` und `duration` bleiben ohne `--force` erhalten.
Die JSON-Strukturen haben `schema_version: 1` in `meta.json`. Alle Zeiten sind Sekunden als Fließkommazahlen. Für das Tool sind `conf: null` und fehlende Dateien mögliche Zustände. MIDI enthält normale Noten-Events; insbesondere die Gitarrentranskription ist keine Tabulatur. Die genannten Qualitätszahlen hängen stark vom Material ab und sind keine vom Werkzeug garantierten Fehlerschranken.

View File

@ -0,0 +1 @@
"""Standalone song analysis pipeline; no dependency on the Rust application."""

View File

@ -0,0 +1,184 @@
"""Adapters for the optional audio models and command-line tools."""
import json
import os
import statistics
import subprocess
import tempfile
from pathlib import Path
from .core import parse_chordino
def command(args: list[str], *, capture: bool = False, env: dict[str, str] | None = None) -> str:
try:
result = subprocess.run([str(a) for a in args], check=True, text=True,
stdout=subprocess.PIPE if capture else None,
stderr=subprocess.PIPE if capture else None, env=env)
except subprocess.CalledProcessError as exc:
message = (exc.stderr or "").strip().splitlines()
raise RuntimeError(f"{args[0]} fehlgeschlagen: {message[-1] if message else exc}") from exc
return result.stdout or ""
def duration_of(audio: Path) -> float:
result = command(["ffprobe", "-v", "error", "-show_entries", "format=duration",
"-of", "default=noprint_wrappers=1:nokey=1", audio], capture=True)
return float(result.strip())
def normalize(source: Path, target: Path, duration: float | None = None) -> None:
target.parent.mkdir(parents=True, exist_ok=True)
with tempfile.TemporaryDirectory(dir=target.parent) as tmp:
staged = Path(tmp) / "audio.wav"
args = ["ffmpeg", "-nostdin", "-y", "-v", "error", "-i", source,
"-ar", "44100", "-ac", "2"]
if duration is not None:
args += ["-af", "apad", "-t", str(duration)]
command(args + [staged])
staged.replace(target)
def separate(audio: Path, target_dir: Path, stems: list[str], model: str,
separator_bin: str, model_dir: Path | None, duration: float,
force: bool = False) -> None:
with tempfile.TemporaryDirectory(dir=target_dir.parent) as tmp:
tmpdir = Path(tmp)
args = [separator_bin, str(audio), "--model_filename", model,
"--output_dir", str(tmpdir), "--output_format", "WAV",
"--custom_output_names", json.dumps({s.title(): s for s in stems})]
if model_dir:
args += ["--model_file_dir", str(model_dir)]
command(args)
missing = [s for s in stems if not (tmpdir / f"{s}.wav").exists()]
if missing:
raise RuntimeError("Separator lieferte keine Stems: " + ", ".join(missing))
target_dir.mkdir(parents=True, exist_ok=True)
for stem in stems:
target = target_dir / f"{stem}.wav"
if force or not target.exists():
normalize(tmpdir / f"{stem}.wav", target, duration)
def detect_beats(audio: Path) -> tuple[dict, float | None]:
try:
from madmom_infer.features.downbeats import RNNDownBeatProcessor, DBNDownBeatTrackingProcessor
except ImportError:
from madmom.features.downbeats import RNNDownBeatProcessor, DBNDownBeatTrackingProcessor
activations = RNNDownBeatProcessor()(str(audio))
positions = DBNDownBeatTrackingProcessor(beats_per_bar=[3, 4], fps=100)(activations)
beats = [float(row[0]) for row in positions]
downbeats = [float(row[0]) for row in positions if int(row[1]) == 1]
gaps = [b - a for a, b in zip(beats, beats[1:]) if 0.2 <= b - a <= 2]
bpm = round(60 / statistics.median(gaps), 2) if gaps else None
return {"beats": beats, "downbeats": downbeats}, bpm
def detect_key(audio: Path) -> str:
try:
from madmom_infer.features.key import CNNKeyRecognitionProcessor, key_prediction_to_label
except ImportError:
from madmom.features.key import CNNKeyRecognitionProcessor, key_prediction_to_label
return str(key_prediction_to_label(CNNKeyRecognitionProcessor()(str(audio))))
def detect_chords(audio: Path, duration: float) -> list[dict]:
env = os.environ.copy()
local_vamp = Path(__file__).resolve().parent / "vamp"
if (local_vamp / "nnls-chroma.so").is_file():
env["VAMP_PATH"] = str(local_vamp) + (os.pathsep + env["VAMP_PATH"] if env.get("VAMP_PATH") else "")
output = command(["vamp-simple-host", "nnls-chroma:chordino:simplechord", audio], capture=True, env=env)
chords = parse_chordino(output, duration)
if not chords:
raise RuntimeError("Chordino lieferte keine Akkorde; ist das Vamp-Plugin nnls-chroma installiert?")
return chords
def detect_pitch(audio: Path) -> dict:
import numpy as np
import soundfile as sf
import torch
import torchcrepe
from scipy.signal import resample_poly
samples, rate = sf.read(audio, dtype="float32", always_2d=True)
mono = samples.mean(axis=1)
# CREPE arbeitet bei 16 kHz; scipy vermeidet eine zweite Audiodekodierung.
from math import gcd
divisor = gcd(rate, 16000)
mono = resample_poly(mono, 16000 // divisor, rate // divisor)
signal = torch.from_numpy(np.asarray(mono, dtype="float32")).unsqueeze(0)
devices = ["cuda", "cpu"] if torch.cuda.is_available() else ["cpu"]
for device in devices:
try:
hz, confidence = torchcrepe.predict(signal, 16000, hop_length=160,
fmin=50, fmax=1000, model="full",
device=device, return_periodicity=True,
batch_size=512)
break
except RuntimeError:
if device == "cpu":
raise
torch.cuda.empty_cache()
hz = hz.squeeze(0).cpu().numpy()
confidence = np.clip(confidence.squeeze(0).cpu().numpy(), 0, 1)
return {"hop_ms": 10, "hz": [round(float(f), 3) if c >= 0.5 else 0.0
for f, c in zip(hz, confidence)],
"conf": [round(float(c), 4) for c in confidence]}
def transcribe_midi(audio: Path, target: Path) -> None:
from basic_pitch.inference import predict
_, midi, _ = predict(str(audio))
with tempfile.TemporaryDirectory(dir=target.parent) as tmp:
staged = Path(tmp) / target.name
midi.write(str(staged))
staged.replace(target)
def lyrics_words(audio: Path, lyrics: Path | None, language: str,
model_name: str) -> tuple[list[dict], bool]:
import torch
import whisperx
audio_data = whisperx.load_audio(str(audio))
devices = ["cuda", "cpu"] if torch.cuda.is_available() else ["cpu"]
last_error = None
for device in devices:
try:
if lyrics:
text = " ".join(line.strip() for line in lyrics.read_text(encoding="utf-8").splitlines()
if line.strip() and not line.lstrip().startswith(("#", "[")))
if not text:
raise ValueError("Liedtext enthält keine Wörter")
segments = [{"start": 0.0, "end": len(audio_data) / 16000, "text": text}]
verified = True
else:
model = whisperx.load_model(model_name, device, compute_type="float16" if device == "cuda" else "int8")
result = model.transcribe(audio_data, batch_size=8 if device == "cuda" else 2,
language=language)
segments = result["segments"]
verified = False
del model
aligner, metadata = whisperx.load_align_model(language_code=language, device=device)
aligned = whisperx.align(segments, aligner, metadata, audio_data, device,
return_char_alignments=False)
words = []
for item in aligned.get("word_segments", []):
if "start" not in item or "end" not in item or not item.get("word", "").strip():
continue
words.append({"w": item["word"].strip(), "start": float(item["start"]),
"end": float(item["end"]),
"conf": float(item["score"]) if item.get("score") is not None else None})
if not words:
raise RuntimeError("WhisperX lieferte keine ausgerichteten Wörter")
return words, verified
except (RuntimeError, MemoryError) as exc:
last_error = exc
if device == "cuda":
torch.cuda.empty_cache()
continue
raise
raise RuntimeError(f"WhisperX fehlgeschlagen: {last_error}")

164
tools/song_analysis/cli.py Normal file
View File

@ -0,0 +1,164 @@
"""Orchestrate independent, cached analysis steps."""
import argparse
import json
import sys
from pathlib import Path
from . import backends
from .core import group_words, run_step, validate_json, validate_outputs, write_json
def resolve_separator_bin(value: str) -> str:
if value == "audio-separator":
candidate = Path(sys.executable).parent / value
if candidate.is_file():
return str(candidate)
return value
def analyze(source: Path, out: Path, lyrics: Path | None = None, *, force: bool = False,
separator_bin: str = "audio-separator", model_dir: Path | None = None,
roformer_model: str = "model_bs_roformer_ep_317_sdr_12.9755.ckpt",
language: str = "en", whisper_model: str = "large-v3") -> dict:
source = source.resolve()
if not source.is_file():
raise FileNotFoundError(source)
if lyrics and not lyrics.is_file():
raise FileNotFoundError(lyrics)
separator_bin = resolve_separator_bin(separator_bin)
out.mkdir(parents=True, exist_ok=True)
previous = {}
meta_path = out / "meta.json"
if meta_path.exists():
try:
previous = json.loads(meta_path.read_text(encoding="utf-8"))
except (OSError, ValueError):
previous = {}
errors: dict[str, str] = {}
mix = out / "_cache" / "original.wav"
run_step("normalize", [mix], lambda: backends.normalize(source, mix), errors, force)
duration = 0.0
if mix.exists():
try:
duration = backends.duration_of(mix)
except Exception as exc:
errors["duration"] = f"{type(exc).__name__}: {exc}"
stems = out / "stems"
vocals = stems / "vocals.wav"
instrumental = out / "_cache" / "instrumental.wav"
if mix.exists():
def vocal_step():
with __import__("tempfile").TemporaryDirectory(dir=out) as tmp:
temp_stems = Path(tmp)
backends.separate(mix, temp_stems, ["vocals", "instrumental"], roformer_model,
separator_bin, model_dir, duration)
stems.mkdir(exist_ok=True)
for name, target in (("vocals", vocals), ("instrumental", instrumental)):
if force or not target.exists():
(temp_stems / f"{name}.wav").replace(target)
run_step("vocals", [vocals, instrumental], vocal_step, errors, force)
# The mix supports independent beat and chord analysis even when separation fails.
beats_path = out / "beats.json"
def beats_step():
value, _ = backends.detect_beats(mix)
validate_json("beats", value)
write_json(beats_path, value)
run_step("beats", [beats_path], beats_step, errors, force)
chords_path = out / "chords.json"
def chords_step():
value = backends.detect_chords(mix, duration)
validate_json("chords", value)
write_json(chords_path, value)
run_step("chords", [chords_path], chords_step, errors, force)
if instrumental.exists():
def instrument_step():
backends.separate(instrumental, stems, ["drums", "bass", "other"],
"htdemucs_ft.yaml", separator_bin, model_dir, duration, force)
run_step("instruments", [stems / f"{s}.wav" for s in ("drums", "bass", "other")],
instrument_step, errors, force)
if vocals.exists():
pitch_path = out / "pitch.json"
def pitch_step():
value = backends.detect_pitch(vocals)
validate_json("pitch", value)
write_json(pitch_path, value)
run_step("pitch", [pitch_path], pitch_step, errors, force)
run_step("melody", [out / "melody.mid"],
lambda: backends.transcribe_midi(vocals, out / "melody.mid"), errors, force)
lyrics_path = out / "lyrics.json"
def lyrics_step():
words, verified = backends.lyrics_words(vocals, lyrics, language, whisper_model)
downbeats = []
if (out / "beats.json").exists():
try:
downbeats = json.loads((out / "beats.json").read_text(encoding="utf-8"))["downbeats"]
except (OSError, ValueError, KeyError):
pass
value = {"verified": verified, "lines": group_words(words, downbeats)}
validate_json("lyrics", value)
write_json(lyrics_path, value)
run_step("lyrics", [lyrics_path], lyrics_step, errors, force)
if (stems / "other.wav").exists():
run_step("guitar", [out / "guitar.mid"],
lambda: backends.transcribe_midi(stems / "other.wav", out / "guitar.mid"),
errors, force)
bpm = previous.get("bpm")
if (out / "beats.json").exists():
try:
beat_times = json.loads((out / "beats.json").read_text(encoding="utf-8"))["beats"]
gaps = [b - a for a, b in zip(beat_times, beat_times[1:]) if 0.2 <= b - a <= 2]
if gaps:
import statistics
bpm = round(60 / statistics.median(gaps), 2)
except (OSError, ValueError, KeyError, TypeError):
pass
if not force and previous.get("bpm") is not None:
bpm = previous["bpm"]
validate_outputs(out, errors)
key = previous.get("key")
if mix.exists() and (force or key is None):
try:
key = backends.detect_key(mix)
except Exception as exc:
errors["key"] = f"{type(exc).__name__}: {exc}"
meta = {"title": previous.get("title", source.stem) if not force else source.stem,
"bpm": bpm, "key": key,
"duration": previous.get("duration", duration) if not force and previous.get("duration", 0) > 0 else duration,
"schema_version": 1, "errors": errors}
try:
validate_json("meta", meta)
except Exception as exc:
meta["errors"]["validate_meta"] = str(exc)
write_json(meta_path, meta)
return meta
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(prog="analyze", description="Song in Stems, Beats, Akkorde, MIDI, Pitch und Wortzeiten zerlegen")
parser.add_argument("audio", type=Path)
parser.add_argument("--out", required=True, type=Path)
parser.add_argument("--lyrics", type=Path)
parser.add_argument("--force", action="store_true")
parser.add_argument("--separator-bin", default="audio-separator")
parser.add_argument("--model-dir", type=Path)
parser.add_argument("--roformer-model", default="model_bs_roformer_ep_317_sdr_12.9755.ckpt")
parser.add_argument("--language", default="en")
parser.add_argument("--whisper-model", default="large-v3")
args = parser.parse_args(argv)
try:
meta = analyze(args.audio, args.out, args.lyrics, force=args.force,
separator_bin=args.separator_bin, model_dir=args.model_dir,
roformer_model=args.roformer_model, language=args.language,
whisper_model=args.whisper_model)
except (OSError, ValueError) as exc:
parser.error(str(exc))
print(f"Ergebnis: {args.out}")
for step, message in meta["errors"].items():
print(f"{step}: {message}", file=sys.stderr)
return 1 if meta["errors"] else 0

105
tools/song_analysis/core.py Normal file
View File

@ -0,0 +1,105 @@
"""Output contract, caching and timeline utilities for song analysis."""
import json
import re
from pathlib import Path
SCHEMA_DIR = Path(__file__).resolve().parents[2] / "schemas" / "song-analysis-v1"
def write_json(path: Path, value: object) -> None:
path.parent.mkdir(parents=True, exist_ok=True)
temporary = path.with_name(path.name + ".tmp")
temporary.write_text(json.dumps(value, ensure_ascii=False, indent=2, allow_nan=False) + "\n", encoding="utf-8")
temporary.replace(path)
def run_step(name: str, outputs: list[Path], action, errors: dict[str, str], force: bool) -> bool:
"""Run an independent step; never destroy existing results on an ordinary rerun."""
if outputs and all(path.exists() for path in outputs) and not force:
return True
try:
action()
missing = [str(path) for path in outputs if not path.exists()]
if missing:
raise RuntimeError("outputs missing: " + ", ".join(missing))
errors.pop(name, None)
return True
except Exception as exc:
errors[name] = f"{type(exc).__name__}: {exc}"
return False
def group_words(words: list[dict], downbeats: list[float], max_chars: int = 40) -> list[dict]:
"""Split aligned words on long pauses, bar lines and display length."""
lines: list[dict] = []
current: list[dict] = []
downbeats = sorted(downbeats)
for word in words:
if not word.get("w") or "start" not in word or "end" not in word:
continue
if current:
prior = current[-1]
bar = any(prior["end"] < beat <= word["start"] for beat in downbeats)
length = len(" ".join(w["w"] for w in current)) + 1 + len(word["w"])
if word["start"] - prior["end"] > 0.6 or bar or length > max_chars:
lines.append({"start": current[0]["start"], "end": prior["end"], "words": current})
current = []
current.append(word)
if current:
lines.append({"start": current[0]["start"], "end": current[-1]["end"], "words": current})
return lines
_CHORD_EVENT = re.compile(r'^\s*([0-9]+(?:\.[0-9]+)?)\s*:\s*"?([^"\r\n]+?)"?\s*$')
def parse_chordino(output: str, duration: float) -> list[dict]:
events = []
for line in output.splitlines():
match = _CHORD_EVENT.match(line)
if match:
time = float(match.group(1))
chord = match.group(2).strip()
if 0 <= time < duration and chord:
events.append((time, chord))
events = sorted(set(events))
return [
{"chord": chord, "start": start, "end": end, "conf": None}
for (start, chord), end in zip(events, [e[0] for e in events[1:]] + [duration])
if end > start
]
def validate_json(kind: str, value: object) -> None:
"""Validate against the checked-in JSON Schema, plus cross-field constraints."""
schema = json.loads((SCHEMA_DIR / f"{kind}.schema.json").read_text(encoding="utf-8"))
try:
import jsonschema
except ImportError as exc:
raise RuntimeError("jsonschema fehlt: pip install -r tools/song_analysis/requirements.txt") from exc
try:
jsonschema.validate(value, schema)
except jsonschema.ValidationError as exc:
raise ValueError(f"{kind}: {exc.message}") from exc
if kind == "pitch" and len(value["hz"]) != len(value["conf"]):
raise ValueError("pitch: hz und conf haben unterschiedliche Längen")
if kind == "beats" and any(b < a for a, b in zip(value["beats"], value["beats"][1:])):
raise ValueError("beats: Zeiten sind nicht sortiert")
if kind in ("chords", "lyrics"):
spans = value if kind == "chords" else value["lines"]
if any(item["end"] < item["start"] for item in spans):
raise ValueError(f"{kind}: negativer Zeitbereich")
def validate_outputs(out: Path, errors: dict[str, str]) -> None:
for kind in ("pitch", "chords", "beats", "lyrics"):
path = out / f"{kind}.json"
if not path.exists():
continue
try:
validate_json(kind, json.loads(path.read_text(encoding="utf-8")))
except Exception as exc:
errors[f"validate_{kind}"] = str(exc)
else:
errors.pop(f"validate_{kind}", None)

View File

@ -0,0 +1,17 @@
# Python 3.11 (Basic Pitch's documented supported range ends at 3.11).
setuptools<81 # resampy/torchcrepe importieren pkg_resources
jsonschema>=4.20,<5
numpy>=1.26,<2 # TensorFlow 2.14 / Basic Pitch benötigt die NumPy-1-ABI
ml-dtypes==0.2.0 # TensorFlow 2.14 erwartet die ältere float8-ABI
torch==2.5.1
torchaudio==2.5.1
torchvision==0.20.1
transformers>=4.40,<5 # Version 5 deaktiviert PyTorch 2.5
patchelf>=0.19.1 # Repariert bei Bedarf das GNU_STACK-Flag von CTranslate2 4.4
scipy>=1.10
soundfile>=0.12
madmom-infer @ git+https://github.com/openmirlab/madmom-infer.git
torchcrepe>=0.0.24
basic-pitch>=0.4
whisperx>=3.3
audio-separator>=0.29