Saganaki22
ComfyUI-SoulX-Singer
Python

ComfyUI custom nodes for SoulX-Singer: Towards High-Quality Zero-Shot Singing Voice Synthesis

Last updated Jun 21, 2026
81
Stars
13
Forks
6
Issues
0
Stars/day
Attention Score
26
Language breakdown
Python 89.4%
TypeScript 8.2%
CSS 1.9%
Shell 0.2%
JavaScript 0.2%
HTML 0.0%
โ–ธ Files click to expand
README

๐ŸŽค ComfyUI-SoulX-Singer

soulx-logo

ComfyUI custom nodes for
SoulX-Singer: Towards High-Quality Zero-Shot Singing Voice Synthesis

Demo Page HF Space Demo HF Model GitHub HF Paper arXiv License


image

๐ŸŽต Overview

SoulX-Singer is a high-fidelity, zero-shot singing voice synthesis model by SoulAI-Lab that enables users to generate realistic singing voices for unseen singers. This ComfyUI wrapper provides native node-based integration with support for melody-conditioned (F0 contour) and score-conditioned (MIDI notes) control for precise pitch, rhythm, and expression.

Paper: SoulX-Singer: Towards High-Quality Zero-Shot Singing Voice Synthesis (arXiv:2602.07803)


โœจ Features

  • ๐ŸŽค Zero-Shot Singing โ€“ Generate voices for unseen singers with just a reference sample
  • ๐ŸŽต Dual Control Modes โ€“ Melody (F0 contour) and Score (MIDI notes) conditioning
  • ๐Ÿ”— Native ComfyUI Integration โ€“ AUDIO noodle inputs, progress bars, interruption support
  • โšก Optimized Performance โ€“ Support for bf16/fp32 dtypes, SDPA and SageAttention
  • ๐Ÿ“ฆ Smart Auto-Download โ€“ Downloads only what you need from HuggingFace
- bf16 model + preprocessors by default (~6GB) - Optional fp32 model for maximum quality (~10GB total)
  • ๐Ÿ’พ Smart Caching โ€“ Optional model caching with dtype/attention change detection
  • ๐ŸŽน MIDI Editor Support โ€“ Advanced node for manual metadata editing workflow
  • ๐Ÿ”ง Improved Compatibility โ€“ Uses soundfile + scipy instead of torchaudio for better cross-platform support

Original Audio

SpongeBob Voice

https://github.com/user-attachments/assets/505e74b2-49b7-49bb-b017-ea60600b5173

Male Voice

https://github.com/user-attachments/assets/d0cd4612-cdcc-4a03-8c38-4a71874c9bd2


๐Ÿ“ฆ Installation

๐Ÿ“ฅ Click to expand installation methods

Method 1: ComfyUI Manager (Recommended)

  • Open ComfyUI Manager
  • Search for "SoulX-Singer"
  • Click Install
  • Restart ComfyUI

Method 2: Manual Installation

cd ComfyUI/custom_nodes
git clone --recursive https://github.com/Saganaki22/ComfyUI-SoulX-Singer.git
cd ComfyUI-SoulX-Singer
pip install -r requirements.txt

Note: The --recursive flag is important to clone the SoulX-Singer submodule.

Method 3: If Already Cloned Without Submodule

cd ComfyUI/custom_nodes/ComfyUI-SoulX-Singer
git submodule init
git submodule update
pip install -r requirements.txt


๐Ÿš€ Quick Start

Basic Workflow (Simple Mode)

  • Load Model
- Add ๐ŸŽค SoulX-Singer Model Loader node - Select model: - SoulX-Singermodelbf16 (default) - Fast, good quality, ~2GB - SoulX-Singermodelfp32 - Best quality, ~4GB - "(download)" suffix means it will be auto-downloaded on first use - Choose dtype: bf16 (default, recommended) or fp32 (full precision) - Choose attention: sdpa (default) or sageattention (fastest with sageattention package) - Enable keep_loaded to cache model between runs
  • Load Audio
- Add Load Audio nodes for prompt and target audio - Prompt: 3-10 seconds of reference singing voice - Target: Audio with melody/score to synthesize
  • Synthesize
- Add ๐ŸŽ™๏ธ SoulX-Singer Simple node - Connect model and audio inputs - Configure languages (Mandarin/English/Cantonese) - Set control mode (melody or score) - Adjust synthesis parameters - Run!
  • Save/Preview
- Connect to Save Audio or Preview Audio node

Advanced Workflow (Metadata Mode)

For users who want manual control with MIDI editor:

  • Run Simple mode once to generate metadata files (saved in temp folder)
  • Copy metadata JSON files from temp folder
  • Edit metadata JSON files with MIDI Editor
  • Use ๐ŸŽ™๏ธ SoulX-Singer Advanced node with:
- Prompt audio file - Prompt metadata JSON path - Target metadata JSON path (edited version)

Why no target_audio in Advanced node? The target is defined entirely by metadata (lyrics, notes, timing) - the node synthesizes NEW audio from scratch rather than transforming existing audio.


๐Ÿ—‚๏ธ File Structure & Downloads

๐Ÿ“ Click to expand file structure details

Automatic Download (Recommended)

On first use, the node will automatically download required files from drbaph/SoulX-Singer:

Default Download (bf16):

  • SoulX-Singermodelbf16.safetensors (~1.5GB)
  • config.yaml
  • preprocessors/ folder (~5GB)
  • Total: ~6.5GB
Optional Download (fp32):
  • SoulX-Singermodelfp32.safetensors (~2.9GB)
  • Plus bf16 model + config + preprocessors above
  • Total: ~9.5GB
Files are saved to:
ComfyUI/models/SoulX-Singer/

Manual Download

If auto-download fails:

pip install -U huggingface_hub
huggingface-cli download drbaph/SoulX-Singer --local-dir ComfyUI/models/SoulX-Singer

Or download manually from drbaph/SoulX-Singer and place in ComfyUI/models/SoulX-Singer/.

Final Structure

ComfyUI/
โ”œโ”€โ”€ models/
โ”‚   โ””โ”€โ”€ SoulX-Singer/
โ”‚       โ”œโ”€โ”€ SoulX-Singermodelbf16.safetensors   # bf16 model (~1.5GB)
โ”‚       โ”œโ”€โ”€ SoulX-Singermodelfp32.safetensors   # fp32 model (~2.9GB) [optional]
โ”‚       โ”œโ”€โ”€ config.yaml                            # Model config
โ”‚       โ””โ”€โ”€ preprocessors/                         # Preprocessing models (~5GB)
โ”‚           โ”œโ”€โ”€ dereverbmelband_roformer/
โ”‚           โ”œโ”€โ”€ mel-band-roformer-karaoke/
โ”‚           โ”œโ”€โ”€ parakeet-tdt-0.6b-v2/
โ”‚           โ”œโ”€โ”€ rmvpe/
โ”‚           โ”œโ”€โ”€ rosvot/
โ”‚           โ””โ”€โ”€ speechseacoparaformerlargeasr_nat-zh-cn-16k-common-vocab8404-pytorch/
โ””โ”€โ”€ custom_nodes/
    โ””โ”€โ”€ ComfyUI-SoulX-Singer/
        โ”œโ”€โ”€ init.py
        โ”œโ”€โ”€ nodes/
        โ”‚   โ”œโ”€โ”€ model_loader.py
        โ”‚   โ”œโ”€โ”€ simple_synthesizer.py
        โ”‚   โ””โ”€โ”€ advanced_synthesizer.py
        โ”œโ”€โ”€ SoulX-Singer/                       # Git submodule
        โ”œโ”€โ”€ requirements.txt
        โ””โ”€โ”€ README.md

๐Ÿ”— Symlink Support

โœ… All nodes support symlinks! You can use system links to save disk space:

Windows Example:

:: Link the entire models directory mklink /D "ComfyUI\models\SoulX-Singer" "D:\MyModels\SoulX-Singer"

:: Or link just the preprocessors mklink /D "ComfyUI\models\SoulX-Singer\preprocessors" "D:\MyModels\preprocessors"

Linux/Mac Example:

# Link the entire models directory ln -s /path/to/your/models/SoulX-Singer ComfyUI/models/SoulX-Singer

Or link just the preprocessors

ln -s /path/to/preprocessors ComfyUI/models/SoulX-Singer/preprocessors

The nodes automatically resolve symlinks and load from the actual file location.


๐ŸŽ›๏ธ Node Reference

๐ŸŽค SoulX-Singer Model Loader

Loads the SVS model with configurable precision and attention.

Inputs:

  • model_name: Model file to load
- SoulX-Singermodelbf16 (default) - bf16 precision, fast, good quality - SoulX-Singermodelfp32 - fp32 precision, best quality, larger file - (download) suffix appears if model not yet downloaded - Automatically detects all .safetensors and .pt files in ComfyUI/models/SoulX-Singer/ - Supports symlinks: Works with symlinked files/directories
  • dtype: Precision - bf16 (default, recommended), fp32 (full)
- Note: fp16 removed due to vocoder FFT incompatibility
  • attention_type: sdpa (default) or sageattention
- Note: auto, flash_attention, and eager removed due to compatibility issues - sageattention requires: pip install sageattention
  • keep_loaded: Cache model in memory (clears on dtype/attention change)
Outputs:
  • model: SOULX_MODEL object
Smart Download Behavior:
  • Selecting bf16 model: Downloads bf16 + config + preprocessors (~7GB)
  • Selecting fp32 model: Downloads fp32 + bf16 + config + preprocessors (~11GB)
  • Resume support: Interrupted downloads will resume on next attempt

๐ŸŽ™๏ธ SoulX-Singer Simple

Simple synthesizer with auto-preprocessing.

Inputs:

  • model: SOULX_MODEL from loader
  • prompt_audio: Reference singing voice (AUDIO noodle)
  • target_audio: Target melody/score (AUDIO noodle)
  • prompt_language: Mandarin/English/Cantonese
  • target_language: Mandarin/English/Cantonese
  • control_mode: melody (F0 contour) or score (MIDI notes)
  • enable_preprocessing: โš ๏ธ EXPERIMENTAL - Enable full preprocessing (default: True)
- True: Full pipeline with vocal separation + F0 + transcription (for mixed audio) - False: Skip vocal separation, only F0 + transcription (for clean acapellas)
  • vocalsepprompt: Apply vocal separation to prompt (ignored if preprocessing disabled)
  • vocalseptarget: Apply vocal separation to target (ignored if preprocessing disabled)
  • autopitchshift: Auto-match pitch ranges
  • pitch_shift: Manual pitch shift (-12 to +12 semitones)
  • n_steps: Diffusion steps (16-64, default 32)
  • cfg_scale: CFG guidance (1.0-5.0, default 3.0)
Outputs:
  • audio: Generated singing voice (AUDIO)
Notes:
  • First run will download preprocessing models to ComfyUI/models/SoulX-Singer/preprocessors/ if not already present
  • โš ๏ธ EXPERIMENTAL: Disabling preprocessing skips vocal separation but still extracts F0 and transcribes lyrics - use only with clean acapella vocals

๐ŸŽ™๏ธ SoulX-Singer Advanced

Advanced synthesizer using pre-processed metadata files for manual editing workflows.

Inputs:

  • model: SOULX_MODEL from loader
  • prompt_audio: Reference audio (AUDIO noodle)
  • promptmetadatapath: Path to prompt JSON metadata file
  • targetmetadatapath: Path to target JSON metadata file
  • control_mode: melody (F0 contour) or score (MIDI notes)
  • autopitchshift: Auto-match pitch ranges
  • pitch_shift: Manual pitch shift (-12 to +12 semitones)
  • n_steps: Diffusion steps (16-64, default 32)
  • cfg_scale: CFG guidance (1.0-5.0, default 3.0)
Outputs:
  • audio: Generated singing voice (AUDIO)
๐Ÿ“‹ Click to expand Metadata JSON Structure

[
  {
    "index": "vocal06900",
    "language": "English",
    "time": [0, 6900],
    "duration": "0.16 0.24 0.32...",
    "text": "<SP> Hello world <SP>...",
    "phoneme": "<SP> en_HH-ER0...",
    "note_pitch": "0 68 67 65...",
    "note_type": "1 2 2 2...",
    "f0": "0.0 0.0 382.7..."
  }
]

Key Fields:

  • time: Segment boundaries [startms, endms]
  • text: Lyrics with <SP> markers for word boundaries
  • phoneme: ARPAbet phonemes (en_ prefix for English)
  • note_pitch: MIDI note numbers (0=silence, 60=middle C)
  • note_type: 1=rest, 2=sustain, 3=attack
  • f0: Frame-level fundamental frequency in Hz
Use Case:
  • Run Simple mode to get auto-generated metadata
  • Copy metadata files from temp folder (shown in console logs)
  • Edit in MIDI Editor
  • Use Advanced node with edited target metadata
Why no target_audio input? The target is defined entirely by metadata - the node synthesizes new audio from scratch based on the metadata (lyrics, notes, timing). The prompt_audio provides the voice timbre reference.


๐Ÿ“Š Parameters Explained

| Parameter | Description | Recommended | |-----------|-------------|-------------| | modelname | Model variant | SoulX-Singermodelbf16 (fast), SoulX-Singermodel_fp32 (best quality) | | dtype | Model precision | bf16 (default, fast + quality), fp32 (best quality) | | attention_type | Attention mechanism | sdpa (default), sageattention (requires package) | | keep_loaded | Cache model | True for multiple runs | | control_mode | Pitch control | melody for natural, score for MIDI | | autopitchshift | Auto pitch matching | True for different singers | | n_steps | Quality vs speed | 32 (balanced), 64 (best) | | cfg_scale | Prompt adherence | 3.0 (balanced) |


๐Ÿ”ง Troubleshooting

๐Ÿ› ๏ธ Click to expand troubleshooting guide

Models Not Downloading?

Manually download from drbaph/SoulX-Singer:

pip install -U huggingface_hub huggingface-cli download drbaph/SoulX-Singer --local-dir ComfyUI/models/SoulX-Singer

Missing Dependencies?

Install all dependencies:

cd ComfyUI/custom_nodes/ComfyUI-SoulX-Singer pip install -r requirements.txt

Common missing packages:

  • wandb - for preprocessing logging
  • pretty_midi - for MIDI handling
  • ml-collections - for config management
  • loralib - for LoRA model components
  • sageattention - for optimized attention (optional, pip install sageattention)

Out of Memory?

  • Use bf16 dtype instead of fp32
  • Select SoulX-Singermodelbf16 instead of fp32
  • Set keep_loaded=False
  • Reduce n_steps
  • Close other applications

Slow Synthesis?

  • Install SageAttention: pip install sageattention, then select sageattention attention type
  • Use GPU with CUDA support
  • Enable keep_loaded=True
  • Use bf16 dtype

Preprocessing Pipeline Fails?

Check that all preprocessing models are downloaded to:

ComfyUI/models/SoulX-Singer/preprocessors/

Verify the directory structure matches the example above.

SageAttention Not Working?

Make sure you have the sageattention package installed:

pip install sageattention

If you get errors with SageAttention, fall back to sdpa attention type.


๐Ÿ”— Important Links

๐Ÿค— HuggingFace

๐Ÿ“„ Paper & Code

๐Ÿ› ๏ธ Tools


๐Ÿ“„ Citation

If you use SoulX-Singer in your research, please cite:

@misc{soulxsinger,
      title={SoulX-Singer: Towards High-Quality Zero-Shot Singing Voice Synthesis}, 
      author={Jiale Qian and Hao Meng and Tian Zheng and Pengcheng Zhu and Haopeng Lin and Yuhang Dai and Hanke Xie and Wenxiao Cao and Ruixuan Shang and Jun Wu and Hongmei Liu and Hanlin Wen and Jian Zhao and Zhonglin Jiang and Yong Chen and Shunshun Yin and Ming Tao and Jianguo Wei and Lei Xie and Xinsheng Wang},
      year={2026},
      eprint={2602.07803},
      archivePrefix={arXiv},
      primaryClass={eess.AS},
      url={https://arxiv.org/abs/2602.07803}, 
}

๐Ÿ“„ License

Apache 2.0 - See LICENSE for details.

โš ๏ธ Usage Disclaimer

SoulX-Singer is intended for academic research, educational purposes, and legitimate applications. Please use responsibly and ethically.

We advocate for the responsible development and use of AI and encourage the community to uphold safety and ethical principles in AI research and applications. If you have any concerns regarding ethics or misuse, please contact us.


High-Quality Zero-Shot Singing Voice Synthesis for ComfyUI

ยฉ 2026 GitRepoTrend ยท Saganaki22/ComfyUI-SoulX-Singer ยท Updated daily from GitHub