Files
nvrl 3e5dbfe460 Add sigil-vocals, a vocal isolation program
A small CLI that runs an MDX-Net vocal model (the ONNX files from the
Ultimate Vocal Remover set, e.g. UVR_MDXNET_1_9703 or Kim_Vocal_2) on a
44.1 kHz WAV and writes the vocal stem, so speech to text hears the words
instead of the drop. The mix is cut into overlapping chunks, STFT'd
(periodic Hann, hop 1024, centred) and fed to the model as L/R real and
imaginary planes, as UVR does; known models bring their n_fft, dim_f and
level compensation, others get dim_f from the model's input shape.

ONNX Runtime is loaded at run time (ort's load-dynamic): $ORT_DYLIB_PATH,
else the library next to the program, else the system's. Nothing links,
so the mingw cross-build works and the bundles ship Microsoft's prebuilt
library. Pure-Rust tract was tried first and was about three times slower.
Progress goes to stderr as "progress = N%", the same line whisper-cli
prints. CI runs its tests and cross-builds it for Windows.
2026-11-11 00:00:01 +01:00

16 lines
671 B
TOML

[package]
name = "sigil-vocals"
version = "0.1.0"
edition = "2024"
description = "Vocal isolation for sigil-gui's speech to text: an MDX-Net vocal model (ONNX) run with ONNX Runtime on the CPU, WAV in, WAV out."
license = "MIT"
[dependencies]
# ONNX Runtime, loaded at run time (`load-dynamic`): nothing to link, so the
# mingw cross-build works; the bundles ship Microsoft's prebuilt
# libonnxruntime.so / onnxruntime.dll next to the binary. (Pure-Rust tract
# was tried first: ~7 min for a 2.5 min track, onnxruntime is far faster.)
ort = { version = "=2.0.0-rc.15", default-features = false, features = ["std", "load-dynamic", "api-20"] }
rustfft = "6"
hound = "3.5"