diffsinger-singer-cli
by znovo
README.md
# diffsinger-singer-cli
CLI + MCP server for singing with **DiffSinger** voicebanks.
Input: **MP3** (full song) or **MIDI**.
Output: vocal (`*_voz.wav`) and optional mix (`*_mix.wav`).
## Install
```bash
pip install -e .
```
## External dependencies
- `ffmpeg`
- OpenUtau `ou-render.exe` + .NET 10
- A DiffSinger voicebank directory
Set environment variables as needed:
```bash
# Windows PowerShell example
$env:SINGER_BANKS_DIR = "C:\path\to\OpenUtau\Singers"
$env:OU_RENDER_EXE = "C:\path\to\ou-render.exe"
$env:DOTNET_ROOT = "C:\path\to\dotnet10"
$env:OPENUTAU_DIR = "C:\path\to\openutau"
```
## Usage
```bash
singer list-voices
singer sing melodia.mid --lyrics-file letra.txt --lang en --voice NOME_DO_BANCO --output voz.wav
singer pipeline musica.mp3 --lyrics-file letra.txt --lang en --mix --separate
singer serve-mcp
```
## MCP tools
`list_voices`, `separate_vocals`, `transcribe_to_midi`, `align_lyrics`, `sing`, `render`, `mix`, `pipeline`.
## Notes
- DiffSinger does **not** convert audio to MIDI. MP3 transcription here is a basic pYIN fallback.
- Vocal separation uses Demucs only when installed.
- Voicebank files are not included in this repository.
- Supported languages depend on the selected voicebank.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues