voicekit-orchestration

Orchestrate VoiceKit ($17,000 startup credits tier) for real-time voice agents, two-host podcast conversations, high-fidelity TTS, and phone/WebRTC intake — replacing ElevenLabs everywhere alongside C

SKILL.md

GitHub

VoiceKit ($17,000 Credits Tier) Voice Agents, Podcast Studio & TTS Orchestration

Core Directive (Replaces ElevenLabs Everywhere)

  • VoiceKit (voicekit / voicekit-mcp) is our primary hosted voice platform, backed by $17,000 in VoiceKit credits.
  • Never use ElevenLabs (elevenlabs is disabled in OpenClaw and deprecated across agent-skills and @theme.tools).
  • Canonical Audio & Voice Provider Chain:
    1. VoiceKit (https://api.voicekit.ai/v1, $17,000 Credits Tier) — Primary hosted platform for real-time phone/WebRTC voice agents (VOICEKIT_AGENT_ID), two-host conversational podcasts (host_a: "sage", host_b: "river"), brand voice cloning, and high-fidelity streaming TTS (VOICEKIT_API_KEY).
    2. MeloTTS on Cloudflare Workers AI (@cf/myshell-ai/melotts, MIT) — Zero-infrastructure edge-native OSS TTS (env.AI.run) cached in Cloudflare R2 for high-volume page-audio narration on Cloudflare Workers.
    3. Piper (rhasspy/piper, MIT) — Self-hosted container OSS TTS fallback for offline/local workstation synthesis.

MCP Tools (voicekit-mcp via paperclip-mcp-stdio-runner.mjs)

  • voicekit_credits_status: Inspect the $17,000 VoiceKit credit grant runway, active voice IDs (sage, river), provider chain, and ElevenLabs deprecation status.
  • voicekit_synthesize_speech: Build and dispatch a VoiceKit TTS synthesis request with R2/Cloudflare edge cache headers and MeloTTS fallback metadata.
  • voicekit_create_podcast_conversation: Build a two-host conversational podcast job (mode: "conversation", host_a: "sage", host_b: "river") for the 12-media-orchestration/notebooklm-pipeline.md workflow.
  • voicekit_deploy_voice_agent: Build a VoiceKit real-time phone/Twilio/WebRTC intake agent configuration (POST /webhook/voicekit, bearer-gated on VOICEKIT_TOOL_BEARER).

Environment & Secret Keys

  • VOICEKIT_API_KEY: API key resolved via Infisical / get-secret VOICEKIT_API_KEY.
  • VOICEKIT_AGENT_ID: Real-time conversational intake agent ID for @theme.tools/workflows (voice-ai-intake).
  • VOICEKIT_TOOL_BEARER: Bearer secret authenticating VoiceKit server-side tool webhooks (/webhook/voicekit, /tools/capture-intent, /tools/book, /tools/schedule-callback).
  • VOICEKIT_VOICE_HOST_A: Default primary host voice (sage).
  • VOICEKIT_VOICE_HOST_B: Default co-host voice (river).

@theme.tools Upstream Libraries & Paperclip Quotas Integration

  • @theme.tools/media-video (packages/media-video/src/contracts.ts & core.ts):
    • buildVoiceKitTtsRequest(input: VoiceKitSynthesisInput) — Deterministic VoiceKit ($17,000 credits tier) TTS request builder with Cloudflare Workers AI MeloTTS (@cf/myshell-ai/melotts) + local Piper ONNX fallback metadata.
    • buildVoiceKitPodcastStudioRequest(input: VoiceKitPodcastConversationInput) — Deterministic VoiceKit Studio two-host conversational podcast builder (voicekit-sage + voicekit-river, -16 LUFS).
  • @theme.tools/workflows (packages/workflows/src/field-service/worker/features/voice-ai-intake):
    • Real-time phone/Twilio/WebRTC intake (POST /webhook/voicekit + legacy alias /webhook/elevenlabs, VOICEKIT_AGENT_ID, VOICEKIT_TOOL_BEARER).
  • paperclip.fleet-usage-observatory (/home/professormanhattan/paperclip-plugins/fleet-usage-observatory):
    • Surfaces the $17,000.00 USD VoiceKit credit wallet (key-voicekit-voice-brian) and the pathway-hyperframes-voicekit-pexels-4k zero-out-of-pocket 4K video narration pathway.

Multi-Swarm Parallelization & OpenCode (DeepSeek) Offload Mandate

  • Domain Swarm Directive: Decompose work into contract-locked OpenSpec DAG nodes, convene a right-sized SCRUM quorum (claude + codex + gemini) for key decisions, and offload all throughput-safe implementation, plugin catalogs, unit tests (100% coverage), and parallel Cloudflare Browser Run E2E suites to opencode (DeepSeek) swarms.
  • Massive OpenCode (DeepSeek) Offload: Whenever a task slice is throughput-safe (bounded implementation, plugin catalog shards, 100% unit test generation, Playwright E2E specs, migrations, or documentation), offload it to parallel opencode swarms powered by DeepSeek (~/.agentskills/bin/opencode-deepseek.sh via the LiteLLM 4-key pool https://llm.megabyte.space/v1) rather than consuming premium claude, codex, or gemini client quota.
  • Tri-Frontier Parallel Swarms & Right-Sized SCRUM Quorum: When complex architectural synthesis, speculative critical-path racing, or adversarial verification is needed, run claude, codex, and gemini in parallel across isolated Git worktrees (bin/multi-swarm-orchestrator.ts) guided by a right-sized collaborative SCRUM meeting (bin/scrum-deliberation-quorum.ts) of only the required specialist agents. See rules/parallel-multi-swarm-orchestration.md.
  • End-of-Round Parallel Meaning & Preference Triad Extraction (bin/triad-end-of-turn-sync.ts): At the end of every prompt round (running in parallel with final verification, deployment, and reporting), extract any possible meaning, preference, architectural lesson, reusable site code, or system configuration from the current agent window and store it concurrently into heymegabyte/agent-skills (for AI skills/rules/prompts — always updated under the Minimum-Prompt Ecosystem Completeness Assumption: assuming the skills should have already been written so that we write as few prompts as possible to finish as complete a product or multi-repo ecosystem as possible via massive parallel agent swarms), heymegabyte/theme.tools (for reusable site/app code across the 28 canonical @theme.tools/* libraries), and heymegabyte/install.doctor (for reusable system/host code).
  • Concurrent End-of-Prompt Delivery Closure: Run documentation/comment reconciliation and bounded theme.tools, install.doctor, and agent-skills extraction reviews concurrently with proportional tests and release preparation. After reconciling those changes and generated outputs, revalidate the exact final tree. Commit only that tested tree, push it normally to main, promote it through the approved production rail, and run production smoke plus critical E2E verification. Fail closed without mutating production when authority, credentials, spending permission, review, recovery, validation, or provenance gates are missing; record the exact blocker instead.