ppy-web/dsh-plugin-xiaomi-mimo-tts
ppy-web/dsh-plugin-xiaomi-mimo-tts为 DSH 提供小米 MiMo、豆包、浏览器本地 TTS 语音朗读;自动播报、自定义音色、UI 音效、桌宠联动、QQBot 联动。
Web UI 语音输入:输入框旁麦克风按钮语音转文字填入输入框;支持浏览器 Web Speech API 本地识别(零配置、无需密钥)与 OpenAI 兼容 Whisper API(OpenAI/Groq),模型与语言可在设置中选择。
中文 · English
Speech-to-text voice input for the DeepSeek Harness (DSH) web GUI.
Click the 🎤 mic button beside the composer, speak, click again — the transcript is written straight into the input box. The STT engine and model are selectable in Settings → 语音输入 (Voice Input).
SpeechRecognition, Chrome/Edge). Zero configuration, no API key,
live interim results appear in the input box as you speak.MediaRecorder and transcribes through any
OpenAI-compatible /v1/audio/transcriptions endpoint (OpenAI,
Groq, custom).whisper-1 (OpenAI), whisper-large-v3,
whisper-large-v3-turbo, distil-whisper-large-v3-en (Groq), or a custom
model name.localStorage.Build the tarball and install it into your DSH web profile (same flow as other
dsh-* plugins):
pnpm pack
# copy dsh-stt-input-*.tgz into the web profile and add the dependency,
# e.g. under ~/.dsh/profiles/web: pnpm add ../path/to/dsh-stt-input-0.1.0.tgz
# then restart `dsh web`.
The plugin registers:
conversation.input.left),conversation.composer.dock),settings.section → 语音输入).whisper-large-v3 is currently free.The browser engine needs Chrome or Edge (Web Speech API). Firefox falls back to the API engine.
┌──────────┐ click 🎤 ┌───────────────┐
│ Client │ ───────────────▶ │ MediaRecorder │ (api engine)
│ (browser)│ │ SpeechRecog. │ (browser engine)
└──────────┘ └──────┬────────┘
▲ ▼
│ setDraft(text) base64 audio (JSON)
│ POST /stt-input/transcribe
│ │
┌─────┴──────┐ ┌───────▼────────┐
│ input box │ ◀────────────│ Host (Node) │
└────────────┘ {ok,text} │ fetch → /v1/ │
│ audio/transcr. │
└─────────────────┘
The client (lib/client.js) captures audio and posts base64 JSON to the host
route /stt-input/transcribe. The host (lib/index.js) decodes the audio and
uploads it as multipart/form-data to ${baseUrl}/v1/audio/transcriptions
using Node ≥ 18 global fetch / FormData / Blob.
MIT