dsh-voice 0.3.1 → 0.3.2

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.
Files changed (3) hide show
  1. package/README.en.md +2 -1
  2. package/README.md +3 -2
  3. package/package.json +67 -66
package/README.en.md CHANGED
@@ -74,7 +74,8 @@ voice_list {}
74
74
 
75
75
  ```bash
76
76
  pnpm install
77
- pnpm test # build + 31 tests, including a real-synthesis integration test
77
+ pnpm test # build + offline unit tests with mocked TTS/ASR
78
+ pnpm test:integration # opt-in real edge-tts request; network and assertion errors fail
78
79
  ```
79
80
 
80
81
  ## License
package/README.md CHANGED
@@ -77,9 +77,10 @@ voice_list {}
77
77
 
78
78
  ```bash
79
79
  pnpm install
80
- pnpm test # 构建 + 31 个测试(含真实合成集成测试)
80
+ pnpm test # 构建 + 离线单元测试(使用模拟的 TTS/ASR)
81
+ pnpm test:integration # 显式联网,调用真实 edge-tts;网络或断言失败均报错
81
82
  ```
82
83
 
83
84
  ## License
84
85
 
85
- MIT
86
+ MIT
package/package.json CHANGED
@@ -1,67 +1,68 @@
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",
1
+ {
2
+ "name": "dsh-voice",
3
+ "version": "0.3.2",
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
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
- }
26
+ "test:integration": "pnpm run build && node --test \"integration/*.test.mjs\"",
27
+ "prepublishOnly": "pnpm run build"
28
+ },
29
+ "dsh": {
30
+ "bundle": {
31
+ "patch": "./cordis.patch.yml"
32
+ }
33
+ },
34
+ "keywords": [
35
+ "dsh",
36
+ "deepseek-harness",
37
+ "plugin",
38
+ "tts",
39
+ "stt",
40
+ "whisper",
41
+ "voice",
42
+ "dsh-plugin"
43
+ ],
44
+ "license": "MIT",
45
+ "engines": {
46
+ "node": ">=22.19.0"
47
+ },
48
+ "dependencies": {
49
+ "https-proxy-agent": "^9.1.0",
50
+ "undici": "^8.10.0",
51
+ "ws": "^8.21.3"
52
+ },
53
+ "devDependencies": {
54
+ "@types/node": "^24.0.0",
55
+ "@types/ws": "^8.18.1",
56
+ "typescript": "^5.6.0"
57
+ },
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/STARDUSTLC666/dsh-voice.git"
61
+ },
62
+ "bugs": {
63
+ "url": "https://github.com/STARDUSTLC666/dsh-voice/issues"
64
+ },
65
+ "homepage": "https://github.com/STARDUSTLC666/dsh-voice#readme",
66
+ "author": "stardustlc",
67
+ "packageManager": "pnpm@11.7.0"
68
+ }