WayneYu430/dsh-voice-plugin--packages-voice-web0

@wayneyu430227/dsh-voice-web

Dedicated browser WebSocket carrier for dsh-voice

AI 분석

管理浏览器与后端之间的二进制音频流(PCM)及 JSON 信令传输,支持断线重连。适合需要高可靠性语音连接通道的 DSH 部署。

패키지
@wayneyu430227/dsh-voice-web
버전
0.1.0
최근 업데이트
2026. 8. 24.

설치

검증된 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.