ComfyUI Extension: ComfyUI_CSM
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A ComfyUI node for the CSM model featuring text-to-speech, voice cloning, and automatic model downloading from Hugging Face.
Looking for a different extension?
Custom Nodes (0)
README
ComfyUI CSM Node
A ComfyUI node for the specific CSM model sesame/csm-1b.
This node uses the transformers library for model loading and inference.
Features
- Text-to-Speech: Generate speech from text using the CSM 1B model.
- Voice Cloning / Context: Provide reference audio and text to clone a voice or provide context.
- Automatic Downloading: Automatically downloads the model from Hugging Face (
sesame/csm-1b). - Caching: keeps the model loaded in memory (VRAM) for faster subsequent generations, offloading to CPU when a new model is loaded or node is unloaded (handled by python gc/ComfyUI).
Installation
- Navigate to your ComfyUI
custom_nodesdirectory. - Clone this repository:
(Or copy thegit clone https://github.com/SesameAILabs/ComfyUI_CSMComfyUI_CSMfolder tocustom_nodes) - Install dependencies:
Note: Requirespip install -r requirements.txttransformers>=4.49.0.
Usage
Node: CSM Transformers
Inputs:
text: The text you want the model to speak.speaker_id: Identifier for the speaker (e.g., "0", "1").model_id: The Hugging Face model ID. Default:sesame/csm-1b.
Optional Inputs:
ref_audio: A reference audio clip (Audio input) to use for voice context.ref_text: The text corresponding to theref_audio.
Outputs:
audio: The generated audio waveform (24kHz).
Requirements
- Python 3.8+
- PyTorch
transformers>=4.49.0torchaudio
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.