WayneYu430/dsh-voice-agent--packages-voice-web0

@wayneyu430227/dsh-voice-web

为 dsh-voice 提供专用浏览器 WebSocket 传输通道的插件

AI 分析

负责在浏览器与 DSH 后端之间建立专用的 `/voice` WebSocket 连接,传输 PCM 音频及控制信令。适合需要稳定音频流传输的语音交互场景。

套件
@wayneyu430227/dsh-voice-web
版本
0.1.0
最近更新
2026年8月25日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

@wayneyu430227/dsh-voice-web

English | 中文

Dedicated /voice WebSocket carrier. Binary client frames are 16 kHz PCM microphone chunks; binary server frames are 24 kHz PCM speech. JSON frames carry readiness, identified ASR and output text, task observations, speech lifecycle, audio commit, response-specific interruption, playback completion, and explicit session.close. An unexpected socket loss detaches the browser so reconnecting the same durable Voice Session within reconnectGraceMs reuses its exact provider conversation; explicit stop or a malformed or oversized frame final-closes it. Provider termination closes the browser transport instead of leaving the UI attached to a dead conversation. The route reuses the browser Host/Origin trust fence and does not share the ordinary RPC downlink.

Model Experience

Browser voice transport

What the model sees

The package contributes zero model-visible text; /voice transports audio and provider-independent lifecycle events only.

Token effect

Zero tokens are added directly.

KV Cache effect

WebSocket frames do not modify a model request or its reusable prefix.

Known Limitations and Deferred Work

  • Authentication remains the deployment's responsibility; trustedHosts is a DNS-rebinding and same-origin fence, not authentication.