Nodes Browser

ComfyDeploy: How CosyVoice2 for ComfyUI works in ComfyUI?

What is CosyVoice2 for ComfyUI?

A plugin of ComfyUI for CosyVoice2, one component for text to Sonic Video

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for CosyVoice2 for ComfyUI and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

CosyVoice2_ComfyUI

A plugin of ComfyUI for CosyVoice2,
one component for text to long Sonic video in ComfyUI.

Installation

In the ./ComfyUI/custom_node directory, run the following:

git clone https://github.com/benda1989/CosyVoice2_ComfyUI.git
cd CosyVoice2_ComfyUI
conda install -y -c conda-forge pynini==2.1.5
pip install -r requirements.txt
# If you encounter sox compatibility issues
# ubuntu
sudo apt-get install sox libsox-dev
# centos
sudo yum install sox sox-devel 

Copy models

By default project will download CosyVoice2-0.5B and CosyVoice-ttsfrd into pretrained_models,
You can copy it there if you downloaded before.
file tree looks like this at least:

--  ComfyUI/custom_node/CosyVoice2_ComfyUI/pretrained_models
    |-- CosyVoice2-0.5B
    |-- CosyVoice-ttsfrd

Example

Attention

This project is design for v2, if you want to change between v1 and v2, you should reboot ComfyUI after once used.