c98fa9cb5e5ff8e7352daa413cb20beec2ecfed9
ComfyUI-Text2Speech
A ComfyUI custom node for text-to-speech integration with a local TTS server.
Features
- Custom ComfyUI node
HttpTTSToAudiofor sending text to a local TTS server. - Local TTS server using pyttsx3 (offline TTS engine).
- Easy setup with batch files for Windows.
Prerequisites
- Python 3.8+ installed and added to PATH. Download from python.org.
Installation
TTS Server Setup
- Run
install.batto create a virtual environment and install dependencies. - Run
run_tts.batto start the TTS server onhttp://127.0.0.1:5002.
ComfyUI Node
- Copy the
__init__.pyfile to your ComfyUIcustom_nodesfolder (e.g.,ComfyUI/custom_nodes/ComfyUI_Text2Speech/__init__.py). - Install
requestsin your ComfyUI environment:pip install requests. - Restart ComfyUI.
Usage
- Use the
HttpTTSToAudionode in ComfyUI underAudio/TTS. - Input text, language, and server URL.
- Output is the path to the generated audio file.
Workflow
Connect the audio path to audio/video processing nodes in ComfyUI for creating TTS-enhanced content.
Languages
Python
82.4%
Batchfile
17.6%