Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ PMOVES.AI is a **production-ready multi-agent orchestration platform** featuring
- **See:** `.claude/context/flute-gateway.md` for API reference

**Ultimate-TTS-Studio** [Port 7860 native, 7861 Docker]
- Multi-engine TTS with 13 engines (Kokoro, F5-TTS, KittenTTS, VoxCPM, Higgs Audio, Fish Speech S2 Pro, Chatterbox Turbo, Qwen3 TTS, IndexTTS, IndexTTS2, VibeVoice, Fish Speech, ChatterboxTTS)
- Multi-engine TTS with 14 engines (KittenTTS, Kokoro TTS, F5-TTS, IndexTTS, IndexTTS2, Fish Speech S1, Fish Speech S2 Pro, VoxCPM, Higgs Audio, ChatterboxTTS, Chatterbox Turbo, Chatterbox Multilingual, Qwen Voice Design, VibeVoice)
- Gradio web interface for interactive synthesis
- GPU-accelerated (CUDA 12.4), runs natively via Pinokio (NOT Docker)
- Health: `GET http://localhost:7860/gradio_api/info`
Expand Down
12 changes: 6 additions & 6 deletions .claude/commands/tts/test-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Test a single TTS engine with optional GPU metrics tracking via GPU Orchestrator
## Usage

```
/tts:test-engine <engine_id> [--synth] [--metrics]
/tts:test-engine <engine_id> [--load-only] [--metrics]
```

**Arguments:**
- `engine_id` — Engine to test (e.g., `kitten_tts`, `indextts2`, `kokoro`)
- `--synth` — Also run synthesis (default: load-only)
- `--load-only` — Only test model loading, skip synthesis
- `--metrics` — Capture GPU VRAM before/after via GPU Orchestrator (port 8200)

## Implementation
Expand All @@ -18,7 +18,7 @@ Test a single TTS engine with optional GPU metrics tracking via GPU Orchestrator
python -X utf8 pmoves/tools/test_all_tts_engines.py --engine {{args.engine_id}} --load-only {{#if args.metrics}}--metrics{{/if}}
```

### Load + synthesize test
### Load + synthesize test (default when --load-only is omitted)
```bash
python -X utf8 pmoves/tools/test_all_tts_engines.py --engine {{args.engine_id}} {{#if args.metrics}}--metrics{{/if}}
```
Expand All @@ -37,15 +37,15 @@ python -c "import yaml; d=yaml.safe_load(open('pmoves/configs/tts-engine-capabil
| `kokoro` | Kokoro TTS | preset-voices | ~800MB |
| `higgs` | Higgs Audio | preset-voices | ~1500MB |
| `f5_tts` | F5-TTS | voice-cloning | ~2000MB |
| `fish` | Fish Speech | voice-cloning | ~1500MB |
| `fish` | Fish Speech S1 | voice-cloning | ~1500MB |
| `fish_s2` | Fish Speech S2 Pro | voice-cloning | ~2000MB |
| `voxcpm` | VoxCPM | voice-cloning | ~2000MB |
| `indextts` | IndexTTS | voice-cloning | ~1200MB |
| `indextts2` | IndexTTS2 | emotion-control | ~3000MB |
| `chatterbox` | ChatterboxTTS | multilingual | ~2000MB |
| `chatterbox_turbo` | Chatterbox Turbo | multilingual | ~1500MB |
| `chatterbox_multilingual` | Chatterbox Multilingual | multilingual | ~2500MB |
| `qwen` | Qwen3 TTS | multilingual | ~2500MB |
| `qwen` | Qwen Voice Design | multilingual | ~2500MB |
| `vibevoice` | VibeVoice | podcast | ~3000MB |

## GPU Metrics Output (--metrics)
Expand All @@ -70,7 +70,7 @@ Falls back gracefully if GPU Orchestrator is offline.
/tts:test-engine kitten_tts --metrics

# Full load + synthesis test with metrics
/tts:test-engine indextts2 --synth --metrics
/tts:test-engine indextts2 --metrics

# Sequential sweep to gauge cumulative GPU load
/tts:test-engine kitten_tts --metrics
Expand Down
8 changes: 4 additions & 4 deletions pmoves/configs/tac_trees/voice-agents.tac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ root:
agent_hint: codex

- id: va.flute.predict-api
task: "UltimateTTSProvider uses predict API (not event API)"
task: "UltimateTTSProvider uses Gradio 4.x call API"
action:
type: grep
target: "pmoves/services/flute-gateway/providers/ultimate_tts.py"
pattern: "predict_api_url"
expect: "Uses /api/ predict endpoint, not /gradio_api/call/ event endpoint"
context: "Event API SSE/WebSocket breaks with newer Gradio versions"
pattern: "gradio_api/call"
expect: "Uses /gradio_api/call/ endpoint (Gradio 4.x), not legacy /api/ predict endpoint"
context: "Gradio 4.x migrated from /api/ to /gradio_api/call/ event API"
agent_hint: codex

- id: va.flute.host-url
Expand Down
4 changes: 2 additions & 2 deletions pmoves/configs/tts-engine-capabilities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ engines:
persona_default: archon-narrator

fish:
name: Fish Speech
name: Fish Speech S1
category: voice-cloning
voice_cloning: true
expressive_dimensions:
Expand Down Expand Up @@ -449,7 +449,7 @@ engines:
persona_default: polyglot-agent

qwen:
name: Qwen3 TTS
name: Qwen Voice Design
category: multilingual
voice_cloning: true
models:
Expand Down
195 changes: 88 additions & 107 deletions pmoves/monitoring/grafana/dashboards/messaging-gateway.json

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions pmoves/monitoring/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ scrape_configs:
static_configs:
- targets: ["session-context-worker:8100"]

- job_name: messaging-gateway
static_configs:
- targets: ["messaging-gateway:8101"]
# messaging-gateway removed — service no longer exists in docker-compose.yml
Comment thread
POWERFULMOVES marked this conversation as resolved.
Resolved

# === GitHub Runner Controller metrics ===
# Exposes github_runner_* metrics matching the github-runners Grafana dashboard
Expand Down
2 changes: 1 addition & 1 deletion pmoves/scripts/cast_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
python scripts/cast_tts.py -d "Speaker group" --list-devices
python scripts/cast_tts.py -d "Brysons Speaker set" "Alert: deployment complete"

Requires: catt, Ultimate-TTS-Studio running on port 7861
Requires: catt, Ultimate-TTS-Studio running on port 7860
"""
import argparse
import subprocess
Expand Down
63 changes: 39 additions & 24 deletions pmoves/services/botz-gateway/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,31 +586,46 @@ async def whoami(instance_id: Optional[str] = None):
# Try to match by instance_id → registered BoTZ → agent signature
if instance_id:
async with httpx.AsyncClient() as client:
response = await client.get(
f"{SUPABASE_URL}/rest/v1/botz_instances",
headers=supabase_headers,
params={"instance_id": f"eq.{instance_id}"}
try:
response = await client.get(
f"{SUPABASE_URL}/rest/v1/botz_instances",
headers=supabase_headers,
params={"instance_id": f"eq.{instance_id}"}
)
except httpx.RequestError as exc:
raise HTTPException(
status_code=502,
detail=f"Supabase lookup failed: {exc}",
) from exc
if response.status_code != 200:
raise HTTPException(
status_code=502,
detail=f"Supabase returned {response.status_code} for instance lookup",
)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
instances = response.json()
if instances:
botz = instances[0]
agent_id = botz.get("metadata", {}).get("agent_id", botz.get("botz_name"))
sig = agent_signatures.get(agent_id, {})
return {
"agent_id": agent_id,
"botz_name": botz.get("botz_name"),
"instance_id": instance_id,
"theme": {
"glyph": sig.get("glyph", "?"),
"color": sig.get("color", "#888888"),
"voice": sig.get("voice", "unknown"),
},
"skill_level": botz.get("skill_level"),
"is_available": botz.get("is_available"),
}
# instance_id provided but not found in Supabase — 404, not a fake identity
raise HTTPException(
status_code=404,
detail=f"No BoTZ instance found for instance_id={instance_id}",
)
if response.status_code == 200:
instances = response.json()
if instances:
botz = instances[0]
agent_id = botz.get("metadata", {}).get("agent_id", botz.get("botz_name"))
sig = agent_signatures.get(agent_id, {})
return {
"agent_id": agent_id,
"botz_name": botz.get("botz_name"),
"instance_id": instance_id,
"theme": {
"glyph": sig.get("glyph", "?"),
"color": sig.get("color", "#888888"),
"voice": sig.get("voice", "unknown"),
},
"skill_level": botz.get("skill_level"),
"is_available": botz.get("is_available"),
}

# Fallback: return hostname-based identity

# Fallback: no instance_id provided — return hostname-based identity
hostname = os.getenv("HOSTNAME", "unknown")
return {
"agent_id": "unknown",
Expand Down
2 changes: 2 additions & 0 deletions pmoves/services/cast-tts-gateway/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ services:
- FLUTE_GATEWAY_URL=http://flute-gateway:8055
- ULTIMATE_TTS_URL=http://host.docker.internal:7860
- NATS_URL=nats://nats:pmoves@nats:4222
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- app_tier
- bus_tier
Expand Down
6 changes: 3 additions & 3 deletions pmoves/services/flute-gateway/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ def _redact_url_password(url: str) -> str:
NATS_URL_REDACTED = _redact_url_password(NATS_URL)
SUPABASE_URL = os.getenv("SUPABASE_URL", "http://localhost:3010")
SUPABASE_KEY = get_secret("SUPABASE_SERVICE_ROLE_KEY", "")
# VibeVoice is now served by Ultimate-TTS-Studio (port 7860 native, 7861 Docker)
# Default to the host-gateway URL so the Flute stack is voice-ready by default.
# Ultimate-TTS-Studio: native Pinokio at 7860, Docker at 7861.
# Default to host-gateway (native) — override with ULTIMATE_TTS_URL for Docker.
VIBEVOICE_URL = (os.getenv("VIBEVOICE_URL") or "http://host.docker.internal:7860").strip()
WHISPER_URL = os.getenv("WHISPER_URL", "http://ffmpeg-whisper:8078")
ULTIMATE_TTS_URL = os.getenv("ULTIMATE_TTS_URL", "http://ultimate-tts-studio:7860")
ULTIMATE_TTS_URL = os.getenv("ULTIMATE_TTS_URL", "http://host.docker.internal:7860")
DEFAULT_PROVIDER = os.getenv("DEFAULT_VOICE_PROVIDER", "vibevoice")
FLUTE_API_KEY = get_secret("FLUTE_API_KEY", "")

Expand Down
11 changes: 6 additions & 5 deletions pmoves/services/flute-gateway/providers/ultimate_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ class UltimateTTSError(RuntimeError):
class UltimateTTSProvider(VoiceProvider):
"""Ultimate-TTS-Studio provider via Gradio API.

Supports 13 TTS engines:
Supports 14 TTS engines:
- kitten_tts (KittenTTS) - Ultra-lightweight, fast
- kokoro (Kokoro TTS) - Multilingual ONNX
- f5_tts (F5-TTS) - High quality voice cloning
- indextts2 (IndexTTS2) - Emotion vector control
- indextts (IndexTTS) - Index-based synthesis
- fish (Fish Speech) - Zero-shot cloning
- indextts2 (IndexTTS2) - Emotion vector control
- fish (Fish Speech S1) - Zero-shot cloning
- fish_s2 (Fish Speech S2 Pro) - 13-language zero-shot
- chatterbox (ChatterboxTTS) - Multilingual with controls
- chatterbox (ChatterboxTTS) - Expressive narration
- chatterbox_turbo (Chatterbox Turbo) - Fast multilingual
- chatterbox_multilingual (Chatterbox Multilingual) - 17-language synthesis
- voxcpm (VoxCPM) - Voice cloning + transcription
- higgs (Higgs Audio) - Streaming capable
- qwen (Qwen3 TTS) - Alibaba multilingual
- qwen (Qwen Voice Design) - Alibaba multilingual
- vibevoice (VibeVoice) - Style transfer synthesis

Audio format: WAV, 24kHz sample rate (varies by engine).
Expand Down
Loading
Loading