agentleFS
aivraraivrar/portable-hermes-agent/skills/extensions/tts-server/SKILL.md

tts-server

Skill232 starsChanged 5 months agoMITView on GitHub

Generate speech with the portable TTS Server.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user wants to install or manage the portable TTS Server, load voice models, clone a voice, or generate speech or …

    line 20
  2. Distinctive:

    If the server isn't running, start it:

    line 28
  3. Distinctive:

    If not installed yet:

    line 33
  4. Very specific:

    Use python -c "import httpx.

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Text-to-Speech Server - Hermes Skill

You have access to a portable TTS Server running locally. Use it to generate speech, clone voices, and create dialogue with emotions.

When to Use

Use this skill when the user wants to install or manage the portable TTS Server, load voice models, clone a voice, or generate speech or dialogue locally.

Server Info

  • Base URL: http://127.0.0.1:8200
  • Docs: http://127.0.0.1:8200/docs
  • Location: extensions/tts-server/

Quick Start

If the server isn't running, start it:

cd extensions/tts-server && launcher.bat api

If not installed yet:

cd extensions/tts-server && install.bat

Available TTS Models

10 models, each with different strengths:

ModelBest ForVoice CloningMultilingual
xttsGeneral purpose, cloningYesYes (17 languages)
fishFast, naturalYesYes
kokoroEnglish qualityNo (preset voices)Limited
barkExpressive, sound effectsNo (preset)Yes
chatterboxConversationalYesEnglish
f5Natural flowYesYes
diaDialogue with emotionsNoEnglish
qwenChinese + EnglishYesChinese/English
vibevoiceEmotional rangeYesEnglish
higgsHigh qualityYesEnglish

Core API Endpoints (use via terminal with python httpx)

Generate Speech

import httpx
r = httpx.post("http://127.0.0.1:8200/api/tts/kokoro", json={
    "text": "Hello! This is Hermes speaking.",
    "voice": "af_heart",
}, timeout=120)
result = r.json()  # Returns job info with audio URL

Generate Speech with Voice Cloning (xtts, fish, f5, etc.)

r = httpx.post("http://127.0.0.1:8200/api/tts/xtts", json={
    "text": "This sounds like the reference voice.",
    "voice": "path/to/reference.wav",
    "language": "en",
}, timeout=120)

Generate Dialogue with Emotions (dia model)

r = httpx.post("http://127.0.0.1:8200/api/tts/dia", json={
    "text": "[S1] Hello, how are you? [S2] (laughs) I'm great, thanks!",
}, timeout=120)

List Available Voices per Model

r = httpx.get("http://127.0.0.1:8200/api/tts/kokoro/voices")
r = httpx.get("http://127.0.0.1:8200/api/tts/xtts/voices")
r = httpx.get("http://127.0.0.1:8200/api/tts/bark/voices")
# ... (each model has /voices endpoint)

List All Models & Status

r = httpx.get("http://127.0.0.1:8200/api/models")
r = httpx.get("http://127.0.0.1:8200/api/models/status")

Job Management

r = httpx.get("http://127.0.0.1:8200/api/jobs")          # List all jobs
r = httpx.get("http://127.0.0.1:8200/api/jobs/{job_id}")  # Get job status + audio URL

Load/Unload Models (GPU memory)

httpx.post("http://127.0.0.1:8200/api/models/{model}/load")
httpx.post("http://127.0.0.1:8200/api/models/{model}/unload")

Worker Management

r = httpx.get("http://127.0.0.1:8200/api/workers")
httpx.post("http://127.0.0.1:8200/api/workers/spawn", json={"model": "kokoro", "device": "cuda:0"})
httpx.delete("http://127.0.0.1:8200/api/workers/{worker_id}")

Whisper (Speech-to-Text)

r = httpx.get("http://127.0.0.1:8200/api/whisper")
httpx.post("http://127.0.0.1:8200/api/whisper/base/load")

GPU/Device Info

r = httpx.get("http://127.0.0.1:8200/api/devices")

Available Tools (use these instead of raw API calls)

ToolWhat it does
tts_server_statusCheck server status and model availability
tts_server_generateGenerate speech from text
tts_server_modelsList all models with load status
tts_server_model_loadLoad a TTS model (spawn worker)
tts_server_model_unloadUnload model to free GPU memory
tts_server_voicesList available voices for a model
tts_server_jobsList TTS generation jobs

Tips

  • Workers auto-spawn when you request a model
  • For voice cloning, place reference audio (WAV/MP3) in extensions/tts-server/voices/
  • Generated audio saved to extensions/tts-server/output/jobs/
  • Use python -c "import httpx; ..." via terminal tool to call endpoints
  • Check health: httpx.get("http://127.0.0.1:8200/health")

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.