Compare commits
3 Commits
feat/songp
...
58ff3fe59a
| Author | SHA1 | Date | |
|---|---|---|---|
| 58ff3fe59a | |||
| c327d5c4c4 | |||
| 7bbc6b78df |
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 Stephan Wilkins / wlkns-dev
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
203
README.md
203
README.md
@ -1,57 +1,186 @@
|
||||
# songsplit
|
||||
# unmix
|
||||
|
||||
`songsplit` zerlegt Songs (Video oder Audio) in ein **Song-Paket**: getrennte Stems, Text mit Wort-/Silben-Timing, Gesangsnoten, Tempo-Map, Akkorde und Strumming-Vorschlag. Das Paket dient als Schnittstelle für Trainer-Apps und Editoren.
|
||||
Audio-Analyse-Pipeline, die Songs (Audio/Video) in strukturierte Songpacks zerlegt: getrennte Stems, Text mit Silbentiming, Noten, Tempo-Map, Akkorde und Instrumenten-Tracks für Übungs-Apps und Editoren.
|
||||
|
||||
Verbindliche Spezifikation: siehe [umsetzungskonzept.md](umsetzungskonzept.md).
|
||||
## Why unmix exists
|
||||
|
||||
## Installation & Setup
|
||||
Bestehende Audio-KI-Tools lösen meist nur ein isoliertes Einzelproblem: Demucs trennt Spuren, Whisper transkribiert Text ohne Tonhöhen, CREPE liefert unstrukturierte Rohfrequenzen und Beat-Tracker berechnen oft starre BPM-Durchschnitte.
|
||||
|
||||
Entwicklungsumgebung mit Python 3.12 und `uv`:
|
||||
Um Songs für interaktive Musiktrainer (Gesang, Gitarre, Klavier) und Editoren nutzbar zu machen, braucht man jedoch ein verlässliches, typisiertes Datenpaket, in dem Gesangszeiten (Sekunden), Rhythmus/Akkorde (Beats) und isolierte Audio-Stems exakt aufeinander abgestimmt sind. `unmix` verbindet die besten State-of-the-Art-Open-Source-KI-Modelle in einer robusten, modular gecachten Pipeline mit dem standardisierten [Songpack-Format](songpack-spec.md).
|
||||
|
||||
*Contributions:* Fehlerberichte und Feature-Wünsche sind als Issues und Pull Requests herzlich willkommen.
|
||||
|
||||
## Status
|
||||
|
||||
Version `0.1.0`. Alle Kern-Meilensteine (M0 bis M6) und die [Songpack-Spezifikation v1.0](songpack-spec.md) sind vollständig implementiert und durch eine automatisierte Testsuite (58 Tests) abgedeckt.
|
||||
|
||||
Getestet auf: Linux (CachyOS / Arch / Ubuntu, Kernel 6.13+, AMD Ryzen AI 9 / Strix Point, ROCm / CPU). Funktioniert dank standardisiertem PyTorch/Soundfile-Stack auf allen Plattformen mit Python 3.12 und `ffmpeg`.
|
||||
|
||||
## Before you use it
|
||||
|
||||
**Rechenleistung & VRAM:** Die Ausführung im Qualitätsmodus `best` nutzt speicherintensive Modelle (`htdemucs_ft`, `whisper-large-v3`, `torchcrepe-full`). Auf Systemen mit weniger als 8 GB VRAM oder bei reiner CPU-Nutzung empfiehlt sich der Modus `--quality fast` (mit Modell-Chunking) oder das gezielte Ausführen einzelner Teilstufen über `--stage <name>`.
|
||||
|
||||
**Urheberrecht & Weitergabe:** Das Weitergeben von Songpacks in der Variante `full` (inklusive getrennter Original-Audiospuren) unterliegt dem Urheberrecht der jeweiligen Musikaufnahme. Für das Weitergeben von Noten, Text und Akkorden fremder Songs steht die Variante `unmix pack <ordner> --variant data` zur Verfügung (enthält keine Audiospuren; Empfänger ordnen ihre eigene Aufnahme über `meta.audio_ref` zu).
|
||||
|
||||
**Disclaimer:** `unmix` ist ein unabhängiges Open-Source-Projekt und nicht verbunden mit den Urhebern der analysierten Musiktitel oder den Entwicklern von UltraStar Deluxe.
|
||||
|
||||
## How this was built
|
||||
|
||||
`unmix` wurde nach den Grundsätzen moderner Softwarearchitektur entwickelt:
|
||||
- Strenge Typisierung und Validierung aller Schnittstellen mittels **Pydantic v2**
|
||||
- Deterministische Hash-Invalidierung und Zwischenergebnis-Caching in `.cache/`
|
||||
- Vollständige Entkopplung von Gesangs- und Instrumentenzweig
|
||||
- Umfassende automatisierte Testabdeckung mit synthetischen, lizenzfreien Audiodaten
|
||||
- Entwickelt im Pair-Programming mit Google DeepMind Advanced Agentic Coding
|
||||
|
||||
## Install
|
||||
|
||||
Das Tool wird mit dem schnellen Python-Paketmanager `uv` installiert:
|
||||
|
||||
### Mit uv (empfohlen)
|
||||
|
||||
```bash
|
||||
# Virtuelle Umgebung erstellen und Abhängigkeiten installieren
|
||||
# Repository klonen
|
||||
git clone ssh://git@git.wlkns.org:2222/wlkns-dev/unmix.git unmix
|
||||
cd unmix
|
||||
|
||||
# Virtuelle Umgebung mit Python 3.12 erstellen und Abhängigkeiten installieren
|
||||
uv venv --python 3.12
|
||||
source .venv/bin/activate
|
||||
uv pip install -e ".[dev]"
|
||||
|
||||
# System- und Hardwareprüfung durchführen
|
||||
uv run songsplit doctor
|
||||
unmix doctor
|
||||
```
|
||||
|
||||
## CLI-Verwendung
|
||||
|
||||
```bash
|
||||
# System- und GPU-Check
|
||||
songsplit doctor
|
||||
|
||||
# Gesamte Analyse oder bestimmte Stufen ausführen
|
||||
songsplit analyze <datei> -o <ordner> [--lang de] [--stems 4|6] [--quality fast|best]
|
||||
songsplit analyze <datei> -o <ordner> --stage tracks:strumming [--force]
|
||||
|
||||
# Songpack packen und sicher entpacken
|
||||
songsplit pack <ordner> [-o <datei.songpack>] [--variant full|data]
|
||||
songsplit unpack <datei.songpack> [-o <ordner>]
|
||||
|
||||
# Export nach UltraStar (ab M2)
|
||||
songsplit export-ultrastar <ordner>
|
||||
|
||||
# Qualitätsmessung (ab M2)
|
||||
songsplit eval <testset.toml>
|
||||
```
|
||||
|
||||
## Tests
|
||||
## Requirements
|
||||
|
||||
* **Betriebssystem:** Linux, macOS oder Windows (64-Bit)
|
||||
* **Python:** Version 3.12
|
||||
* **System-Binaries:** `ffmpeg` und `ffprobe` müssen im `PATH` vorhanden sein
|
||||
* **Arbeitsspeicher:** Mindestens 8 GB RAM (16 GB+ empfohlen)
|
||||
* **Hardware-Beschleunigung (optional):** CUDA- oder ROCm-fähige GPU für schnellere Berechnungen
|
||||
|
||||
## Build and run
|
||||
|
||||
```bash
|
||||
# Tests ausführen
|
||||
uv run pytest
|
||||
|
||||
# Code-Qualität und Formatierung prüfen
|
||||
uv run ruff check
|
||||
uv run ruff format --check
|
||||
```
|
||||
|
||||
## Meilensteine
|
||||
## What it does
|
||||
|
||||
- [x] **M0 – Gerüst**: Projektstruktur, Pydantic-Schemas (`meta.json`, `tempo.json`, `vocals.json`, `chords.json`, `strumming.json`), `tempo.py` mit `sec_to_beat`/`beat_to_sec`, Pipeline-Runner mit Cache und Hash-Invalidierung, CLI-Skelett mit `doctor`, Testsuite.
|
||||
- [x] **M1 – Extraktion und Stems**: Stufen 1 (ffmpeg 44.1 kHz stereo) und 2 (Demucs `htdemucs_ft` / `htdemucs_6s`, low-VRAM chunking mit segment/shifts, `instrumental.wav` und `vocals.wav`, SNR-Prüfung).
|
||||
- [x] **M2 – Gesang**: Stufe 3 (`whisper-large-v3` + `pyphen`-Silbentrennung mit proportionalem Timing), Stufe 4 (`torchcrepe-full` mit Medianhöhe & Oktavfehler-Korrektur), UltraStar-Export (`song.txt`) & Reader, Eval-Framework mit Timing-MAE, Pitch-Genauigkeit (strikt & oktav-äquivalent) und WER via `jiwer`.
|
||||
- [x] **M3 – Tempo-Map**: Stufe 5 (`beat_this` Beat- & Downbeat-Tracking mit `librosa`-Fallback), intelligente Segmentierung (Anker nur bei echten Tempowechseln), Metronom-Klick-Track-Synthese (`.cache/click_track.wav`), BPM/GAP-Ableitung für UltraStar.
|
||||
- [x] **M4 – Akkorde**: Stufe 6 (Harte-Notation, Beat-synchrone Quantisierung über Tempo-Map, `chordino` & `template` Backends, Tonarterkennung nach Krumhansl-Schmuckler in `meta.json`).
|
||||
- [x] **M5 – Strumming**: Stufe 7 (Onset-Erkennung auf Gitarren-/Instrumental-Stem, Spektralschwerpunkt- & Beatphasen-Gradient für Down/Up-Richtungsvorschlag, Beat-Raster-Quantisierung, Muster-Verdichtung `D . D U . U D U`, als `experimental` markiert).
|
||||
- [x] **M6 – Härtung**: Fehlerbehandlung, strukturiertes Logging, Formatspezifikation ([docs/format.md](docs/format.md)), lizenzfreies synthetisches Beispielpaket ([examples/demo_song/](examples/demo_song/)).
|
||||
`unmix` nimmt eine Musikdatei (Audio oder Video) entgegen und erzeugt daraus ein vollständiges, validiertes **Songpack** (als Ordner oder komprimiertes `.songpack`-Archiv).
|
||||
|
||||
### Core Features
|
||||
|
||||
| Feature | Description |
|
||||
| :--- | :--- |
|
||||
| **Stem-Trennung (Demucs)** | Extrahiert 4 oder 6 Spuren (`vocals`, `drums`, `bass`, `other`, `guitar`, `piano`) und berechnet das Summen-Playback `instrumental.wav`. |
|
||||
| **Lyrics & Silben-Timing** | Whisper-Transkription mit VAD und Wort-Timestamps; Silbentrennung via `pyphen` mit proportionaler Zeitverteilung und Wortgrenzen. |
|
||||
| **Tonhöhenerkennung (CREPE)** | Frame-genaue F0-Extraktion mit Hop-Size 10 ms, Medianberechnung pro Silbe, Voicing-Filterung und Oktavfehler-Korrektur. |
|
||||
| **Tempo-Map & Beat-Grid** | Beat- und Downbeat-Tracking (`beat_this`), Erkennung von Taktarten (4/4, 3/4, 6/8) und Synthese von Metronom-Klickspuren. |
|
||||
| **Akkorderkennung** | Harte-Notation (`C`, `Am`, `G7`, `Dsus4`), Quantisierung auf das Beat-Raster und Tonarterkennung (Krumhansl-Schmuckler). |
|
||||
| **Instrumenten-Tracks (Strumming)** | Erkennung von Anschlägen (Onsets) auf der Gitarrenspur, Down/Up-Richtungsvorschlag und Muster-Kompression (`D . D U . U D U`). |
|
||||
| **UltraStar Deluxe Export** | Erzeugt spielbereite `song.txt`-Dateien für Karaoke- und Übungssoftware (`export/song.txt`). |
|
||||
| **Sicherer Songpack-Container** | Packt und entpackt `.songpack`-Container mit Whitelist-Filterung, Pfadtraversierungs- und Zip-Bomben-Schutz. |
|
||||
|
||||
## How it works
|
||||
|
||||
Die Pipeline ist modular aufgebaut und in zwei parallele Stränge unterteilt:
|
||||
|
||||
```
|
||||
[ Audio- / Videodatei ]
|
||||
│
|
||||
Stufe 1: Extraktion (ffmpeg)
|
||||
│
|
||||
Stufe 2: Stems (Demucs v4)
|
||||
┌────────────┴────────────┐
|
||||
▼ ▼
|
||||
[ Gesangszweig ] [ Instrumentenzweig ]
|
||||
│ │
|
||||
Stufe 3: Lyrics Stufe 5: Tempo-Map
|
||||
(Whisper + Pyphen) (beat_this)
|
||||
│ │
|
||||
Stufe 4: Pitch Stufe 6: Akkorde
|
||||
(torchcrepe) (Chordino / Template)
|
||||
│ │
|
||||
│ Stufe 7: Instrumenten-Tracks
|
||||
│ (Strumming: Onsets + Grid)
|
||||
└────────────┬────────────┘
|
||||
▼
|
||||
[ Songpack v1.0 / Export ]
|
||||
manifest.json, meta.json, tempo.json,
|
||||
vocals.json, chords.json, tracks/guitar.json,
|
||||
stems/, export/song.txt
|
||||
```
|
||||
|
||||
Jede Stufe prüft vor der Ausführung, ob die Eingangsdaten und Parameter unverändert sind, und lädt das Ergebnis bei Bedarf blitzschnell aus dem `.cache/`.
|
||||
|
||||
## How to use / CLI & Configuration
|
||||
|
||||
Nach der Installation steht der CLI-Befehl `unmix` bereit:
|
||||
|
||||
### 1. Systemdiagnose
|
||||
```bash
|
||||
unmix doctor
|
||||
```
|
||||
|
||||
### 2. Gesamte Analyse ausführen
|
||||
```bash
|
||||
# Standardanalyse (beste Qualität, 4 Stems, deutsche Sprache)
|
||||
unmix analyze song.mp3 -o output_song/ --lang de
|
||||
|
||||
# Schnelle Analyse mit 6 Stems
|
||||
unmix analyze song.mp4 -o output_song/ --stems 6 --quality fast --lang en
|
||||
```
|
||||
|
||||
### 3. Gezielte Teilstufen ausführen
|
||||
```bash
|
||||
# Nur Akkorderkennung und deren Voraussetzungen rechnen
|
||||
unmix analyze song.mp3 -o output_song/ --stage chords
|
||||
|
||||
# Nur den Gitarren-Strumming-Track neu berechnen (ignoriert Cache mit --force)
|
||||
unmix analyze song.mp3 -o output_song/ --stage tracks:strumming --force
|
||||
```
|
||||
|
||||
### 4. Songpack packen und sicher entpacken
|
||||
```bash
|
||||
# Song-Ordner als vollständiges .songpack packen (inkl. Stems)
|
||||
unmix pack output_song/ -o my_song.songpack
|
||||
|
||||
# Nur Noten und Metadaten packen (ohne urheberrechtlich geschützte Audiodateien)
|
||||
unmix pack output_song/ -o my_song_data.songpack --variant data
|
||||
|
||||
# .songpack-Archiv mit Sicherheitsprüfungen entpacken
|
||||
unmix unpack my_song.songpack -o unpacked_song/
|
||||
```
|
||||
|
||||
### 5. UltraStar-Export & Qualitäts-Benchmarks
|
||||
```bash
|
||||
# UltraStar-Datei export/song.txt aktualisieren
|
||||
unmix export-ultrastar output_song/
|
||||
|
||||
# Evaluierungs-Benchmark gegen Referenzdaten laufen lassen
|
||||
unmix eval testset.toml
|
||||
```
|
||||
|
||||
## References & Links
|
||||
|
||||
* **[Songpack-Spezifikation](songpack-spec.md)** – Vollständige Spezifikation des Songpack-Containers v1.0.
|
||||
* **[Format-Dokumentation](docs/format.md)** – Detaillierte Felderklärung aller JSON-Schemas.
|
||||
* **[Demucs](https://github.com/facebookresearch/demucs)** – State-of-the-Art Musikquellentrennung (Meta Research).
|
||||
* **[faster-whisper](https://github.com/SYSTRAN/faster-whisper)** – Schnelle Sprach- und Texterkennung mit CTranslate2.
|
||||
* **[torchcrepe](https://github.com/maxrmorrison/torchcrepe)** – Neuronale Tonhöhenerkennung (CREPE in PyTorch).
|
||||
* **[beat_this](https://github.com/CPJKU/beat_this)** – Modernes Transformer-basiertes Beat- und Downbeat-Tracking.
|
||||
* **[UltraStar Deluxe](https://usdx.eu/)** – Offenes Karaoke-Format und Spiel.
|
||||
|
||||
## License
|
||||
|
||||
Der Quellcode von `unmix` steht unter der [MIT-Lizenz](LICENSE).
|
||||
|
||||
Die verwendeten Drittanbieter-Modelle und Bibliotheken (Demucs, Whisper, CREPE, librosa, Pyphen) unterliegen ihren jeweiligen Lizenzen (MIT, Apache-2.0, BSD, LGPL).
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Song-Paket Format Spezifikation (v1.0)
|
||||
|
||||
Dieses Dokument definiert das Dateiformat des **Song-Pakets** als verbindliche Schnittstelle zwischen der Analyse-Pipeline (`songsplit`) und nachgelagerten Anwendungen (z. B. der Rust-Gesangstrainer-App und Editoren).
|
||||
Dieses Dokument definiert das Dateiformat des **Song-Pakets** als verbindliche Schnittstelle zwischen der Analyse-Pipeline (`unmix`) und nachgelagerten Anwendungen (z. B. der Rust-Gesangstrainer-App und Editoren).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -3,9 +3,9 @@
|
||||
"schema_version": "1.0",
|
||||
"id": "88fa27d4-d39f-4eae-8b15-14585248a1c9",
|
||||
"created": "2026-11-02T11:16:09.795264+00:00",
|
||||
"modified": "2026-11-02T11:21:17.734955+00:00",
|
||||
"modified": "2026-11-02T13:41:47.130704+00:00",
|
||||
"generator": {
|
||||
"name": "songsplit",
|
||||
"name": "unmix",
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"variant": "full",
|
||||
@ -108,14 +108,6 @@
|
||||
"size": 529244,
|
||||
"stem": "vocals"
|
||||
},
|
||||
{
|
||||
"path": "tracks/guitar.json",
|
||||
"role": "track",
|
||||
"schema_version": "1.0",
|
||||
"sha256": "64f072e2bb2d17cca3ea18798d3c9448089f204e3ef40b04fab1ab8203b1eeea",
|
||||
"size": 1091,
|
||||
"stem": null
|
||||
},
|
||||
{
|
||||
"path": "export/song.txt",
|
||||
"role": "ultrastar",
|
||||
@ -123,6 +115,14 @@
|
||||
"sha256": "1989999030e4d14bd7feee99899cf0eedc7efd0b2dcd0edbefb529e664230dc4",
|
||||
"size": 152,
|
||||
"stem": null
|
||||
},
|
||||
{
|
||||
"path": "tracks/guitar.json",
|
||||
"role": "track",
|
||||
"schema_version": "1.0",
|
||||
"sha256": "64f072e2bb2d17cca3ea18798d3c9448089f204e3ef40b04fab1ab8203b1eeea",
|
||||
"size": 1091,
|
||||
"stem": null
|
||||
}
|
||||
],
|
||||
"stages": {}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[project]
|
||||
name = "songsplit"
|
||||
name = "unmix"
|
||||
version = "0.1.0"
|
||||
description = "Song-Paket Audioanalyse-Pipeline (Stems, Lyrics, Vocals, Tempo, Chords, Strumming)"
|
||||
readme = "README.md"
|
||||
@ -30,14 +30,15 @@ dev = [
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
songsplit = "songsplit.cli:app"
|
||||
unmix = "unmix.cli:app"
|
||||
songsplit = "unmix.cli:app"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/songsplit"]
|
||||
packages = ["src/unmix"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
||||
@ -53,7 +53,7 @@ Der Ordner `.cache/` (Zwischenergebnisse der Pipeline) gehört nicht zum Songpac
|
||||
"id": "5f0c9b0e-3c1e-4a56-9b8c-1d7f6c2a9a10",
|
||||
"created": "2026-11-02T11:40:00+01:00",
|
||||
"modified": "2026-11-02T11:55:12+01:00",
|
||||
"generator": {"name": "songsplit", "version": "0.1.0"},
|
||||
"generator": {"name": "unmix", "version": "0.1.0"},
|
||||
"variant": "full",
|
||||
"audio_included": true,
|
||||
"license": null,
|
||||
@ -369,7 +369,7 @@ Fehler verhindern das Laden, Warnungen werden in der Oberfläche angezeigt.
|
||||
## 14. Versionierung
|
||||
|
||||
- Minor-Erhöhung = nur neue optionale Felder. Alte Leser funktionieren weiter.
|
||||
- Major-Erhöhung = inkompatible Änderung. Das Analyse-Tool bietet `songsplit migrate` für ältere Songpacks an.
|
||||
- Major-Erhöhung = inkompatible Änderung. Das Analyse-Tool bietet `unmix migrate` für ältere Songpacks an.
|
||||
- Die Schema-Version steht pro Datei, damit sich Dateien unabhängig weiterentwickeln können.
|
||||
|
||||
## 15. Offene Punkte
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
"""songsplit: Audio analysis pipeline for song package decomposition."""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
@ -1,6 +0,0 @@
|
||||
"""Evaluation package."""
|
||||
|
||||
from songsplit.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||
from songsplit.eval.run_eval import run_evaluation
|
||||
|
||||
__all__ = ["evaluate_vocals", "normalize_text_for_wer", "run_evaluation"]
|
||||
3
src/unmix/__init__.py
Normal file
3
src/unmix/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
"""unmix: Audio analysis pipeline for song package decomposition."""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
@ -1,4 +1,4 @@
|
||||
"""CLI interface for songsplit."""
|
||||
"""CLI interface for unmix."""
|
||||
|
||||
import json
|
||||
import shutil
|
||||
@ -10,18 +10,38 @@ import typer
|
||||
from rich.console import Console
|
||||
from rich.table import Table
|
||||
|
||||
from songsplit import __version__
|
||||
from songsplit.config import config
|
||||
from songsplit.pipeline import PipelineContext, get_default_pipeline
|
||||
from unmix import __version__
|
||||
from unmix.config import config
|
||||
from unmix.pipeline import PipelineContext, get_default_pipeline
|
||||
|
||||
app = typer.Typer(
|
||||
name="songsplit",
|
||||
name="unmix",
|
||||
help="Audio analysis pipeline decomposing songs into song packages.",
|
||||
add_completion=False,
|
||||
)
|
||||
console = Console(stderr=True)
|
||||
|
||||
|
||||
def version_callback(value: bool) -> None:
|
||||
if value:
|
||||
print(f"unmix v{__version__}")
|
||||
raise typer.Exit()
|
||||
|
||||
|
||||
@app.callback()
|
||||
def main(
|
||||
version: bool | None = typer.Option(
|
||||
None,
|
||||
"--version",
|
||||
"-v",
|
||||
help="Show version and exit.",
|
||||
callback=version_callback,
|
||||
is_eager=True,
|
||||
),
|
||||
) -> None:
|
||||
"""Audio analysis pipeline decomposing songs into song packages."""
|
||||
|
||||
|
||||
@app.command()
|
||||
def analyze(
|
||||
file: Path = typer.Argument(..., help="Path to input audio or video file", exists=True, readable=True),
|
||||
@ -65,7 +85,7 @@ def export_ultrastar_cmd(
|
||||
song_dir: Path = typer.Argument(..., help="Song-Paket directory to export", exists=True),
|
||||
) -> None:
|
||||
"""Export an existing Song-Paket directory to UltraStar song.txt."""
|
||||
from songsplit.export.ultrastar import export_ultrastar
|
||||
from unmix.export.ultrastar import export_ultrastar
|
||||
|
||||
res = export_ultrastar(song_dir)
|
||||
print(str(res))
|
||||
@ -76,7 +96,7 @@ def eval_cmd(
|
||||
testset_config: Path = typer.Argument(..., help="Path to testset.toml", exists=True),
|
||||
) -> None:
|
||||
"""Run quality benchmarks against UltraStar ground-truth references."""
|
||||
from songsplit.eval.run_eval import run_evaluation
|
||||
from unmix.eval.run_eval import run_evaluation
|
||||
|
||||
run_evaluation(testset_config)
|
||||
|
||||
@ -90,7 +110,7 @@ def pack_cmd(
|
||||
),
|
||||
) -> None:
|
||||
"""Pack a songpack directory into a .songpack archive."""
|
||||
from songsplit.container import pack_songpack
|
||||
from unmix.container import pack_songpack
|
||||
|
||||
res = pack_songpack(song_dir, output_path=output, variant=variant) # type: ignore[arg-type]
|
||||
print(str(res))
|
||||
@ -102,7 +122,7 @@ def unpack_cmd(
|
||||
output_dir: Path | None = typer.Option(None, "-o", "--output", help="Destination folder for unpacked songpack"),
|
||||
) -> None:
|
||||
"""Securely unpack a .songpack archive into a song directory."""
|
||||
from songsplit.container import unpack_songpack
|
||||
from unmix.container import unpack_songpack
|
||||
|
||||
dest = output_dir or songpack_file.with_suffix("")
|
||||
res = unpack_songpack(songpack_file, dest)
|
||||
@ -112,7 +132,7 @@ def unpack_cmd(
|
||||
@app.command()
|
||||
def doctor() -> None:
|
||||
"""Check environment, ffmpeg installation, GPUs, and PyTorch availability."""
|
||||
table = Table(title=f"songsplit v{__version__} Doctor System Check")
|
||||
table = Table(title=f"unmix v{__version__} Doctor System Check")
|
||||
table.add_column("Component", style="cyan", no_wrap=True)
|
||||
table.add_column("Status", style="bold")
|
||||
table.add_column("Details", style="white")
|
||||
@ -1,4 +1,4 @@
|
||||
"""Configuration management for songsplit (devices, models, paths)."""
|
||||
"""Configuration management for unmix (devices, models, paths)."""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
@ -11,21 +11,21 @@ class Config(BaseModel):
|
||||
|
||||
models_cache_dir: Path = Field(
|
||||
default_factory=lambda: Path(
|
||||
os.getenv("SONGSPLIT_MODELS_DIR", Path.home() / ".cache" / "songsplit" / "models")
|
||||
os.getenv("UNMIX_MODELS_DIR", Path.home() / ".cache" / "unmix" / "models")
|
||||
).expanduser()
|
||||
)
|
||||
|
||||
default_device: str = Field(default_factory=lambda: os.getenv("SONGSPLIT_DEFAULT_DEVICE", "cuda:0"))
|
||||
default_device: str = Field(default_factory=lambda: os.getenv("UNMIX_DEFAULT_DEVICE", "cuda:0"))
|
||||
|
||||
stage_devices: dict[str, str] = Field(
|
||||
default_factory=lambda: {
|
||||
"s1_extract": os.getenv("SONGSPLIT_DEVICE_S1", "cpu"),
|
||||
"s2_stems": os.getenv("SONGSPLIT_DEVICE_S2", "cuda:0"),
|
||||
"s3_lyrics": os.getenv("SONGSPLIT_DEVICE_S3", "cuda:0"),
|
||||
"s4_pitch": os.getenv("SONGSPLIT_DEVICE_S4", "cuda:0"),
|
||||
"s5_tempo": os.getenv("SONGSPLIT_DEVICE_S5", "cpu"),
|
||||
"s6_chords": os.getenv("SONGSPLIT_DEVICE_S6", "cpu"),
|
||||
"s7_strumming": os.getenv("SONGSPLIT_DEVICE_S7", "cpu"),
|
||||
"s1_extract": os.getenv("UNMIX_DEVICE_S1", "cpu"),
|
||||
"s2_stems": os.getenv("UNMIX_DEVICE_S2", "cuda:0"),
|
||||
"s3_lyrics": os.getenv("UNMIX_DEVICE_S3", "cuda:0"),
|
||||
"s4_pitch": os.getenv("UNMIX_DEVICE_S4", "cuda:0"),
|
||||
"s5_tempo": os.getenv("UNMIX_DEVICE_S5", "cpu"),
|
||||
"s6_chords": os.getenv("UNMIX_DEVICE_S6", "cpu"),
|
||||
"s7_strumming": os.getenv("UNMIX_DEVICE_S7", "cpu"),
|
||||
}
|
||||
)
|
||||
|
||||
@ -14,10 +14,10 @@ from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
from typing import Literal
|
||||
|
||||
from songsplit.pipeline.runner import compute_file_sha256
|
||||
from songsplit.schema.manifest import ManifestDocument, ManifestFileInfo
|
||||
from unmix.pipeline.runner import compute_file_sha256
|
||||
from unmix.schema.manifest import ManifestDocument, ManifestFileInfo
|
||||
|
||||
logger = logging.getLogger("songsplit.container")
|
||||
logger = logging.getLogger("unmix.container")
|
||||
|
||||
# Security limits according to Section 12
|
||||
MAX_ENTRIES = 64
|
||||
6
src/unmix/eval/__init__.py
Normal file
6
src/unmix/eval/__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
"""Evaluation package."""
|
||||
|
||||
from unmix.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||
from unmix.eval.run_eval import run_evaluation
|
||||
|
||||
__all__ = ["evaluate_vocals", "normalize_text_for_wer", "run_evaluation"]
|
||||
@ -6,8 +6,8 @@ from typing import Any
|
||||
import jiwer
|
||||
import numpy as np
|
||||
|
||||
from songsplit.export.ultrastar import UltraStarSong
|
||||
from songsplit.schema.vocals import VocalsDocument
|
||||
from unmix.export.ultrastar import UltraStarSong
|
||||
from unmix.schema.vocals import VocalsDocument
|
||||
|
||||
|
||||
def normalize_text_for_wer(text: str) -> str:
|
||||
@ -6,10 +6,10 @@ import tomllib
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from songsplit.eval.metrics import evaluate_vocals
|
||||
from songsplit.export.ultrastar import parse_ultrastar
|
||||
from songsplit.pipeline import PipelineContext, get_default_pipeline
|
||||
from songsplit.schema.vocals import VocalsDocument
|
||||
from unmix.eval.metrics import evaluate_vocals
|
||||
from unmix.export.ultrastar import parse_ultrastar
|
||||
from unmix.pipeline import PipelineContext, get_default_pipeline
|
||||
from unmix.schema.vocals import VocalsDocument
|
||||
|
||||
|
||||
def run_evaluation(testset_config: Path, output_report_dir: Path | None = None) -> dict[str, Any]:
|
||||
@ -68,7 +68,7 @@ def run_evaluation(testset_config: Path, output_report_dir: Path | None = None)
|
||||
|
||||
# Generate Markdown Report
|
||||
md_lines = [
|
||||
"# songsplit Evaluationsbericht (Eval Report)",
|
||||
"# unmix Evaluationsbericht (Eval Report)",
|
||||
"",
|
||||
f"Konfiguration: `{testset_config.name}`",
|
||||
f"Getestete Songs: {len(results)}",
|
||||
@ -1,5 +1,5 @@
|
||||
"""Export modules."""
|
||||
|
||||
from songsplit.export.ultrastar import UltraStarNote, UltraStarSong, export_ultrastar, parse_ultrastar
|
||||
from unmix.export.ultrastar import UltraStarNote, UltraStarSong, export_ultrastar, parse_ultrastar
|
||||
|
||||
__all__ = ["export_ultrastar", "parse_ultrastar", "UltraStarSong", "UltraStarNote"]
|
||||
@ -16,10 +16,10 @@ import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
from songsplit.schema.meta import MetaDocument
|
||||
from songsplit.schema.tempo import TempoDocument
|
||||
from songsplit.schema.vocals import VocalsDocument
|
||||
from songsplit.tempo import sec_to_beat
|
||||
from unmix.schema.meta import MetaDocument
|
||||
from unmix.schema.tempo import TempoDocument
|
||||
from unmix.schema.vocals import VocalsDocument
|
||||
from unmix.tempo import sec_to_beat
|
||||
|
||||
|
||||
def export_ultrastar(song_dir: Path) -> Path:
|
||||
@ -1,17 +1,17 @@
|
||||
"""Pipeline stages and runner."""
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||
from songsplit.pipeline.s1_extract import ExtractStage
|
||||
from songsplit.pipeline.s2_stems import StemsStage
|
||||
from songsplit.pipeline.s3_lyrics import LyricsStage
|
||||
from songsplit.pipeline.s4_pitch import PitchStage
|
||||
from songsplit.pipeline.s5_tempo import TempoStage
|
||||
from songsplit.pipeline.s6_chords import ChordsStage
|
||||
from songsplit.pipeline.s7_strumming import StrummingStage
|
||||
from unmix.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||
from unmix.pipeline.s1_extract import ExtractStage
|
||||
from unmix.pipeline.s2_stems import StemsStage
|
||||
from unmix.pipeline.s3_lyrics import LyricsStage
|
||||
from unmix.pipeline.s4_pitch import PitchStage
|
||||
from unmix.pipeline.s5_tempo import TempoStage
|
||||
from unmix.pipeline.s6_chords import ChordsStage
|
||||
from unmix.pipeline.s7_strumming import StrummingStage
|
||||
|
||||
|
||||
def get_default_pipeline() -> PipelineRunner:
|
||||
"""Instantiate the default 7-stage songsplit pipeline."""
|
||||
"""Instantiate the default 7-stage unmix pipeline."""
|
||||
return PipelineRunner(
|
||||
[
|
||||
ExtractStage(),
|
||||
@ -9,9 +9,9 @@ from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from songsplit.schema.meta import MetaDocument, ModelInfo, SourceFileInfo
|
||||
from unmix.schema.meta import MetaDocument, ModelInfo, SourceFileInfo
|
||||
|
||||
logger = logging.getLogger("songsplit.pipeline")
|
||||
logger = logging.getLogger("unmix.pipeline")
|
||||
|
||||
|
||||
def compute_file_sha256(file_path: Path, chunk_size: int = 65536) -> str:
|
||||
@ -311,7 +311,7 @@ class PipelineRunner:
|
||||
ctx.save_meta(meta)
|
||||
|
||||
try:
|
||||
from songsplit.container import build_manifest_for_dir
|
||||
from unmix.container import build_manifest_for_dir
|
||||
|
||||
manifest = build_manifest_for_dir(ctx.output_dir)
|
||||
(ctx.output_dir / "manifest.json").write_text(manifest.model_dump_json(indent=2), encoding="utf-8")
|
||||
@ -6,7 +6,7 @@ import subprocess
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
from unmix.pipeline.runner import PipelineContext, Stage
|
||||
|
||||
|
||||
def get_audio_duration(file_path: Path) -> float:
|
||||
@ -7,8 +7,8 @@ import julius
|
||||
import soundfile as sf
|
||||
import torch
|
||||
|
||||
from songsplit.config import config
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
from unmix.config import config
|
||||
from unmix.pipeline.runner import PipelineContext, Stage
|
||||
|
||||
|
||||
class StemsStage(Stage):
|
||||
@ -7,8 +7,8 @@ from typing import Any
|
||||
|
||||
import pyphen
|
||||
|
||||
from songsplit.config import config
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
from unmix.config import config
|
||||
from unmix.pipeline.runner import PipelineContext, Stage
|
||||
|
||||
|
||||
def hyphenate_word(word_text: str, dic: pyphen.Pyphen) -> list[str]:
|
||||
@ -8,10 +8,10 @@ import numpy as np
|
||||
import soundfile as sf
|
||||
import torch
|
||||
|
||||
from songsplit.config import config
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
from songsplit.schema.base import GeneratedBy
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.config import config
|
||||
from unmix.pipeline.runner import PipelineContext, Stage
|
||||
from unmix.schema.base import GeneratedBy
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
|
||||
|
||||
def hz_to_midi(hz: np.ndarray) -> np.ndarray:
|
||||
@ -238,7 +238,7 @@ class PitchStage(Stage):
|
||||
|
||||
# Write optional vocals_f0.json per Section 6
|
||||
try:
|
||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
||||
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||
|
||||
hop_sec = hop_length / crepe_sr
|
||||
f0_hz: list[float | None] = [
|
||||
@ -5,10 +5,10 @@ from typing import Any
|
||||
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.config import config
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
from songsplit.schema.base import GeneratedBy
|
||||
from songsplit.tempo import build_tempo_map_from_beats, generate_click_track
|
||||
from unmix.config import config
|
||||
from unmix.pipeline.runner import PipelineContext, Stage
|
||||
from unmix.schema.base import GeneratedBy
|
||||
from unmix.tempo import build_tempo_map_from_beats, generate_click_track
|
||||
|
||||
|
||||
class TempoStage(Stage):
|
||||
@ -9,11 +9,11 @@ import librosa
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
from songsplit.schema.base import GeneratedBy
|
||||
from songsplit.schema.chords import ChordEvent, ChordsDocument
|
||||
from songsplit.schema.tempo import TempoDocument
|
||||
from songsplit.tempo import beat_to_sec, sec_to_beat
|
||||
from unmix.pipeline.runner import PipelineContext, Stage
|
||||
from unmix.schema.base import GeneratedBy
|
||||
from unmix.schema.chords import ChordEvent, ChordsDocument
|
||||
from unmix.schema.tempo import TempoDocument
|
||||
from unmix.tempo import beat_to_sec, sec_to_beat
|
||||
|
||||
PITCH_CLASSES = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
|
||||
|
||||
@ -200,7 +200,7 @@ class ChordsStage(Stage):
|
||||
chroma = librosa.feature.chroma_cqt(y=mono_audio, sr=sr)
|
||||
detected_key_str = estimate_key(chroma.mean(axis=1))
|
||||
|
||||
from songsplit.schema.meta import KeyInfo
|
||||
from unmix.schema.meta import KeyInfo
|
||||
|
||||
if detected_key_str.endswith("m"):
|
||||
key_tonic = detected_key_str[:-1]
|
||||
@ -1,6 +1,6 @@
|
||||
"""Stage 7: Strumming pattern analysis -> tracks/guitar.json (wrapper for s7_tracks/strumming)."""
|
||||
|
||||
from songsplit.pipeline.s7_tracks.strumming import (
|
||||
from unmix.pipeline.s7_tracks.strumming import (
|
||||
StrummingTrackStage,
|
||||
aggregate_strum_patterns,
|
||||
estimate_strum_direction,
|
||||
@ -1,5 +1,5 @@
|
||||
"""Instrument track stages (tracks/<name>.json)."""
|
||||
|
||||
from songsplit.pipeline.s7_tracks.strumming import StrummingTrackStage
|
||||
from unmix.pipeline.s7_tracks.strumming import StrummingTrackStage
|
||||
|
||||
__all__ = ["StrummingTrackStage"]
|
||||
@ -8,11 +8,11 @@ import librosa
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext, Stage
|
||||
from songsplit.schema.base import GeneratedBy
|
||||
from songsplit.schema.tempo import TempoDocument
|
||||
from songsplit.schema.tracks import StrumDirection, StrumEvent, StrumGrid, StrumPattern, TrackDocument
|
||||
from songsplit.tempo import sec_to_beat
|
||||
from unmix.pipeline.runner import PipelineContext, Stage
|
||||
from unmix.schema.base import GeneratedBy
|
||||
from unmix.schema.tempo import TempoDocument
|
||||
from unmix.schema.tracks import StrumDirection, StrumEvent, StrumGrid, StrumPattern, TrackDocument
|
||||
from unmix.tempo import sec_to_beat
|
||||
|
||||
|
||||
def estimate_strum_direction(
|
||||
@ -1,8 +1,8 @@
|
||||
"""Songpack data schemas."""
|
||||
|
||||
from songsplit.schema.base import DataSource, EditableItem, GeneratedBy, SongPackageBase
|
||||
from songsplit.schema.chords import ChordEvent, ChordsDocument
|
||||
from songsplit.schema.manifest import (
|
||||
from unmix.schema.base import DataSource, EditableItem, GeneratedBy, SongPackageBase
|
||||
from unmix.schema.chords import ChordEvent, ChordsDocument
|
||||
from unmix.schema.manifest import (
|
||||
FileRole,
|
||||
GeneratorInfo,
|
||||
ManifestDocument,
|
||||
@ -11,7 +11,7 @@ from songsplit.schema.manifest import (
|
||||
StageStatus,
|
||||
StemName,
|
||||
)
|
||||
from songsplit.schema.meta import (
|
||||
from unmix.schema.meta import (
|
||||
AudioRefInfo,
|
||||
CapoSuggestion,
|
||||
KeyInfo,
|
||||
@ -19,11 +19,11 @@ from songsplit.schema.meta import (
|
||||
ModelInfo,
|
||||
SourceFileInfo,
|
||||
)
|
||||
from songsplit.schema.strumming import StrumDirection, StrumEvent, StrummingDocument, StrumPattern
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument, TimeSignatureEntry
|
||||
from songsplit.schema.tracks import DrumEvent, DrumPiece, NoteEvent, TrackDocument, TrackKind
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
||||
from unmix.schema.strumming import StrumDirection, StrumEvent, StrummingDocument, StrumPattern
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument, TimeSignatureEntry
|
||||
from unmix.schema.tracks import DrumEvent, DrumPiece, NoteEvent, TrackDocument, TrackKind
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||
|
||||
# Backward compatibility alias
|
||||
TimeSignature = TimeSignatureEntry
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
from pydantic import ConfigDict, Field
|
||||
|
||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
||||
from unmix.schema.base import EditableItem, SongPackageBase
|
||||
|
||||
|
||||
class ChordEvent(EditableItem):
|
||||
@ -35,7 +35,7 @@ class GeneratorInfo(BaseModel):
|
||||
|
||||
model_config = ConfigDict(extra="ignore")
|
||||
|
||||
name: str = "songsplit"
|
||||
name: str = "unmix"
|
||||
version: str = "0.1.0"
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ from typing import Literal
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
from songsplit.schema.base import SongPackageBase
|
||||
from unmix.schema.base import SongPackageBase
|
||||
|
||||
|
||||
class SourceFileInfo(BaseModel):
|
||||
@ -1,6 +1,6 @@
|
||||
"""Backward-compatible re-export of strumming types from tracks."""
|
||||
|
||||
from songsplit.schema.tracks import (
|
||||
from unmix.schema.tracks import (
|
||||
StrumDirection,
|
||||
StrumEvent,
|
||||
StrumGrid,
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
from pydantic import ConfigDict, Field
|
||||
|
||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
||||
from unmix.schema.base import EditableItem, SongPackageBase
|
||||
|
||||
|
||||
class TempoAnchor(EditableItem):
|
||||
@ -4,7 +4,7 @@ from typing import Any, Literal
|
||||
|
||||
from pydantic import ConfigDict, Field
|
||||
|
||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
||||
from unmix.schema.base import EditableItem, SongPackageBase
|
||||
|
||||
TrackKind = Literal["strumming", "notes", "drums"]
|
||||
StrumDirection = Literal["down", "up", "mute", "unknown"]
|
||||
@ -4,7 +4,7 @@ from typing import Literal
|
||||
|
||||
from pydantic import ConfigDict, Field
|
||||
|
||||
from songsplit.schema.base import EditableItem, SongPackageBase
|
||||
from unmix.schema.base import EditableItem, SongPackageBase
|
||||
|
||||
SyllableType = Literal["normal", "golden", "freestyle", "rap"]
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
from pydantic import ConfigDict, Field
|
||||
|
||||
from songsplit.schema.base import SongPackageBase
|
||||
from unmix.schema.base import SongPackageBase
|
||||
|
||||
|
||||
class VocalsF0Document(SongPackageBase):
|
||||
@ -10,7 +10,7 @@ from bisect import bisect_right
|
||||
|
||||
import numpy as np
|
||||
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||
|
||||
|
||||
def _get_sorted_anchors(tempo_map: TempoDocument) -> list[TempoAnchor]:
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
import numpy as np
|
||||
|
||||
from songsplit.pipeline.s6_chords import estimate_key, extract_chords_template, parse_harte_chord
|
||||
from unmix.pipeline.s6_chords import estimate_key, extract_chords_template, parse_harte_chord
|
||||
|
||||
|
||||
def test_parse_harte_chord_labels():
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
"""Unit tests for songsplit CLI."""
|
||||
"""Unit tests for unmix CLI."""
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
from songsplit.cli import app
|
||||
from unmix.cli import app
|
||||
|
||||
runner = CliRunner()
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.container import (
|
||||
from unmix.container import (
|
||||
SongpackSecurityError,
|
||||
build_manifest_for_dir,
|
||||
pack_songpack,
|
||||
|
||||
@ -5,16 +5,16 @@ from pathlib import Path
|
||||
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.container import pack_songpack, unpack_songpack
|
||||
from songsplit.export.ultrastar import parse_ultrastar
|
||||
from songsplit.schema.chords import ChordsDocument
|
||||
from songsplit.schema.manifest import ManifestDocument
|
||||
from songsplit.schema.meta import MetaDocument
|
||||
from songsplit.schema.strumming import StrummingDocument
|
||||
from songsplit.schema.tempo import TempoDocument
|
||||
from songsplit.schema.tracks import TrackDocument
|
||||
from songsplit.schema.vocals import VocalsDocument
|
||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
||||
from unmix.container import pack_songpack, unpack_songpack
|
||||
from unmix.export.ultrastar import parse_ultrastar
|
||||
from unmix.schema.chords import ChordsDocument
|
||||
from unmix.schema.manifest import ManifestDocument
|
||||
from unmix.schema.meta import MetaDocument
|
||||
from unmix.schema.strumming import StrummingDocument
|
||||
from unmix.schema.tempo import TempoDocument
|
||||
from unmix.schema.tracks import TrackDocument
|
||||
from unmix.schema.vocals import VocalsDocument
|
||||
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||
|
||||
|
||||
def test_demo_package_structure():
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
import pyphen
|
||||
|
||||
from songsplit.pipeline.s3_lyrics import hyphenate_word, split_word_into_syllables_timed
|
||||
from unmix.pipeline.s3_lyrics import hyphenate_word, split_word_into_syllables_timed
|
||||
|
||||
|
||||
def test_hyphenate_word_german():
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||
from songsplit.export.ultrastar import UltraStarNote, UltraStarSong
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.eval.metrics import evaluate_vocals, normalize_text_for_wer
|
||||
from unmix.export.ultrastar import UltraStarNote, UltraStarSong
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
|
||||
|
||||
def test_normalize_text_for_wer():
|
||||
|
||||
@ -8,7 +8,7 @@ import numpy as np
|
||||
import pytest
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.pipeline import PipelineContext, get_default_pipeline
|
||||
from unmix.pipeline import PipelineContext, get_default_pipeline
|
||||
|
||||
|
||||
def compute_snr(orig: np.ndarray, recon: np.ndarray) -> float:
|
||||
|
||||
@ -6,12 +6,12 @@ from pathlib import Path
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.eval.metrics import evaluate_vocals
|
||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s4_pitch import PitchStage
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.vocals import VocalsDocument
|
||||
from unmix.eval.metrics import evaluate_vocals
|
||||
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s4_pitch import PitchStage
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.vocals import VocalsDocument
|
||||
|
||||
|
||||
def test_m2_pitch_ultrastar_and_eval(tmp_path: Path):
|
||||
|
||||
@ -7,12 +7,12 @@ import numpy as np
|
||||
import pytest
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s5_tempo import TempoStage
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.tempo import TempoDocument
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s5_tempo import TempoStage
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.tempo import TempoDocument
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
|
||||
|
||||
def test_m3_tempo_stage_and_click_track(tmp_path: Path):
|
||||
|
||||
@ -6,11 +6,11 @@ from pathlib import Path
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s6_chords import ChordsStage
|
||||
from songsplit.schema.chords import ChordsDocument
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s6_chords import ChordsStage
|
||||
from unmix.schema.chords import ChordsDocument
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
|
||||
|
||||
def test_m4_chords_stage_pipeline(tmp_path: Path):
|
||||
|
||||
@ -6,11 +6,11 @@ from pathlib import Path
|
||||
import numpy as np
|
||||
import soundfile as sf
|
||||
|
||||
from songsplit.pipeline import PipelineContext
|
||||
from songsplit.pipeline.s7_strumming import StrummingStage
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.strumming import StrummingDocument
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.pipeline import PipelineContext
|
||||
from unmix.pipeline.s7_strumming import StrummingStage
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.strumming import StrummingDocument
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
|
||||
|
||||
def test_m5_strumming_pipeline(tmp_path: Path):
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from songsplit.pipeline.s4_pitch import correct_octave_errors, hz_to_midi
|
||||
from unmix.pipeline.s4_pitch import correct_octave_errors, hz_to_midi
|
||||
|
||||
|
||||
def test_hz_to_midi_standards():
|
||||
|
||||
@ -4,7 +4,7 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||
from unmix.pipeline.runner import PipelineContext, PipelineRunner, Stage
|
||||
|
||||
|
||||
class MockStageA(Stage):
|
||||
|
||||
@ -6,8 +6,8 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext
|
||||
from songsplit.pipeline.s1_extract import ExtractStage, get_audio_duration
|
||||
from unmix.pipeline.runner import PipelineContext
|
||||
from unmix.pipeline.s1_extract import ExtractStage, get_audio_duration
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@ -4,8 +4,8 @@ from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
|
||||
from songsplit.pipeline.runner import PipelineContext
|
||||
from songsplit.pipeline.s2_stems import StemsStage
|
||||
from unmix.pipeline.runner import PipelineContext
|
||||
from unmix.pipeline.s2_stems import StemsStage
|
||||
|
||||
|
||||
def calculate_snr(original: np.ndarray, reconstructed: np.ndarray) -> float:
|
||||
|
||||
@ -5,7 +5,7 @@ import json
|
||||
import pytest
|
||||
from pydantic import ValidationError
|
||||
|
||||
from songsplit.schema import (
|
||||
from unmix.schema import (
|
||||
ChordsDocument,
|
||||
MetaDocument,
|
||||
ModelInfo,
|
||||
@ -152,7 +152,7 @@ def test_strumming_document_roundtrip_and_spec_example():
|
||||
|
||||
|
||||
def test_manifest_document_roundtrip():
|
||||
from songsplit.schema.manifest import ManifestDocument, ManifestFileInfo, ManifestStageInfo
|
||||
from unmix.schema.manifest import ManifestDocument, ManifestFileInfo, ManifestStageInfo
|
||||
|
||||
manifest = ManifestDocument(
|
||||
created="2026-11-02T11:40:00+01:00",
|
||||
@ -177,7 +177,7 @@ def test_manifest_document_roundtrip():
|
||||
|
||||
|
||||
def test_tracks_document_kinds():
|
||||
from songsplit.schema.tracks import DrumEvent, NoteEvent, StrumEvent, StrumPattern, TrackDocument
|
||||
from unmix.schema.tracks import DrumEvent, NoteEvent, StrumEvent, StrumPattern, TrackDocument
|
||||
|
||||
# Strumming track
|
||||
t_strum = TrackDocument(
|
||||
@ -218,7 +218,7 @@ def test_tracks_document_kinds():
|
||||
|
||||
|
||||
def test_vocals_f0_document():
|
||||
from songsplit.schema.vocals_f0 import VocalsF0Document
|
||||
from unmix.schema.vocals_f0 import VocalsF0Document
|
||||
|
||||
f0 = VocalsF0Document(
|
||||
hop_sec=0.01,
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
import numpy as np
|
||||
|
||||
from songsplit.pipeline.s7_strumming import aggregate_strum_patterns, estimate_strum_direction
|
||||
from songsplit.schema.strumming import StrumEvent
|
||||
from unmix.pipeline.s7_strumming import aggregate_strum_patterns, estimate_strum_direction
|
||||
from unmix.schema.strumming import StrumEvent
|
||||
|
||||
|
||||
def test_estimate_strum_direction_phase_prior():
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from songsplit.tempo import beat_to_sec, sec_to_beat
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.tempo import beat_to_sec, sec_to_beat
|
||||
|
||||
|
||||
def test_empty_tempo_map_raises_error():
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||
from songsplit.tempo import build_tempo_map_from_beats, generate_click_track
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument, TimeSignature
|
||||
from unmix.tempo import build_tempo_map_from_beats, generate_click_track
|
||||
|
||||
|
||||
def test_build_tempo_map_constant_tempo():
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from songsplit.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from songsplit.schema.meta import MetaDocument, SourceFileInfo
|
||||
from songsplit.schema.tempo import TempoAnchor, TempoDocument
|
||||
from songsplit.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
from unmix.export.ultrastar import export_ultrastar, parse_ultrastar
|
||||
from unmix.schema.meta import MetaDocument, SourceFileInfo
|
||||
from unmix.schema.tempo import TempoAnchor, TempoDocument
|
||||
from unmix.schema.vocals import VocalLine, VocalsDocument, VocalSyllable
|
||||
|
||||
|
||||
def test_ultrastar_writer_and_reader(tmp_path: Path):
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
# Umsetzungskonzept: songsplit (Analyse-Tool)
|
||||
# Umsetzungskonzept: unmix (Analyse-Tool)
|
||||
|
||||
Arbeitsanweisung für einen KI-Coding-Agenten. Alles hier ist verbindlich, sofern nicht ausdrücklich als "offen" markiert.
|
||||
|
||||
## 1. Ziel
|
||||
|
||||
`songsplit` zerlegt einen Song (Video oder Audio) in ein **Song-Paket**: getrennte Stems, Text mit Wort-/Silben-Timing, Gesangsnoten, Tempo-Map, Akkorde und Strumming-Vorschlag. Das Paket wird später von einer Rust-Gesangstrainer-App und einem Editor gelesen.
|
||||
`unmix` zerlegt einen Song (Video oder Audio) in ein **Song-Paket**: getrennte Stems, Text mit Wort-/Silben-Timing, Gesangsnoten, Tempo-Map, Akkorde und Strumming-Vorschlag. Das Paket wird später von einer Rust-Gesangstrainer-App und einem Editor gelesen.
|
||||
|
||||
**Im Scope:** Analyse-Pipeline, Song-Paket-Format, UltraStar-Export (später auch Import als Testreferenz), Qualitätsmessung.
|
||||
**Nicht im Scope:** Editor, Pitch-Scoring live, Wiedergabe, GUI.
|
||||
@ -22,10 +22,10 @@ Arbeitsanweisung für einen KI-Coding-Agenten. Alles hier ist verbindlich, sofer
|
||||
## 3. Projektstruktur
|
||||
|
||||
```
|
||||
songsplit/
|
||||
unmix/
|
||||
pyproject.toml
|
||||
README.md
|
||||
src/songsplit/
|
||||
src/unmix/
|
||||
cli.py # typer-App
|
||||
config.py # Modellwahl, Devices, Pfade
|
||||
schema/ # pydantic-Modelle (siehe 4)
|
||||
@ -149,11 +149,11 @@ Reihenfolge der Abhängigkeiten: 1 → 2 → (3 → 4) und (5 → 6, 7). Stufen
|
||||
## 7. CLI
|
||||
|
||||
```
|
||||
songsplit analyze <datei> -o <ordner> [--lang de] [--stems 4|6] [--quality fast|best]
|
||||
songsplit analyze <datei> -o <ordner> --stage chords [--force]
|
||||
songsplit export-ultrastar <ordner>
|
||||
songsplit eval <testset.toml>
|
||||
songsplit doctor # prüft ffmpeg, Modelle, GPUs, Versionen
|
||||
unmix analyze <datei> -o <ordner> [--lang de] [--stems 4|6] [--quality fast|best]
|
||||
unmix analyze <datei> -o <ordner> --stage chords [--force]
|
||||
unmix export-ultrastar <ordner>
|
||||
unmix eval <testset.toml>
|
||||
unmix doctor # prüft ffmpeg, Modelle, GPUs, Versionen
|
||||
```
|
||||
|
||||
## 8. Qualitätsmessung (Eval)
|
||||
|
||||
110
uv.lock
generated
110
uv.lock
generated
@ -1368,61 +1368,6 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "songsplit"
|
||||
version = "0.1.0"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "beat-this" },
|
||||
{ name = "chord-extractor" },
|
||||
{ name = "demucs", version = "4.0.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" },
|
||||
{ name = "demucs", version = "4.1.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 'x86_64' or sys_platform != 'darwin'" },
|
||||
{ name = "faster-whisper" },
|
||||
{ name = "jiwer" },
|
||||
{ name = "julius" },
|
||||
{ name = "pydantic" },
|
||||
{ name = "pyphen" },
|
||||
{ name = "rich" },
|
||||
{ name = "scipy" },
|
||||
{ name = "soundfile" },
|
||||
{ name = "torch", version = "2.15.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
||||
{ name = "torch", version = "2.15.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
||||
{ name = "torchaudio", version = "2.11.1", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
||||
{ name = "torchaudio", version = "2.11.1+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
||||
{ name = "torchcrepe" },
|
||||
{ name = "typer" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
dev = [
|
||||
{ name = "pytest" },
|
||||
{ name = "pytest-cov" },
|
||||
{ name = "ruff" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "beat-this", specifier = ">=1.1.0" },
|
||||
{ name = "chord-extractor", specifier = ">=0.1.3" },
|
||||
{ name = "demucs", specifier = ">=4.0.0" },
|
||||
{ name = "faster-whisper", specifier = ">=1.0.0" },
|
||||
{ name = "jiwer", specifier = ">=3.0.0" },
|
||||
{ name = "julius", specifier = ">=0.2.7" },
|
||||
{ name = "pydantic", specifier = ">=2.7.0" },
|
||||
{ name = "pyphen", specifier = ">=0.14.0" },
|
||||
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0.0" },
|
||||
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=5.0.0" },
|
||||
{ name = "rich", specifier = ">=13.7.0" },
|
||||
{ name = "ruff", marker = "extra == 'dev'", specifier = ">=0.4.0" },
|
||||
{ name = "scipy", specifier = ">=1.12.0" },
|
||||
{ name = "soundfile", specifier = ">=0.12.0" },
|
||||
{ name = "torch", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
||||
{ name = "torchaudio", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
||||
{ name = "torchcrepe", specifier = ">=0.0.23" },
|
||||
{ name = "typer", specifier = ">=0.12.0" },
|
||||
]
|
||||
provides-extras = ["dev"]
|
||||
|
||||
[[package]]
|
||||
name = "soundfile"
|
||||
version = "0.14.0"
|
||||
@ -1715,6 +1660,61 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/67/81/4add07e5172b7ac40d8ed5ff580409a7801a4fe26d529bdd915401dabfbe/typing_inspection-0.4.4-py3-none-any.whl", hash = "sha256:65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147", size = 14750, upload-time = "2026-08-12T12:37:24.648Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unmix"
|
||||
version = "0.1.0"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "beat-this" },
|
||||
{ name = "chord-extractor" },
|
||||
{ name = "demucs", version = "4.0.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" },
|
||||
{ name = "demucs", version = "4.1.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 'x86_64' or sys_platform != 'darwin'" },
|
||||
{ name = "faster-whisper" },
|
||||
{ name = "jiwer" },
|
||||
{ name = "julius" },
|
||||
{ name = "pydantic" },
|
||||
{ name = "pyphen" },
|
||||
{ name = "rich" },
|
||||
{ name = "scipy" },
|
||||
{ name = "soundfile" },
|
||||
{ name = "torch", version = "2.15.0", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
||||
{ name = "torch", version = "2.15.0+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
||||
{ name = "torchaudio", version = "2.11.1", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine != 'x86_64' and sys_platform == 'darwin'" },
|
||||
{ name = "torchaudio", version = "2.11.1+cpu", source = { registry = "https://download.pytorch.org/whl/cpu" }, marker = "platform_machine == 'x86_64' or sys_platform != 'darwin'" },
|
||||
{ name = "torchcrepe" },
|
||||
{ name = "typer" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
dev = [
|
||||
{ name = "pytest" },
|
||||
{ name = "pytest-cov" },
|
||||
{ name = "ruff" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "beat-this", specifier = ">=1.1.0" },
|
||||
{ name = "chord-extractor", specifier = ">=0.1.3" },
|
||||
{ name = "demucs", specifier = ">=4.0.0" },
|
||||
{ name = "faster-whisper", specifier = ">=1.0.0" },
|
||||
{ name = "jiwer", specifier = ">=3.0.0" },
|
||||
{ name = "julius", specifier = ">=0.2.7" },
|
||||
{ name = "pydantic", specifier = ">=2.7.0" },
|
||||
{ name = "pyphen", specifier = ">=0.14.0" },
|
||||
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0.0" },
|
||||
{ name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=5.0.0" },
|
||||
{ name = "rich", specifier = ">=13.7.0" },
|
||||
{ name = "ruff", marker = "extra == 'dev'", specifier = ">=0.4.0" },
|
||||
{ name = "scipy", specifier = ">=1.12.0" },
|
||||
{ name = "soundfile", specifier = ">=0.12.0" },
|
||||
{ name = "torch", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
||||
{ name = "torchaudio", specifier = ">=2.4.0", index = "https://download.pytorch.org/whl/cpu" },
|
||||
{ name = "torchcrepe", specifier = ">=0.0.23" },
|
||||
{ name = "typer", specifier = ">=0.12.0" },
|
||||
]
|
||||
provides-extras = ["dev"]
|
||||
|
||||
[[package]]
|
||||
name = "urllib3"
|
||||
version = "2.8.0"
|
||||
|
||||
Reference in New Issue
Block a user