dsh-typewriter-blip: Typewriter-Style Character Sound Effects During Model Streaming Responses

Preface

When running conversations in DeepSeek Harness (DSH), assistant responses typically appear on the page incrementally as they are generated. While keeping an eye on the screen allows you to follow the pace, if the window is minimized, obscured by other programs, or if you switch to another tab, you have to rely on occasionally switching back to confirm if output is still ongoing—there is no auditory feedback indicating that it is “still speaking.”

Streaming text in a browser merely involves the DOM growing in length, which inherently produces no sound. If you use standard timers to schedule audio effects, animation frames and fine-grained timers are throttled or even halted when the page enters the background, causing audio effects to disappear as well. The dsh-typewriter-blip introduced below (directory name nsswkj/dsh-typewriter-blip, maintained by nsswkj) addresses this by playing short sound effects character-by-character during the model’s streaming response output, while striving to maintain audio playback even when the window is in the background. The timbre can be swapped, synthesized, or loaded from audio samples.

What is this

Speech Blip is a DSH community plugin categorized under Model Inference. It attaches above the input box of the Harness conversation interface, observing text increments in the assistant’s response area. It uses Web Audio to schedule short sounds for every new character (configurable to skip spaces); it does not play sounds for user messages, tool calls, or reasoning processes (reasoning). Settings are saved in the browser’s localStorage (key dsh:typewriter-blip:v1) and take effect immediately upon modification.

The DSH ecosystem emphasizes “everything is a plugin.” The plugin directory site skillhub.cn is officially unaffiliated with DeepSeek or High-Flyer. It is advisable to review the source code and license (this plugin is MIT) before installation.

Core Features

Sound Scope and Rhythm

  • Sound for Responses Only: Enabled by default; requires the DOM attribute data-chat-flow-kind to be assistant-step and data-chat-group-part not to be reasoning.
  • Silent on Chat Entry / Full History Mount: For newly seen containers, only a baseline is established. If the host reuses line elements and the content becomes shorter or no longer starts with the old text, the baseline is reset without playing catch-up sounds.
  • Stop upon Completion: If no new characters appear within the “Stop upon Completion” window (default 140 ms) after the last character, the scheduled but unplayed portion is truncated. The queue is not discarded entirely; in the foreground, it retains a pending playback of approximately 6 characters or less than a third of a second, while in the background, it retains approximately the last 0.3 seconds (PLAYOUT_MS).
  • Minimum Interval: Controls the minimum milliseconds between two sounds (default approx. 45 ms). This limits density when streaming chunks arrive rapidly. If the queue becomes too long, the oldest items are dropped to prevent the sound from lagging behind the text by a second or two.

Audible in the Background

When the page is not visible, browsers often stop requestAnimationFrame and throttle timers to roughly once per second. The plugin utilizes a dual-clock system: when visible, it prioritizes animation frames; if no frames occur for over approximately 400 ms, a 250 ms timer takes over scheduling. Audio is scheduled on the Web Audio clock, so already scheduled sounds are not affected by page visibility. When the page is hidden, the buffer lead is increased (approx. 1.25 seconds in the background), and character batch arrivals trigger a direct tick to avoid relying solely on throttled timers to detect new text.

Timbre and Listening Experience

Preset Description
Soft Triangle wave, default.
Typewriter Sawtooth wave + high-pass noise transient.
Custom Synthesized (square/triangle/sawtooth/sine + fundamental frequency + duration + brightness) or local audio/* files (adjustable playback speed, max approx. 0.6s per character).

Additionally, there are panel items for pitch/volume (±12 semitones, 0–100%), random pitch and random volume (per-character jitter; custom audio files approximate pitch change via playback rate), skip spaces, preview, and reset to defaults. The button text is ♪ Speech Blip, and the panel opens above the button (flipping below if near the top edge). Animations are disabled under prefers-reduced-motion.

Installation and Activation

Applicable to the desktop profile. Choose one of the following:

Plugin Market (dshmarket): Search for Speech Blip (说话音效) and click install.

npm Package:

dsh plugin --profile desktop add dsh-typewriter-blip

GitHub Repository (identical content to npm package):

dsh plugin --profile desktop add github:nsswkj/dsh-typewriter-blip

Once installed, simply refresh the Harness page; no need to restart the DSH process.

The plugin runs within the page with the permissions of the current DSH process. Before installing, please read the repository source code and LICENSE to ensure acceptance.

Typical Usage

  1. Install according to the previous section and refresh the page.
  2. Find the ♪ Speech Blip button above the input box and click to open the panel.
  3. Turn on the Enable master switch; select a Timbre or Custom Timbre as needed, and adjust Minimum Interval, Stop upon Completion, Sound for Responses Only, etc.
  4. Start a conversation and wait for the assistant’s streaming output. You can use Preview to play a few characters consecutively to confirm the current settings (the button locks until playback finishes during preview).

To restore factory parameters, click Restore Defaults in the panel.

Use Cases and Notes

Suitable for: Developers who keep Harness running for long periods waiting for model output and wish to perceive “still typing” via short sounds; situations where progress cues are needed even when the window is in the background (still dependent on browser and system audio policies; behavior under extreme throttling depends on actual execution).

Notes:

  • For desktop profile only; the Web client plugin form depends on dsh.client.platform: web in package.json.
  • Does not produce sound for reasoning, user messages, or UI blocks (code blocks, buttons, etc.) to avoid confusion with “assistant body text.”
  • Custom audio and random pitch are implemented via playbackRate; increasing this rate shortens the duration of individual characters.
  • Statistics such as star counts on community directory pages may change; refer to the page and repository README at the time of installation.

Conclusion

dsh-typewriter-blip maps streaming responses into configurable per-character short sounds and implements scheduling compensations for background throttling. It is suitable for adding a layer of auditory feedback to DSH conversations that does not rely on watching the screen. For further information and issues:

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

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

Xiaoye