dsh-voice-mode 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +1 -1
- package/lib/index.js +4 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -2484,7 +2484,7 @@ var TELEMETRY_VIEW = [
|
|
|
2484
2484
|
{ stage: "first-tts-chunk", key: "telFirstChunk" },
|
|
2485
2485
|
{ stage: "first-audio-played", key: "telFirstPlayed" }
|
|
2486
2486
|
];
|
|
2487
|
-
var BUILD_TAG = "
|
|
2487
|
+
var BUILD_TAG = "54a46dd";
|
|
2488
2488
|
var TELEMETRY_FLAG = "dsh-voice-mode.telemetry";
|
|
2489
2489
|
var telemetryEnabled = typeof localStorage !== "undefined" && localStorage.getItem(TELEMETRY_FLAG) === "1";
|
|
2490
2490
|
console.log("[dsh-voice] build=" + BUILD_TAG);
|
package/lib/index.js
CHANGED
|
@@ -1153,7 +1153,10 @@ var TtsQueue = class {
|
|
|
1153
1153
|
q = { pending: [], busy: false, seq: 0, epoch: 0, errorNotified: false, backoff: 0 };
|
|
1154
1154
|
this.queues.set(sessionId, q);
|
|
1155
1155
|
}
|
|
1156
|
-
if (q.pending.length >=
|
|
1156
|
+
if (q.pending.length >= 500) {
|
|
1157
|
+
console.warn("[dsh-voice-mode] TTS queue overflow, dropping oldest sentence");
|
|
1158
|
+
q.pending.shift();
|
|
1159
|
+
}
|
|
1157
1160
|
q.pending.push({ text, epoch: q.epoch });
|
|
1158
1161
|
void this.pump(sessionId, q);
|
|
1159
1162
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-voice-mode",
|
|
3
3
|
"description": "Full-duplex voice plugin for DeepSeek Harness: local zipformer2 streaming ASR (no API key) → editable draft; Edge TTS or local VITS / Kokoro read-aloud with live captions; true barge-in; hardened HTTP surface + model SHA256 pinning; compatible with dsh 0.1.1 → 0.1.2. · DSH 语音双工插件:流式识别入草稿、按句朗读+实时字幕、开口即打断;免 API Key、安全加固、新旧版本兼容。",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|