Community plugin

CC2027MK2 / dsh-watch-draft

Smartwatch bridge: lets a watch (Xiaomi Watch / WearOS) chat with DSH over LAN with voice input.

  • JavaScript
  • MIT
  • 0 stars
  • Nov 18, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-watch-draft is a DSH plugin published from the pc-bridge package in the CC2027MK2/dsh-watch-phone repository.

  • Listing statusManifest verified
  • Manifest checkedNov 19, 2026
  • Packagedsh-watch-draft
  • Package pathpc-bridge
  • Package version0.1.0
  • Source commitbf5de55
  • Repository createdNov 17, 2026

Capabilities and topics

androiddshsmartwatchstt
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

pc-bridge — the desktop predecessor

This is the first generation of the bridge: a DSH Host plugin that runs on a PC and does the speech work itself, because the watch has neither a SpeechRecognizer nor a text-to-speech engine.

watch  ──HTTP──▶  this bridge (:38401)  ──▶  DSH llm.stream()  ──▶  reply
   │                                                                  │
   └──────────────  WAV upload /stt  ◀── Vosk (offline)   /tts ──▶ SAPI WAV

The phone-side bundle in the parent directory (dsh-watch-phone) is what you normally want today: it creates a real DSH session on the phone, so the conversation shows up in DeepSeek Harness with its model and persona. Keep this bridge for two cases:

  • you want the DSH side to stay on the PC while the watch talks to it;
  • you need POST /relay — a TCP relay inside the phone's container, which lets a PC on a different subnet pair and connect to a watch's wireless-debugging port (adb pair <phone>:<relay-port> <code>).

What it exposes

RoutePurpose
GET /healthliveness + session id
POST /chat {text}send a turn to the model, returns {ok, reply}
POST /sttmultipart audio (16 kHz mono 16-bit WAV) → {ok, text, peak, rms, gain, seconds}
POST /tts {text}Windows SAPI → audio/wav (SHA-1 cached on disk)
POST /relay {port, targetHost, targetPort}start a TCP relay; GET /relay lists them
GET /config, POST /configloopback-only operator switches (exec, relay)
GET /watch/app.apkthe watch client for adb install

Requirements

  • Node.js 22+ (uses node:sqlite-free APIs only, but modern ESM).
  • python with vosk installed: pip install vosk, then a model, e.g. vosk-model-small-cn-0.22, placed at models/vosk-model-small-cn-0.22 (configurable).
  • Windows for /tts (System.Speech), via tts_sapi.ps1. On other platforms point the client at a different /tts implementation or leave TTS disabled.

Paths

Nothing is hard-coded. Everything is relative to this folder, overridable:

VariableDefaultMeaning
DSH_WATCH_BRIDGE_DIRdirectory of index.jswhere bridge.log, tts-cache/, models/ live
DSH_PHONE_DIR../phone-dsh-refolder served by /files and appended to by /collect (development helper; 404 when absent)
DSH_PYTHONpythoninterpreter that runs stt_worker.py

Run it

It is a DSH Host plugin, so install it as a bundle (package.json declares dsh.bundle.patch), or run the HTTP server standalone for a smoke test:

node -e "import('./index.js').then(async (m) => {
  const ctx = { get: () => ({ currentSelection: () => ({ provider: 'p', model: 'm' }) }),
                on: () => {} }
  const dispose = typeof m.apply === 'function' ? await m.apply(ctx, { port: 38401 }) : null
  console.log('listening on 38401')
})"

DESIGN.md records the architecture decisions and every trap met while building this (session corruption, WAV header validation, PowerShell encoding, adb over a foreign subnet).

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/CC2027MK2/dsh-watch-phone/pc-bridge)