---
name: comfyui-tts-a97f2ae02578
description: "Generate speech audio using ComfyUI Qwen-TTS service. Invoke when user needs text-to-speech conversion or voice generation through ComfyUI."
metadata:
  {
    "openclaw":
      {
        "emoji": "🔊",
        "requires": { "bins": ["curl", "jq"] },
        "install": [],
      },
  }
---

# ComfyUI TTS Skill

Generate speech audio using ComfyUI's Qwen-TTS service. This skill allows you to convert text to speech through ComfyUI's API.

## Configuration

### Environment Variables

Set these environment variables to configure the ComfyUI connection:

```bash
export COMFYUI_HOST="localhost"      # ComfyUI server host
export COMFYUI_PORT="8188"           # ComfyUI server port
export COMFYUI_OUTPUT_DIR=""         # Optional: Custom output directory
```

## Usage

### Basic Text-to-Speech

Generate audio from text using default settings:

```bash
scripts/tts.sh "你好，世界"
```

### Advanced Options

Customize voice characteristics:

```bash
# Specify character and style
scripts/tts.sh "你好" --character "Girl" --style "Emotional"

# Change model size
scripts/tts.sh "你好" --model "3B"

# Specify output file
scripts/tts.sh "你好" --output "/path/to/output.wav"

# Combine options
scripts/tts.sh "你好，这是测试" \
  --character "Girl" \
  --style "Emotional" \
  --model "1.7B" \
  --output "~/audio/test.wav"
```

### Available Options

| Option | Description | Default |
|--------|-------------|---------|
| `--character` | Voice character (Girl/Boy/etc.) | "Girl" |
| `--style` | Speaking style (Emotional/Neutral/etc.) | "Emotional" |
| `--model` | Model size (0.5B/1.7B/3B) | "1.7B" |
| `--output` | Output file path | Auto-generated |
| `--temperature` | Generation temperature (0-1) | 0.9 |
| `--top-p` | Top-p sampling | 0.9 |
| `--top-k` | Top-k sampling | 50 |

## Workflow

The skill performs these steps:

1. **Construct Workflow**: Builds a ComfyUI workflow JSON with your text and settings
2. **Submit Job**: Sends the workflow to ComfyUI's `/prompt` endpoint
3. **Poll Status**: Monitors job completion via `/history` endpoint
4. **Retrieve Audio**: Returns the path to the generated audio file

## Troubleshooting

### Connection Refused

- Verify ComfyUI is running: `curl http://$COMFYUI_HOST:$COMFYUI_PORT/system_stats`
- Check host and port settings

### Job Timeout

- Large models (3B) take longer to generate
- Try smaller models (0.5B, 1.7B) for faster results

### Output Not Found

- Check ComfyUI's output directory configuration
- Verify file permissions

## API Reference

The skill uses ComfyUI's native API endpoints:

- `POST /prompt` - Submit workflow
- `GET /history` - Check job status
- Output files are saved to ComfyUI's configured output directory


---
Source attribution: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/comfyui-tts/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 skill-library-mcp contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: modbender
Original project: https://github.com/modbender/skill-library-mcp/blob/d9c8fe903b5b4e82237dbe8d0df8567783022e18/data/comfyui-tts/SKILL.md
Attribution basis: Source repository record

Fields of work: Marketing
Roles: Content Marketer, Growth Marketer, Social Media Manager
Specialties: API
Tools: Comfyui
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 8ef122f501ca2071de6e217e4a0eb247774eb52fe0f4f1d56f9858e5a8cd7500
