dsh-voice-mode 0.7.34 → 0.7.36
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/README.en.md +2 -0
- package/README.md +2 -0
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/lib/client.js +11 -2
- package/lib/index.js +1 -0
- package/lib/msedge-tts.cjs +5 -8
- package/package.json +5 -5
package/README.en.md
CHANGED
|
@@ -17,6 +17,8 @@ interrupts playback and the running turn. No additional speech-service API key i
|
|
|
17
17
|

|
|
18
18
|
|
|
19
19
|
> **Current status (2026-10-28):** v0.7.34 fixes Kokoro int8/fp32 model and explicitly hashed support-file downloads using historical upstream revisions that match the existing checksums. Check npm and Releases for availability; v0.7.33 does not contain this fix. Models, voices and cache locations are unchanged. Do not disable checksum verification.
|
|
20
|
+
|
|
21
|
+
Host compatibility check (2026-10-30): anchors, types and isolated runtime checks passed for dsh 0.2.1-rc.5. See the [compatibility record](../../docs/compat-contract.md) for evidence and unverified layers; this does not establish microphone or cross-platform acceptance.
|
|
20
22
|
>
|
|
21
23
|
> CI results do not establish real-device audio quality or compatibility with every host version. See the [changelog](https://github.com/qishuilalala/dsh-voice-mode/blob/main/CHANGELOG.md), [compatibility evidence](https://github.com/qishuilalala/dsh-voice-mode/blob/main/docs/compat-contract.md), and [roadmap](https://github.com/qishuilalala/dsh-voice-mode/blob/main/docs/plan/roadmap-2026-10.md). The declared dsh range is `>=0.1.1-rc.2 <0.3.0-0`; untested versions are not guaranteed.
|
|
22
24
|
|
package/README.md
CHANGED
|
@@ -30,6 +30,8 @@ dsh ≥0.1.7 上按钮挂在发送键左侧(`conversation.input.activity`)
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
> **当前状态(2026-10-28)**:v0.7.34 修复 Kokoro int8/fp32 主模型及固定摘要支持文件下载校验失败;可安装版本以 npm 徽章与 Releases 为准。v0.7.33 不含这项修复。修复使用与既有摘要匹配的上游历史版本,不改模型、音色或缓存目录,请勿关闭摘要校验。
|
|
33
|
+
|
|
34
|
+
兼容跟进(2026-10-30):最新 dsh 0.2.1-rc.5 的锚点、类型与隔离运行时复核通过;完整证据和未验收层见[兼容契约](../../docs/compat-contract.md)。
|
|
33
35
|
>
|
|
34
36
|
> CI 通过不代表真实听感、所有硬件或所有宿主版本均已验证。详见 [CHANGELOG](https://github.com/qishuilalala/dsh-voice-mode/blob/main/CHANGELOG.md)、[兼容证据](https://github.com/qishuilalala/dsh-voice-mode/blob/main/docs/compat-contract.md)和[后续路线图](https://github.com/qishuilalala/dsh-voice-mode/blob/main/docs/plan/roadmap-2026-10.md)。包声明范围为 `>=0.1.1-rc.2 <0.3.0-0`,未测版本不保证。
|
|
35
37
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -19,7 +19,7 @@ comment in `build.mjs` for why). Their licenses are reproduced below. Generated
|
|
|
19
19
|
| es-errors | 1.3.0 | MIT |
|
|
20
20
|
| es-object-atoms | 1.1.2 | MIT |
|
|
21
21
|
| es-set-tostringtag | 2.1.0 | MIT |
|
|
22
|
-
| follow-redirects | 1.16.
|
|
22
|
+
| follow-redirects | 1.16.2 | MIT |
|
|
23
23
|
| form-data | 4.0.6 | MIT |
|
|
24
24
|
| function-bind | 1.1.2 | MIT |
|
|
25
25
|
| get-intrinsic | 1.3.0 | MIT |
|
|
@@ -404,7 +404,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
404
404
|
SOFTWARE.
|
|
405
405
|
```
|
|
406
406
|
|
|
407
|
-
## follow-redirects 1.16.
|
|
407
|
+
## follow-redirects 1.16.2
|
|
408
408
|
|
|
409
409
|
- License: MIT
|
|
410
410
|
- Source: ssh://git@github.com/follow-redirects/follow-redirects.git
|
package/lib/client.js
CHANGED
|
@@ -466,7 +466,9 @@ function createAsrEngine(config, sessionId) {
|
|
|
466
466
|
const levelListeners = /* @__PURE__ */ new Set();
|
|
467
467
|
const telemetryListeners = /* @__PURE__ */ new Set();
|
|
468
468
|
let utteranceEndAt = null;
|
|
469
|
+
let telemetryRound = 0;
|
|
469
470
|
const emitTelemetry = (stage) => {
|
|
471
|
+
if (stage === "utterance-end") telemetryRound++;
|
|
470
472
|
const ev = { stage, at: Date.now() };
|
|
471
473
|
for (const fn of telemetryListeners) {
|
|
472
474
|
try {
|
|
@@ -786,6 +788,7 @@ function createAsrEngine(config, sessionId) {
|
|
|
786
788
|
emitTelemetry("utterance-end");
|
|
787
789
|
}
|
|
788
790
|
emitTelemetry("endpoint-fired");
|
|
791
|
+
const myRound = telemetryRound;
|
|
789
792
|
const from = uploadedSamples;
|
|
790
793
|
const samples = sliceSince(from);
|
|
791
794
|
const recoverySegment = segment;
|
|
@@ -905,6 +908,7 @@ function createAsrEngine(config, sessionId) {
|
|
|
905
908
|
settle(null);
|
|
906
909
|
return;
|
|
907
910
|
}
|
|
911
|
+
if (myRound === telemetryRound) emitTelemetry("final-ready");
|
|
908
912
|
resetFailStreaks();
|
|
909
913
|
restoreState();
|
|
910
914
|
const rawText = out.text ?? "";
|
|
@@ -1852,7 +1856,10 @@ var zh = {
|
|
|
1852
1856
|
// telemetry(P1-5 开发模式延迟埋点状态条:各段耗时标签)
|
|
1853
1857
|
telUtteranceEnd: "\u8BF4\u5B8C",
|
|
1854
1858
|
telEndpoint: "\u7AEF\u70B9",
|
|
1855
|
-
|
|
1859
|
+
// 「提交」= 定稿上传发起;「定稿就绪」= 定稿文本可用。两者之间是宿主定稿耗时
|
|
1860
|
+
// (SenseVoice 整段重译),故不得都叫「定稿」——2026-11-03 补 final-ready 时改名。
|
|
1861
|
+
telSubmitted: "\u63D0\u4EA4",
|
|
1862
|
+
telFinalReady: "\u5B9A\u7A3F\u5C31\u7EEA",
|
|
1856
1863
|
telFirstTokenLabel: "\u9996Token",
|
|
1857
1864
|
telFirstSentence: "\u9996\u53E5",
|
|
1858
1865
|
telFirstChunk: "\u9996chunk",
|
|
@@ -2135,6 +2142,7 @@ var en = {
|
|
|
2135
2142
|
telUtteranceEnd: "end",
|
|
2136
2143
|
telEndpoint: "endpoint",
|
|
2137
2144
|
telSubmitted: "submit",
|
|
2145
|
+
telFinalReady: "final ready",
|
|
2138
2146
|
telFirstTokenLabel: "1st token",
|
|
2139
2147
|
telFirstSentence: "1st sentence",
|
|
2140
2148
|
telFirstChunk: "1st chunk",
|
|
@@ -3965,6 +3973,7 @@ var TELEMETRY_VIEW = [
|
|
|
3965
3973
|
{ stage: "utterance-end", key: "telUtteranceEnd" },
|
|
3966
3974
|
{ stage: "endpoint-fired", key: "telEndpoint" },
|
|
3967
3975
|
{ stage: "submitted", key: "telSubmitted" },
|
|
3976
|
+
{ stage: "final-ready", key: "telFinalReady" },
|
|
3968
3977
|
{ stage: "first-llm-token", key: "telFirstTokenLabel" },
|
|
3969
3978
|
{ stage: "first-sentence-text", key: "telFirstSentence" },
|
|
3970
3979
|
{ stage: "first-tts-chunk", key: "telFirstChunk" },
|
|
@@ -3984,7 +3993,7 @@ function telemetryDeltas(tel) {
|
|
|
3984
3993
|
}
|
|
3985
3994
|
return out;
|
|
3986
3995
|
}
|
|
3987
|
-
var BUILD_TAG = "
|
|
3996
|
+
var BUILD_TAG = "1d7d07a";
|
|
3988
3997
|
var TELEMETRY_FLAG = "dsh-voice-mode.telemetry";
|
|
3989
3998
|
var telemetryEnabled = typeof localStorage !== "undefined" && localStorage.getItem(TELEMETRY_FLAG) === "1";
|
|
3990
3999
|
console.log("[dsh-voice] build=" + BUILD_TAG);
|
package/lib/index.js
CHANGED
package/lib/msedge-tts.cjs
CHANGED
|
@@ -11409,9 +11409,9 @@ var require_dist = __commonJS({
|
|
|
11409
11409
|
}
|
|
11410
11410
|
});
|
|
11411
11411
|
|
|
11412
|
-
// node_modules/.pnpm/follow-redirects@1.16.
|
|
11412
|
+
// node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3/node_modules/follow-redirects/debug.js
|
|
11413
11413
|
var require_debug = __commonJS({
|
|
11414
|
-
"node_modules/.pnpm/follow-redirects@1.16.
|
|
11414
|
+
"node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports2, module2) {
|
|
11415
11415
|
var debug;
|
|
11416
11416
|
module2.exports = function() {
|
|
11417
11417
|
if (!debug) {
|
|
@@ -11429,9 +11429,9 @@ var require_debug = __commonJS({
|
|
|
11429
11429
|
}
|
|
11430
11430
|
});
|
|
11431
11431
|
|
|
11432
|
-
// node_modules/.pnpm/follow-redirects@1.16.
|
|
11432
|
+
// node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3/node_modules/follow-redirects/index.js
|
|
11433
11433
|
var require_follow_redirects = __commonJS({
|
|
11434
|
-
"node_modules/.pnpm/follow-redirects@1.16.
|
|
11434
|
+
"node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3/node_modules/follow-redirects/index.js"(exports2, module2) {
|
|
11435
11435
|
var url = require("node:url");
|
|
11436
11436
|
var URL2 = url.URL;
|
|
11437
11437
|
var http = require("node:http");
|
|
@@ -11666,7 +11666,7 @@ var require_follow_redirects = __commonJS({
|
|
|
11666
11666
|
options.headers[headerList[i]] = headerList[i + 1];
|
|
11667
11667
|
}
|
|
11668
11668
|
}
|
|
11669
|
-
if (!isArray(options.sensitiveHeaders)) {
|
|
11669
|
+
if (!Array.isArray(options.sensitiveHeaders)) {
|
|
11670
11670
|
options.sensitiveHeaders = [];
|
|
11671
11671
|
}
|
|
11672
11672
|
if (options.host) {
|
|
@@ -11923,9 +11923,6 @@ var require_follow_redirects = __commonJS({
|
|
|
11923
11923
|
var dot = subdomain.length - domain.length - 1;
|
|
11924
11924
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
11925
11925
|
}
|
|
11926
|
-
function isArray(value) {
|
|
11927
|
-
return value instanceof Array;
|
|
11928
|
-
}
|
|
11929
11926
|
function isString(value) {
|
|
11930
11927
|
return typeof value === "string" || value instanceof String;
|
|
11931
11928
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dsh-voice-mode",
|
|
3
3
|
"description": "Voice plugin for DeepSeek Harness: local streaming speech recognition into editable drafts, sentence-by-sentence read-aloud with captions, and voice interruption. Edge online or local VITS/Kokoro TTS; host compatibility is bounded by engines.dsh.",
|
|
4
4
|
"icon": "./icon.svg",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.36",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "node build.mjs",
|
|
50
50
|
"prepack": "node build.mjs",
|
|
51
|
-
"test": "node test/segmenter.test.mjs && node test/aec.test.mjs && node test/download.test.mjs && node test/endpoint.test.mjs && node test/endpoint-short.test.mjs && node test/resample.test.mjs && node test/sense-worker.test.mjs && node test/detect-route.test.mjs && node test/verify-client.mjs && node test/asr-host-rebuild.test.mjs && node test/barge-in-manual.test.mjs && node test/barge-in-detect-behavior.test.mjs && node test/sense-lang.test.mjs && node test/caption-a11y.test.mjs && node test/emotion.test.mjs && node test/emotion-tts-local.test.mjs && node test/emotion-integration.test.mjs && node test/backchannel.test.mjs && node test/strings-coverage.test.mjs && node test/yield-ms-wiring.test.mjs && node test/fail-streak-notice.test.mjs && node test/partial-gating.test.mjs && node test/asr-lifecycle.test.mjs && node test/steer-submit-behavior.test.mjs && node test/correct-cycle-behavior.test.mjs && node test/host-security-behavior.test.mjs && node test/echo-tail.test.mjs && node test/host-fixes.test.mjs && node test/tts-queue-engine.test.mjs && node test/matchBackchannel.test.mjs && node test/settings-load.test.mjs && node test/preview-error.test.mjs && node test/hold-clear.test.mjs && node test/barge-in-detect.test.mjs && node test/wakeword.test.mjs && node test/wake-standby.test.mjs && node test/wake-flow.test.mjs && node test/tts-playback.test.mjs && node test/settings-store.test.mjs && node test/i18n.test.mjs && node test/i18n-protocol.test.mjs && node test/package-install.test.mjs && node test/tts-runtime.test.mjs && node test/steer-submit.test.mjs && node test/draft-compose.test.mjs && node test/finalize-ux.test.mjs && node test/llm-correct.test.mjs && node test/autosend-decouple.test.mjs && node test/settings-effective.test.mjs && node test/silent-path-hints.test.mjs && node test/host-hardening.test.mjs && node test/mic-gesture.test.mjs && node test/shortcut-ui.test.mjs && node test/focus-ownership.test.mjs && node test/finalize-concurrency.test.mjs && node test/hold-cancel-watermark.test.mjs && node test/idle-activity.test.mjs && node test/tts-edge-escape.test.mjs && node test/tts-empty-audio.test.mjs && node test/partial-202-retry.test.mjs && node test/enter-fail-mic-leak.test.mjs && node test/silence-playing-guard.test.mjs && node test/salvage-seed-cross-sentence.test.mjs && node test/model-download-idle.test.mjs && node test/model-tree-offline.test.mjs && node test/model-sha-cache.test.mjs && node test/tts-local-rpc-timeout.test.mjs && node test/asr-progress-clear.test.mjs && node test/sse-backpressure.test.mjs && node test/sse-teardown.test.mjs && node test/settings-scope-timeout.test.mjs && node test/enter-timeout-cancel.test.mjs && node test/audio-fallback-reset.test.mjs && node test/statusbar-aria.test.mjs && node test/llm-correct-similarity.test.mjs",
|
|
51
|
+
"test": "node test/segmenter.test.mjs && node test/aec.test.mjs && node test/download.test.mjs && node test/endpoint.test.mjs && node test/endpoint-short.test.mjs && node test/resample.test.mjs && node test/sense-worker.test.mjs && node test/detect-route.test.mjs && node test/verify-client.mjs && node test/asr-host-rebuild.test.mjs && node test/barge-in-manual.test.mjs && node test/barge-in-detect-behavior.test.mjs && node test/sense-lang.test.mjs && node test/caption-a11y.test.mjs && node test/emotion.test.mjs && node test/emotion-tts-local.test.mjs && node test/emotion-integration.test.mjs && node test/backchannel.test.mjs && node test/strings-coverage.test.mjs && node test/yield-ms-wiring.test.mjs && node test/fail-streak-notice.test.mjs && node test/partial-gating.test.mjs && node test/asr-lifecycle.test.mjs && node test/steer-submit-behavior.test.mjs && node test/correct-cycle-behavior.test.mjs && node test/host-security-behavior.test.mjs && node test/echo-tail.test.mjs && node test/host-fixes.test.mjs && node test/tts-queue-engine.test.mjs && node test/matchBackchannel.test.mjs && node test/settings-load.test.mjs && node test/preview-error.test.mjs && node test/hold-clear.test.mjs && node test/barge-in-detect.test.mjs && node test/wakeword.test.mjs && node test/wake-standby.test.mjs && node test/wake-flow.test.mjs && node test/tts-playback.test.mjs && node test/settings-store.test.mjs && node test/i18n.test.mjs && node test/i18n-protocol.test.mjs && node test/package-install.test.mjs && node test/tts-runtime.test.mjs && node test/steer-submit.test.mjs && node test/draft-compose.test.mjs && node test/finalize-ux.test.mjs && node test/llm-correct.test.mjs && node test/autosend-decouple.test.mjs && node test/settings-effective.test.mjs && node test/silent-path-hints.test.mjs && node test/host-hardening.test.mjs && node test/mic-gesture.test.mjs && node test/shortcut-ui.test.mjs && node test/focus-ownership.test.mjs && node test/finalize-concurrency.test.mjs && node test/telemetry-final-ready.test.mjs && node test/hold-cancel-watermark.test.mjs && node test/idle-activity.test.mjs && node test/tts-edge-escape.test.mjs && node test/tts-empty-audio.test.mjs && node test/partial-202-retry.test.mjs && node test/enter-fail-mic-leak.test.mjs && node test/silence-playing-guard.test.mjs && node test/salvage-seed-cross-sentence.test.mjs && node test/model-download-idle.test.mjs && node test/model-tree-offline.test.mjs && node test/model-sha-cache.test.mjs && node test/tts-local-rpc-timeout.test.mjs && node test/asr-progress-clear.test.mjs && node test/sse-backpressure.test.mjs && node test/sse-teardown.test.mjs && node test/settings-scope-timeout.test.mjs && node test/enter-timeout-cancel.test.mjs && node test/audio-fallback-reset.test.mjs && node test/statusbar-aria.test.mjs && node test/llm-correct-similarity.test.mjs",
|
|
52
52
|
"verify:client": "node test/verify-client.mjs",
|
|
53
53
|
"prefetch": "node scripts/prefetch.mjs",
|
|
54
54
|
"list-voices": "node scripts/list-voices.mjs",
|
|
@@ -94,16 +94,16 @@
|
|
|
94
94
|
"react": "^18.2.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
97
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
98
98
|
"@deepseek-ai/dsh-host-webserver": "0.1.5-rc.3",
|
|
99
99
|
"@deepseek-ai/dsh-llm": "0.1.5-rc.3",
|
|
100
100
|
"@deepseek-ai/dsh-settings": "0.1.5-rc.1",
|
|
101
|
-
"@deepseek-ai/dsh-system-prompt": "0.1.5-rc.
|
|
101
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.5-rc.3",
|
|
102
102
|
"@types/node": "^26.6.5",
|
|
103
103
|
"@types/react": "^19.3.0",
|
|
104
104
|
"esbuild": "^0.28.2",
|
|
105
105
|
"msedge-tts": "^2.1.1",
|
|
106
|
-
"playwright-core": "1.
|
|
106
|
+
"playwright-core": "1.65.0",
|
|
107
107
|
"typescript": "^5.9.2"
|
|
108
108
|
},
|
|
109
109
|
"keywords": [
|