Back to home@GooDAnDReaDY

dsh-tts

Text-to-speech for DeepSeek Harness: speak agent replies in the Web UI with a provider fallback chain

Stars
0
Language
JavaScript
Created
Aug 20, 2026
Updated
Aug 20, 2026
GitHub repo

Introduction

dsh-tts

Text-to-speech for the DeepSeek Harness Web GUI. When Speak agent replies is on, each finished assistant turn is synthesized on the host and played in the browser. API keys never reach the browser.

A later messenger hub can call the same host chain (POST /dsh-tts/speak or the speak_text tool). This package does not talk to Telegram itself.

Install

# From npm (after a GitHub/npm release):
dsh plugin --profile web add @goodandready/dsh-tts

# From a local checkout:
dsh plugin --profile web add file:/path/to/dsh-tts

Restart the Web UI, then hard-refresh the browser.

Configure

Settings -> Speech:

  • Speak agent replies -- off by default.
  • Provider chain -- pick a provider, paste its API key in that row, then Save (or leave the key field). The value is written to the host credentials store immediately and is never sent back to the browser. The row shows Configured / Not set. Leave the field blank to keep an existing key. Local providers (edge, piper, espeak) have no key field.
  • A provider without a credential is skipped, not fatal.
  • Piper / eSpeak / edge-tts binaries and the Piper model path.

Keys land in the same store the rest of DSH uses (credentials file, then the process environment). The plugin stores names, never values:

OPENAI_API_KEY
ELEVENLABS_API_KEY
GEMINI_API_KEY
AZURE_SPEECH_KEY
GROQ_API_KEY
DEEPGRAM_API_KEY
OPENROUTER_API_KEY

Put additional keys in the same pool (<PROVIDER>_API_KEY_2, ...) if you use a key-rotation plugin.

Providers

KeyServiceDefault model / voiceCredential
openaiOpenAI Audio Speechgpt-4o-mini-tts / alloyOPENAI_API_KEY
elevenlabsElevenLabseleven_multilingual_v2ELEVENLABS_API_KEY
googleGemini TTSgemini-2.5-flash-preview-tts / KoreGEMINI_API_KEY
azureAzure Speechneural voice + regionAZURE_SPEECH_KEY + region
groqGroq PlayAIplayai-ttsGROQ_API_KEY
deepgramDeepgram Auraaura-asteria-enDEEPGRAM_API_KEY
openrouterOpenRouter /audio/speechopenai/gpt-4o-mini-tts-2025-12-15OPENROUTER_API_KEY
edgeMicrosoft Edge Neural via edge-tts CLIru-RU-SvetlanaNeuralnone
piperlocal Piperpath to an ONNX modelnone
espeakeSpeak NGvoice runone

Default chain: edgepiperespeak. Deepgram Aura does not list Russian; keep it below a Russian-capable voice if you speak Russian.

Free local / CLI providers

pip install edge-tts          # provides the `edge-tts` binary
# piper: install the Piper binary and point Settings at your .onnx model
sudo apt install espeak-ng    # or the equivalent package on your OS

Tool

speak_text(text) — synthesize with the same chain. The tool result is a short status line; it does not inject audio into the model history.

Routes

RoutePurpose
GET /dsh-tts/statuschain and whether auto-speak is on
GET or PUT /dsh-tts/configsettings plus configured/writable/ref per cloud provider. PUT may include keys; values are stored as credentials and never echoed.
PUT or DELETE /dsh-tts/credentialwrites or clears one host credential immediately
GET /dsh-tts/pending?after=audio produced for finished replies
POST /dsh-tts/speak{text} -> {ok, provider, mime, audioBase64}

Requirements

  • DeepSeek Harness with the Web GUI
  • Node 20+
  • Optional: edge-tts, piper, espeak-ng for the free providers

License

MIT