dsh-volume-knob: Read Aloud and Volume Control

Introduction

Staring at the screen to read replies in the DeepSeek Harness (DSH) Web GUI, or needing to listen to the latest conversation round while doing other tasks, often reveals the limitations of the browser’s native “Select and Speak” feature. It frequently mismatches the conversation structure: thinking blocks, tool cards, and collapsed usage rows get mixed into the main text, and it is difficult to pinpoint the starting point. The following introduces the community plugin dsh-volume-knob: it places a speaker button to the left of the model selector (in the input box’s tool row). By default, it reads from the first character of your latest question to the end of the current reply, and includes a vertical mixing desk for in-page media volume and system output volume.

What is this

dsh-volume-knob (npm package name dsh-volume-knob) is published by maintainer underworld-oddball, authored by Jianghu Laoyao. It targets the DSH Web GUI, registering in the conversation.input.right slot (a row of compact controls before the submit key). It renders entirely to the left of the model selector box; the plugin explicitly sets order: 40, typically placing it flush against the model selector box on the far right of this row within the same slot.

In one sentence: Read + Volume, one button—single click to read/stop, long press then tap the text to select a start point, hold and swipe up to open the mixing desk.

Core Features

Reading and Start Points

  • Default Start Point: The first character of your latest question. Every single click (or Enter / Space) starts reading from this location, following the order: “This Question → Assistant Replies afterwards (including the latest one)”. The page scrolls to the start point and marks the location with a blinking cursor (the cursor does not form an editor selection and does not affect copying).
  • Custom Start Point: Hold the icon for ≥400ms then release; the prompt changes to “Select start position and tap / After Pick → Tap”. The prompt disappears after moving the mouse; clicking on the main text sets the start point and immediately starts reading. If there is no valid operation within 5 seconds after release, it automatically cancels. During the selection period, any key press, scroll wheel, clicking on blank space, Esc, or loss of focus (other than moving the mouse) will cancel it. The diagnosis will record gesture:pick-cancel and the specific reason.
  • Stop: Click the icon again during reading to stop, or let the reading finish naturally. The marker disappears, and the start point rule returns to “the first character of the last question”. Start points are saved per conversation in localStorage and persist after a refresh; if a new reply appears, it automatically returns to the beginning of the latest question.

Text Sources (Whitelist)

The plugin only reads nodes with [data-chat-flow] and where data-chat-flow-kind is in the whitelist (types tested on DSH 0.1.7-rc.1):

kind Typical Content Read Aloud?
user Your Questions ✅
assistant-step (response) Reply Body Text ✅
assistant-step (reasoning) Thinking Process ❌
turn-process Collapsed Headers (e.g., Duration) ❌
turn-tail Usage Row ❌
tool-call Tool Invocation Cards ❌

Nodes are flattened as siblings in the DOM, reading from the start point to the end in document order. It requests POST /dsh-tts/speak in chunks of approximately 220 characters (depending on the configured dsh-tts provider chain). If dsh-tts is not installed or synthesis fails for a specific block, the remaining portion falls back to the browser’s speechSynthesis; it does not restart from the beginning. When the button is clicked, other <audio> elements on the page are paused first to avoid overlapping with dsh-tts’s speakReplies.

Volume Mixing Desk

Hold the icon and drag upwards (≥18px) to pop up a vertical mixing desk above the icon:

Fader Scope
In-Page Volume volume for all <audio> / <video> within the current tab (including this plugin’s reading)
System Volume System Output (macOS osascript, Linux pactl); on other platforms, this row is greyed out with an explanation.

The two are connected in series: System Volume acts as the upper limit. You can also use Alt + ↑ to toggle the mixing desk; clicking elsewhere on the page or pressing Esc closes the mixing desk or cancels selection.

Interface and Accessibility

Hovering over the icon displays a bilingual (Chinese/English) three-line tooltip (Chinese on top, English on bottom): Click to Read / Long Press to Select Start / Swipe Up to Adjust Volume. While reading, the icon turns blue with a sound wave arc. While selecting a start point, the cursor is amber; while reading, it is the theme color. ← / → moves the cursor character by character (Shift accelerates by 20 characters) for fine-tuning; positions navigated via arrow keys while idle will not become the default start point for the next click.

Installation and Activation

Installation via npm is recommended:

# Install from npm (Recommended)
dsh plugin --profile web add dsh-volume-knob

Equivalent method (fetching from GitHub repository source):

dsh plugin --profile web add github:underworld-oddball/dsh-volume-knob

Once included in the community list, it can also be searched and installed with one click in dsh-market (Settings → Plugin Market).

After installation, restart dsh web once (the plugin is integrated into the boot graph at startup), then refresh the page.

Environment Requirements (from package.json): DSH >= 0.1.5-rc.3 and Web GUI. The maintainer states in the README that the relevant slot APIs have been verified on next (0.1.7-rc.1) and latest (0.1.5-rc.3). dsh-tts is optional: it works without it, though synthesis quality and routing will fall back to browser speech.

Typical Usage

  1. Open a DSH Web session and confirm that a speaker icon appears to the right of the input box and to the left of the model selector.
  2. Listen to the latest round: Single-click the icon (starts after release), reading from the first character of the latest question to the end of the current reply; click again to stop.
  3. Start reading from a middle section: Long-press the icon for about 0.4 seconds and release → move the mouse → click on the target spot in the body text; after reading finishes, the marker disappears, and the next click will still read from the “beginning of the latest question” (unless you long-press to select a point again).
  4. Adjust Volume: Hold the icon and drag upwards to bring out the mixing desk, adjusting the in-page and system faders separately; or use Alt + ↑ to open/close the mixing desk.

Layout schematic (README):

[ …Other Plugin Icons ] [ 🔊 ] [ Model Selection ▾ ]   ← conversation.input.right row placed to the left of .model

Scenarios and Notes

Suitable for: DSH Web users who need to listen to the latest Q&A hands-free, want to scan code while listening during long streaming outputs, or want to lower/mute in-page media separately without touching the global system volume.

Permissions & Security: The plugin runs with the current dsh process permissions; the system volume interface routes through the host (GET/POST /dsh-volume-knob/system), and the mixing desk only accepts loopback or same-origin requests to prevent arbitrary web pages from changing machine volume. It is recommended to review the GitHub repository source code and the MIT license before installing.

Known Limitations (README): In-page volume acts as a master volume and overrides previously set volume attributes on elements; the browser’s speechSynthesis has no volume API, so during muting it can only cancel(); if a reply is re-rendered after the start point, the start point will try to clamp to the same node, but if the node is entirely replaced, it falls back to the default start point.

The DSH ecosystem emphasizes “Everything is a Plugin”; the SkillHub directory page is a community collection site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-volume-knob consolidates “Reading from latest question, selectable start points, in-page + system volume” into the input box row, aligning with the DSH message DOM whitelist and optional dsh-tts. For installation or interaction details, see the directory page and repository README:

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

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

Xiaoye