dsh-voice-memo: Turning Dictation into Referenceable, Timestamped Notes in the Workspace

Preface

When developing agents or long-running sessions in DeepSeek Harness (DSH), voice input often stops at “say one sentence, transcribe once”: transcriptions appear in the chat, recordings stay in a temp directory, and when you later write delivery documents you can neither find which seconds correspond to which words nor embed waveforms alongside text into the repository.

The community already has TTS, single-shot ASR, voice input plugins, but few implement a complete pipeline treating dictation as archivable material. Below is dsh-voice-memo (category: memory) released by maintainer dingchenhui0618-arch: it adds a “Dictation” tab to the session view, supports hold-to-talk or WAV import, and after local recognition generates audio.wav, waveform.png, memo.md, and meta.json in the workspace for review, citation, and documentation.

What Is This

dsh-voice-memo is a dictation archiving plugin for DSH. Every recorded segment lands in the current session workspace (default voice-memos/<id>/), not just a fleeting transcription in the chat. Recognition defaults to the local speechToText or your configured local command; when the engine isn’t configured, it honestly marks the note as “untranscribed” rather than fabricating text.

Core Features

Panel: Recording and Archiving

The “Dictation” tab does four main things:

  1. Hold “Hold to Talk” to record, release to finish; shows audio level and elapsed seconds during recording. Also supports “Import WAV”.
  2. Browser-side decoding via Web Audio, mono mixing, resampling to 16 kHz, encoding as PCM16 WAV, then POSTing to the Host (the Host doesn’t need its own audio decoder).
  3. The Host invokes the local recognition engine to generate audio.wav, waveform.png, memo.md, meta.json.
  4. In the list you can click the waveform to seek, replay the audio, copy per-segment citations, and one-click copy the note path.

Archive Directory Structure

After the steps above, each dictation lands in the workspace with the following structure (outputDir is configurable, default relative path voice-memos):

<current session workspace>/voice-memos/
  20261020-104532-ab12/
    audio.wav       16 kHz mono PCM16
    waveform.png    960×220 transparent background waveform + time scale
    memo.md         frontmatter + metadata table + anchored segments + quote blocks
    meta.json       machine-readable record shared by panel and tools

Segments carry timestamps and #seg-N anchors, for example:

<a id="seg-1"></a>

### 00:00.0–00:02.4

Let me start with the conclusion: this approach can be deployed today.

See the repository README for the quote block format that can be pasted directly into delivery documents.

Differences from Common Approaches

Common approach This plugin
Transcription only in chat Writes wav + waveform + markdown + meta to disk
No timestamps Segments 00:01.2–00:03.4 and #seg-N
Relies on cloud ASR Defaults to local engine; failure only affects status, no fabricated text
Waveform requires ffmpeg / matplotlib Pure JS PNG writer (node:zlib + CRC32)
Only visible in panel Agent tools and panel share the same archive

Agent Tools

Tool Purpose
voice_memo_save Archive a WAV (path or base64) as a dictation note, returning the path and citation lines
voice_memo_list List workspace archives: time, duration, segment count, status, note path
voice_memo_read Read one note’s markdown, segments, and citation lines

Typical workflow: when the user says “organize this recording into a note”, call voice_memo_save; when writing documents, call voice_memo_read to get timestamped citations.

Recognition Engine (Configuration Summary)

The plugin registers as dsh-voice-memo in the profile’s plugin Config. asr.mode supports auto, harness, command, off:

  • harness: DSH speechToText; the full recording is sliced by silence into windows and transcribed window by window. Not available in desktop profiles without the experimental voice input plugin loaded; the panel will prompt that no engine is configured.
  • command: local command; convention is the last argument is a 16 kHz mono WAV, stdout outputs JSON (containing a segments array). The repository provides workers/transcribe_faster_whisper.py as a reference implementation; you need to install faster-whisper yourself.
  • auto: use harness if available, otherwise command, and if neither is present report clearly that no engine is configured.
  • off: only archive audio and waveform; notes are marked “untranscribed”.

Per-recording duration limits, audio size limits, etc. are shown in the configuration block below.

Installation and Activation

Install from GitHub (the repository already includes the built lib/, no local build needed):

dsh plugin --profile <profile> add github:dingchenhui0618-arch/dsh-voice-memo

For local development, you can link (modify the path for your machine):

dsh plugin --profile <profile> add link:D:\Projects\dsh-voice-memo

After installing, reload DSH and a “Dictation” tab will appear in the session view.

Optional configuration example (excerpt from README):

dsh-voice-memo:
  outputDir: voice-memos
  language: zh
  maxDurationSec: 600
  maxAudioBytes: 20971520
  asr:
    mode: auto
    command: null
    providerId: null
    timeoutSec: 120

When using faster-whisper, refer to the README to install dependencies in a virtual environment, and point command to transcribe_faster_whisper.py and your Python interpreter path.

Typical Usage

  1. Start a profile with the web client, confirm ASR is configured per the previous section (or start with off to archive only audio and waveform).
  2. Open a session, go to the “Dictation” tab, hold to talk to record a segment, or “Import WAV” to go through the same decode → resample → upload pipeline as a real screenshot.
  3. In the list, replay audio, click a segment to copy its citation, or paste the memo.md path into a README / delivery document.
  4. If the Agent handles recordings, state the WAV path in the session or let the Agent call voice_memo_save / voice_memo_read.

The HTTP API prefix is /dsh-voice-memo (GET /api/state, POST /api/save, etc.) for panel–Host communication; everyday use focuses on the tab and the three tools.

Use Cases and Considerations

Who it’s for: DSH users who need to keep meeting dictation, on-site explanations, or oral conclusions inside the project repository, want citations that point back to specific seconds with waveform evidence, and developers who want the Agent to list and read the same archive.

Permissions and security: the plugin runs with the current DSH process’s permissions, reads and writes voice-memos/ under the workspace (or your configured outputDir), and may execute your configured asr.command. Before installing, read the source code and the MIT license, and assess whether it should be part of your team’s standards. The community directory skillhub.cn is an independent site, with no official affiliation with DeepSeek / High-Flyer.

Known boundaries (README “Known boundaries”): microphone getUserMedia requires real-user authorization, so headless environments can’t do end-to-end automation; the harness path is primarily covered by unit tests in the maintainer’s environment, while command + faster-whisper has real archive validation; the waveform is an amplitude envelope, not spectral analysis. Whether dictation notes are committed to Git is your decision.

Conclusion

dsh-voice-memo completes the full pipeline of “dictation → timestamped segments → waveform PNG → markdown in repository”, and shares the archive with Agent tools. For the intro and category (memory), open the skillhub directory page; for installation and configuration details, refer to the GitHub repository README.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye