dsh-voice 0.3.0 → 0.3.1
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 +4 -2
- package/README.md +1 -1
- package/lib/tools.js +4 -2
- package/package.json +67 -67
package/README.en.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
[中文](README.md)
|
|
2
2
|
|
|
3
|
+
   
|
|
4
|
+
|
|
3
5
|
# dsh-voice
|
|
4
6
|
|
|
5
7
|
[](https://awesome-dsh-plugin.com)
|
|
@@ -12,7 +14,7 @@ DSH (DeepSeek Harness) voice plugin pair: let the agent **speak and listen**.
|
|
|
12
14
|
|
|
13
15
|
## Compatibility
|
|
14
16
|
|
|
15
|
-
Verified against `@deepseek-ai/dsh@0.1.
|
|
17
|
+
Verified against `@deepseek-ai/dsh@0.1.2-alpha.2` on 2026-08-31. Built for the cordis patch-bundle plugin model (`cordis.patch.yml` + `dsh.bundle.patch`). No runtime imports of `@deepseek-ai/*` internals.
|
|
16
18
|
|
|
17
19
|
## Installation
|
|
18
20
|
|
|
@@ -77,4 +79,4 @@ pnpm test # build + 31 tests, including a real-synthesis integration test
|
|
|
77
79
|
|
|
78
80
|
## License
|
|
79
81
|
|
|
80
|
-
MIT
|
|
82
|
+
MIT
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ DSH(DeepSeek Harness)语音双件套插件:让 agent **会说话、能听
|
|
|
17
17
|
|
|
18
18
|
## 兼容性
|
|
19
19
|
|
|
20
|
-
在 `@deepseek-ai/dsh@0.1.
|
|
20
|
+
在 `@deepseek-ai/dsh@0.1.2-alpha.2` 上验证(2026-08-31)。遵循 cordis 组合包补丁模型(`cordis.patch.yml` + `dsh.bundle.patch`),运行时不 import 任何 `@deepseek-ai/*` 内部模块。
|
|
21
21
|
|
|
22
22
|
## 安装
|
|
23
23
|
|
package/lib/tools.js
CHANGED
|
@@ -194,14 +194,16 @@ export function buildVoiceTools(config, deps = {}) {
|
|
|
194
194
|
language: optionalString(args, 'language'),
|
|
195
195
|
prompt: optionalString(args, 'prompt'),
|
|
196
196
|
}, fetchImpl ?? globalThis.fetch, timeout);
|
|
197
|
-
let transcriptFile =
|
|
197
|
+
let transcriptFile = '';
|
|
198
198
|
const output = optionalString(args, 'output');
|
|
199
199
|
if (output !== undefined) {
|
|
200
200
|
const target = resolveOutputPath(output, '', cfg.overwrite);
|
|
201
201
|
writeFileSync(target, text, 'utf8');
|
|
202
202
|
transcriptFile = target;
|
|
203
203
|
}
|
|
204
|
-
|
|
204
|
+
// The output schema declares these as strings — never return null, or
|
|
205
|
+
// dsh rejects the whole tool result (issue #1).
|
|
206
|
+
return { text, model, language: optionalString(args, 'language') ?? '', audio: audioPath, transcriptFile };
|
|
205
207
|
},
|
|
206
208
|
timeoutMs: timeout + 10000,
|
|
207
209
|
};
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-voice",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "DSH 语音双件套插件:voice_tts(edge-tts 协议零成本微软神经语音合成)/ voice_stt(OpenAI 兼容 ASR 语音转文字)/ voice_list(音色列表),原生 WebSocket + 插件级代理。",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"types": "lib/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./lib/index.d.ts",
|
|
11
|
-
"default": "./lib/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
14
|
-
"./package.json": "./package.json"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"lib",
|
|
18
|
-
"cordis.patch.yml",
|
|
19
|
-
"README.md",
|
|
20
|
-
"README.en.md"
|
|
21
|
-
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsc -p tsconfig.json",
|
|
24
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
25
|
-
"test": "pnpm run build && node --test \"test/*.test.mjs\"",
|
|
26
|
-
"prepublishOnly": "pnpm run build"
|
|
27
|
-
},
|
|
28
|
-
"dsh": {
|
|
29
|
-
"bundle": {
|
|
30
|
-
"patch": "./cordis.patch.yml"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"dsh",
|
|
35
|
-
"deepseek-harness",
|
|
36
|
-
"plugin",
|
|
37
|
-
"tts",
|
|
38
|
-
"stt",
|
|
39
|
-
"whisper",
|
|
40
|
-
"voice",
|
|
41
|
-
"dsh-plugin"
|
|
42
|
-
],
|
|
43
|
-
"license": "MIT",
|
|
44
|
-
"engines": {
|
|
45
|
-
"node": ">=22"
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"https-proxy-agent": "^9.1.0",
|
|
49
|
-
"undici": "^8.10.0",
|
|
50
|
-
"ws": "^8.21.3"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/node": "^24.0.0",
|
|
54
|
-
"@types/ws": "^8.18.1",
|
|
55
|
-
"typescript": "^5.6.0"
|
|
56
|
-
},
|
|
57
|
-
"repository": {
|
|
58
|
-
"type": "git",
|
|
59
|
-
"url": "git+https://github.com/STARDUSTLC666/dsh-voice.git"
|
|
60
|
-
},
|
|
61
|
-
"bugs": {
|
|
62
|
-
"url": "https://github.com/STARDUSTLC666/dsh-voice/issues"
|
|
63
|
-
},
|
|
64
|
-
"homepage": "https://github.com/STARDUSTLC666/dsh-voice#readme",
|
|
65
|
-
"author": "stardustlc",
|
|
66
|
-
"packageManager": "pnpm@11.7.0"
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-voice",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "DSH 语音双件套插件:voice_tts(edge-tts 协议零成本微软神经语音合成)/ voice_stt(OpenAI 兼容 ASR 语音转文字)/ voice_list(音色列表),原生 WebSocket + 插件级代理。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"lib",
|
|
18
|
+
"cordis.patch.yml",
|
|
19
|
+
"README.md",
|
|
20
|
+
"README.en.md"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -p tsconfig.json",
|
|
24
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
25
|
+
"test": "pnpm run build && node --test \"test/*.test.mjs\"",
|
|
26
|
+
"prepublishOnly": "pnpm run build"
|
|
27
|
+
},
|
|
28
|
+
"dsh": {
|
|
29
|
+
"bundle": {
|
|
30
|
+
"patch": "./cordis.patch.yml"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"dsh",
|
|
35
|
+
"deepseek-harness",
|
|
36
|
+
"plugin",
|
|
37
|
+
"tts",
|
|
38
|
+
"stt",
|
|
39
|
+
"whisper",
|
|
40
|
+
"voice",
|
|
41
|
+
"dsh-plugin"
|
|
42
|
+
],
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=22"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"https-proxy-agent": "^9.1.0",
|
|
49
|
+
"undici": "^8.10.0",
|
|
50
|
+
"ws": "^8.21.3"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^24.0.0",
|
|
54
|
+
"@types/ws": "^8.18.1",
|
|
55
|
+
"typescript": "^5.6.0"
|
|
56
|
+
},
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/STARDUSTLC666/dsh-voice.git"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/STARDUSTLC666/dsh-voice/issues"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/STARDUSTLC666/dsh-voice#readme",
|
|
65
|
+
"author": "stardustlc",
|
|
66
|
+
"packageManager": "pnpm@11.7.0"
|
|
67
|
+
}
|