ComfyUI-Text2Speech

A ComfyUI custom node for text-to-speech integration with a local TTS server.

Features

  • Custom ComfyUI node HttpTTSToAudio for 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

  1. Run install.bat to create a virtual environment and install dependencies.
  2. Run run_tts.bat to start the TTS server on http://127.0.0.1:5002.

ComfyUI Node

  1. Copy the __init__.py file to your ComfyUI custom_nodes folder (e.g., ComfyUI/custom_nodes/ComfyUI_Text2Speech/__init__.py).
  2. Install requests in your ComfyUI environment: pip install requests.
  3. Restart ComfyUI.

Usage

  • Use the HttpTTSToAudio node in ComfyUI under Audio/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.

S
Description
No description provided
Readme
83 KiB
Languages
Python 82.4%
Batchfile 17.6%