v2: initial commit — TTS proxy with STT fallback to whisper.cpp

- OpenAI-compatible API on localhost:9998
- TTS → RouterAI /v1/audio/speech (Google Gemini Flash)
- STT → RouterAI → whisper.cpp fallback
- Health endpoint, CORS, config from openclaw.json
- systemd service unit
This commit is contained in:
Roko
2026-07-08 13:15:48 +07:00
commit c68ee43232
3 changed files with 316 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Roko Voice Proxy (RouterAI TTS/STT bridge)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/node /home/openclaw/.openclaw/routerai-voice-proxy.js
Restart=always
RestartSec=5
Environment=NODE_ENV=production
[Install]
WantedBy=default.target