openrouter-tts
Installation
SKILL.md
OpenRouter TTS for Hermes Agent
Use OpenRouter's /api/v1/audio/speech endpoint (OpenAI-compatible) as a Hermes TTS command provider. Better voices than Edge, native Telegram voice bubbles (opus), no local infra, bills to the OpenRouter credit pool.
Why
- Native Telegram voice bubbles via
voice_compatible: true(Edge delivers a regular attachment, not a bubble) - 19 TTS models: Microsoft MAI-Voice-2, Google Gemini 3.1 Flash TTS, xAI Grok Voice, Deepgram Aura-2, MiniMax Speech 2.8, Fish Audio, Mistral Voxtral, Kokoro, and more
- Stateless voice cloning via
input_references(advanced, not in the default wrapper) - Per-character pricing, typically fractions of a cent per reply
Setup
1. Wrapper script
Save scripts/openrouter_tts.py (see linked file) to ~/.hermes/scripts/openrouter_tts.py.
Defaults: model microsoft/mai-voice-2, voice en-US-Harper:MAI-Voice-2.
Overridable via env: OPENROUTER_TTS_MODEL, OPENROUTER_TTS_VOICE, and optional OPENROUTER_TTS_INSTRUCTIONS (Fish Audio delivery directions).
Key: OPENROUTER_API_KEY env or read from ~/.hermes/.env.