@ds-hu/dsh-better-voice-input 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/NOTICE +31 -0
- package/README.en.md +113 -0
- package/README.md +101 -2
- package/cordis.patch.yml +34 -0
- package/docs/ARCHITECTURE.md +270 -0
- package/docs/CONTRACTS.md +300 -0
- package/docs/DETAIL.md +64 -0
- package/docs/DETAIL.zh.md +55 -0
- package/docs/VERIFICATION.md +58 -0
- package/docs/preview-en.svg +97 -0
- package/docs/preview.svg +97 -0
- package/icon.svg +9 -0
- package/lib/index.js +2 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +83 -4
package/docs/preview.svg
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="800" viewBox="0 0 1280 800">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="blue" x1="0" y1="0" x2="0" y2="1">
|
|
4
|
+
<stop offset="0%" stop-color="#0f1112"/><stop offset="8%" stop-color="#0c141d"/>
|
|
5
|
+
<stop offset="18%" stop-color="#0b223d"/><stop offset="29%" stop-color="#04376a"/>
|
|
6
|
+
<stop offset="38%" stop-color="#004992"/><stop offset="50%" stop-color="#005ec0"/>
|
|
7
|
+
<stop offset="60%" stop-color="#0066d3"/><stop offset="70%" stop-color="#0169dc"/>
|
|
8
|
+
<stop offset="100%" stop-color="#006bd8"/>
|
|
9
|
+
</linearGradient>
|
|
10
|
+
<radialGradient id="blueglow" cx="50%" cy="74%" r="52%">
|
|
11
|
+
<stop offset="0%" stop-color="#0074eb" stop-opacity=".55"/><stop offset="70%" stop-color="#0074eb" stop-opacity="0"/>
|
|
12
|
+
</radialGradient>
|
|
13
|
+
<linearGradient id="red" x1="0" y1="0" x2="0" y2="1">
|
|
14
|
+
<stop offset="0%" stop-color="#0f0f0f"/><stop offset="12%" stop-color="#0f0f0f"/>
|
|
15
|
+
<stop offset="20%" stop-color="#151011"/><stop offset="30%" stop-color="#1d1314"/>
|
|
16
|
+
<stop offset="45%" stop-color="#391b1a"/><stop offset="61%" stop-color="#602728"/>
|
|
17
|
+
<stop offset="70%" stop-color="#772d31"/><stop offset="80%" stop-color="#873235"/>
|
|
18
|
+
<stop offset="90%" stop-color="#903538"/><stop offset="100%" stop-color="#953535"/>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
<radialGradient id="redglow" cx="50%" cy="76%" r="50%">
|
|
21
|
+
<stop offset="0%" stop-color="#be2d32" stop-opacity=".45"/><stop offset="72%" stop-color="#be2d32" stop-opacity="0"/>
|
|
22
|
+
</radialGradient>
|
|
23
|
+
<radialGradient id="vig" cx="50%" cy="50%" r="72%">
|
|
24
|
+
<stop offset="42%" stop-color="#000" stop-opacity="0"/><stop offset="100%" stop-color="#000" stop-opacity=".34"/>
|
|
25
|
+
</radialGradient>
|
|
26
|
+
</defs>
|
|
27
|
+
<rect width="1280" height="800" fill="#0b0d10"/>
|
|
28
|
+
<text x="640" y="44" fill="#e8ecf6" font-size="22" font-family="Songti SC, Noto Serif SC, serif" text-anchor="middle">更好的语音输入 · 长按说,松手写</text>
|
|
29
|
+
<rect x="40" y="80" width="360" height="640" rx="26" fill="#16181c"/><text x="220.0" y="754" fill="#8b90a0" font-size="17" text-anchor="middle" font-family="Songti SC, Noto Serif SC, serif">发消息或按住说话</text>
|
|
30
|
+
<rect x="40" y="500" width="360" height="220" fill="#16181c"/>
|
|
31
|
+
<rect x="64" y="540" width="312" height="150" rx="20" fill="#23262b" stroke="#34383f"/>
|
|
32
|
+
<text x="84" y="588" fill="#a7a8ba" font-size="16" font-family="Songti SC, Noto Serif SC, serif">发消息或按住说话</text>
|
|
33
|
+
<rect x="84" y="628" width="108" height="30" rx="15" fill="#1d2430" stroke="#3b5f9e"/>
|
|
34
|
+
<text x="98" y="648" fill="#8b9fe4" font-size="12" font-family="Songti SC, Noto Serif SC, serif">✳ 深度思考</text>
|
|
35
|
+
<rect x="200" y="628" width="108" height="30" rx="15" fill="#1d2430" stroke="#3b5f9e"/>
|
|
36
|
+
<text x="214" y="648" fill="#8b9fe4" font-size="12" font-family="Songti SC, Noto Serif SC, serif">◍ 智能搜索</text>
|
|
37
|
+
<circle cx="298" cy="644" r="14" fill="none" stroke="#d7d9de" stroke-width="1.6"/>
|
|
38
|
+
<path d="M298 639v10M293 644h10" stroke="#d7d9de" stroke-width="1.6" stroke-linecap="round"/>
|
|
39
|
+
<circle cx="342" cy="644" r="14" fill="none" stroke="#d7d9de" stroke-width="1.6"/>
|
|
40
|
+
<rect x="339" y="638" width="5" height="8" rx="2.5" fill="#d7d9de"/>
|
|
41
|
+
<path d="M336 646a5.5 5.5 0 0 0 11 0M342 651v3" stroke="#d7d9de" stroke-width="1.4" stroke-linecap="round" fill="none"/>
|
|
42
|
+
<rect x="460" y="80" width="360" height="640" rx="26" fill="#0f1112"/><text x="640.0" y="754" fill="#8b90a0" font-size="17" text-anchor="middle" font-family="Songti SC, Noto Serif SC, serif">录音中 · 上滑取消</text>
|
|
43
|
+
<rect x="460" y="80" width="360" height="640" rx="26" fill="url(#blue)"/>
|
|
44
|
+
<rect x="460" y="80" width="360" height="640" rx="26" fill="url(#blueglow)"/>
|
|
45
|
+
<rect x="460" y="80" width="360" height="640" rx="26" fill="url(#vig)"/>
|
|
46
|
+
<text x="640" y="322" fill="#cfe6ff" font-size="25" text-anchor="middle" font-family="Songti SC, Noto Serif SC, serif" letter-spacing="3">松手插入,上滑取消</text>
|
|
47
|
+
<rect x="491.0" y="466.0" width="4" height="8.0" rx="2" fill="#dde8ff" opacity="0.55" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
48
|
+
<rect x="505.0" y="463.8" width="4" height="12.3" rx="2" fill="#dde8ff" opacity="0.69" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
49
|
+
<rect x="519.0" y="461.5" width="4" height="16.9" rx="2" fill="#dde8ff" opacity="0.77" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
50
|
+
<rect x="533.0" y="462.1" width="4" height="15.8" rx="2" fill="#dde8ff" opacity="0.82" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
51
|
+
<rect x="547.0" y="459.8" width="4" height="20.3" rx="2" fill="#dde8ff" opacity="0.87" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
52
|
+
<rect x="561.0" y="459.8" width="4" height="20.5" rx="2" fill="#dde8ff" opacity="0.91" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
53
|
+
<rect x="575.0" y="460.5" width="4" height="18.9" rx="2" fill="#dde8ff" opacity="0.94" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
54
|
+
<rect x="589.0" y="458.1" width="4" height="23.7" rx="2" fill="#dde8ff" opacity="0.96" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
55
|
+
<rect x="603.0" y="460.0" width="4" height="19.9" rx="2" fill="#dde8ff" opacity="0.98" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
56
|
+
<rect x="617.0" y="457.9" width="4" height="24.1" rx="2" fill="#dde8ff" opacity="0.99" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
57
|
+
<rect x="631.0" y="459.6" width="4" height="20.8" rx="2" fill="#dde8ff" opacity="1.00" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
58
|
+
<rect x="645.0" y="459.5" width="4" height="21.0" rx="2" fill="#dde8ff" opacity="1.00" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
59
|
+
<rect x="659.0" y="458.0" width="4" height="24.1" rx="2" fill="#dde8ff" opacity="0.99" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
60
|
+
<rect x="673.0" y="456.3" width="4" height="27.4" rx="2" fill="#dde8ff" opacity="0.98" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
61
|
+
<rect x="687.0" y="459.9" width="4" height="20.2" rx="2" fill="#dde8ff" opacity="0.96" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
62
|
+
<rect x="701.0" y="459.8" width="4" height="20.3" rx="2" fill="#dde8ff" opacity="0.94" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
63
|
+
<rect x="715.0" y="458.7" width="4" height="22.5" rx="2" fill="#dde8ff" opacity="0.91" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
64
|
+
<rect x="729.0" y="458.4" width="4" height="23.2" rx="2" fill="#dde8ff" opacity="0.87" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
65
|
+
<rect x="743.0" y="460.6" width="4" height="18.8" rx="2" fill="#dde8ff" opacity="0.82" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
66
|
+
<rect x="757.0" y="462.1" width="4" height="15.7" rx="2" fill="#dde8ff" opacity="0.77" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
67
|
+
<rect x="771.0" y="462.5" width="4" height="14.9" rx="2" fill="#dde8ff" opacity="0.69" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
68
|
+
<rect x="785.0" y="466.0" width="4" height="8.0" rx="2" fill="#dde8ff" opacity="0.55" style="filter:drop-shadow(0 0 6px #9fc8ff)"/>
|
|
69
|
+
<rect x="880" y="80" width="360" height="640" rx="26" fill="#0f0f0f"/><text x="1060.0" y="754" fill="#8b90a0" font-size="17" text-anchor="middle" font-family="Songti SC, Noto Serif SC, serif">上滑到取消区 · 松手取消</text>
|
|
70
|
+
<rect x="880" y="80" width="360" height="640" rx="26" fill="url(#red)"/>
|
|
71
|
+
<rect x="880" y="80" width="360" height="640" rx="26" fill="url(#redglow)"/>
|
|
72
|
+
<rect x="880" y="80" width="360" height="640" rx="26" fill="url(#vig)"/>
|
|
73
|
+
<text x="1060" y="322" fill="#d4525e" font-size="25" text-anchor="middle" font-family="Songti SC, Noto Serif SC, serif" letter-spacing="3">松手取消</text>
|
|
74
|
+
<rect x="911.0" y="466.0" width="4" height="8.0" rx="2" fill="#e06770" opacity="0.55" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
75
|
+
<rect x="925.0" y="463.8" width="4" height="12.3" rx="2" fill="#e06770" opacity="0.69" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
76
|
+
<rect x="939.0" y="461.5" width="4" height="16.9" rx="2" fill="#e06770" opacity="0.77" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
77
|
+
<rect x="953.0" y="462.1" width="4" height="15.8" rx="2" fill="#e06770" opacity="0.82" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
78
|
+
<rect x="967.0" y="459.8" width="4" height="20.3" rx="2" fill="#e06770" opacity="0.87" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
79
|
+
<rect x="981.0" y="459.8" width="4" height="20.5" rx="2" fill="#e06770" opacity="0.91" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
80
|
+
<rect x="995.0" y="460.5" width="4" height="18.9" rx="2" fill="#e06770" opacity="0.94" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
81
|
+
<rect x="1009.0" y="458.1" width="4" height="23.7" rx="2" fill="#e06770" opacity="0.96" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
82
|
+
<rect x="1023.0" y="460.0" width="4" height="19.9" rx="2" fill="#e06770" opacity="0.98" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
83
|
+
<rect x="1037.0" y="457.9" width="4" height="24.1" rx="2" fill="#e06770" opacity="0.99" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
84
|
+
<rect x="1051.0" y="459.6" width="4" height="20.8" rx="2" fill="#e06770" opacity="1.00" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
85
|
+
<rect x="1065.0" y="459.5" width="4" height="21.0" rx="2" fill="#e06770" opacity="1.00" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
86
|
+
<rect x="1079.0" y="458.0" width="4" height="24.1" rx="2" fill="#e06770" opacity="0.99" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
87
|
+
<rect x="1093.0" y="456.3" width="4" height="27.4" rx="2" fill="#e06770" opacity="0.98" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
88
|
+
<rect x="1107.0" y="459.9" width="4" height="20.2" rx="2" fill="#e06770" opacity="0.96" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
89
|
+
<rect x="1121.0" y="459.8" width="4" height="20.3" rx="2" fill="#e06770" opacity="0.94" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
90
|
+
<rect x="1135.0" y="458.7" width="4" height="22.5" rx="2" fill="#e06770" opacity="0.91" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
91
|
+
<rect x="1149.0" y="458.4" width="4" height="23.2" rx="2" fill="#e06770" opacity="0.87" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
92
|
+
<rect x="1163.0" y="460.6" width="4" height="18.8" rx="2" fill="#e06770" opacity="0.82" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
93
|
+
<rect x="1177.0" y="462.1" width="4" height="15.7" rx="2" fill="#e06770" opacity="0.77" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
94
|
+
<rect x="1191.0" y="462.5" width="4" height="14.9" rx="2" fill="#e06770" opacity="0.69" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
95
|
+
<rect x="1205.0" y="466.0" width="4" height="8.0" rx="2" fill="#e06770" opacity="0.55" style="filter:drop-shadow(0 0 6px #ff5f69)"/>
|
|
96
|
+
<text x="640" y="770" fill="#6f7688" font-size="14" font-family="-apple-system, Segoe UI, sans-serif" text-anchor="middle">按住输入框说话:全屏浮层与 DeepSeek App 一致;默认松手插入草稿,可在设置中改为松手发送。</text>
|
|
97
|
+
</svg>
|
package/icon.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36">
|
|
2
|
+
<g fill="none" stroke="#3b82f6" stroke-linecap="round" stroke-width="2.6">
|
|
3
|
+
<path d="M9 16v4"/>
|
|
4
|
+
<path d="M14 12v12"/>
|
|
5
|
+
<path d="M19 8v20"/>
|
|
6
|
+
<path d="M24 13v10"/>
|
|
7
|
+
<path d="M29 16v4"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
package/lib/index.js
ADDED
package/locale/en.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Better voice input",
|
|
4
|
+
"description": "Extends the official experimental voice input plugin: 14 cloud speech-recognition providers plus 7 local sherpa-onnx models (21 in total), and a DeepSeek-App-style hold-to-talk composer — long-press the input box to record, slide up to cancel, release to insert the transcript (or send it). Requires the official voice input bundle for its speech-to-text registry.",
|
|
5
|
+
"detail": "docs/DETAIL.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-hu/dsh-better-voice-input",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Better voice input for the DeepSeek Harness Web GUI: 21 speech-recognition models on the official experimental speech-to-text seam (14 cloud APIs + 7 downloadable sherpa-onnx local models) and a DeepSeek-App-style hold-to-talk composer — long-press to talk, release to insert, slide up to cancel.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"main": "lib/index.js",
|
|
10
|
+
"workspaces": [
|
|
11
|
+
"packages/*"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./lib/index.js",
|
|
15
|
+
"./locale/*.json": "./locale/*.json",
|
|
16
|
+
"./icon": "./icon.svg",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"icon": "./icon.svg",
|
|
20
|
+
"dsh": {
|
|
21
|
+
"bundle": {
|
|
22
|
+
"patch": "./cordis.patch.yml"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20.19.0",
|
|
27
|
+
"dsh": ">=0.2.2-rc.5 <0.3.0"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@ds-hu/dsh-bvi-core": "0.1.0",
|
|
31
|
+
"@ds-hu/dsh-bvi-service": "0.1.0",
|
|
32
|
+
"@ds-hu/dsh-bvi-cloud": "0.1.0",
|
|
33
|
+
"@ds-hu/dsh-bvi-local": "0.1.0",
|
|
34
|
+
"@ds-hu/dsh-bvi-input": "0.1.0"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/ds-hu/dsh-better-voice-input.git"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/ds-hu/dsh-better-voice-input#readme",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/ds-hu/dsh-better-voice-input/issues"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"deepseek-harness",
|
|
46
|
+
"dsh",
|
|
47
|
+
"dsh-plugin",
|
|
48
|
+
"dsh-bundle",
|
|
49
|
+
"cordis",
|
|
50
|
+
"voice-input",
|
|
51
|
+
"speech-to-text",
|
|
52
|
+
"asr",
|
|
53
|
+
"sensevoice",
|
|
54
|
+
"sherpa-onnx"
|
|
55
|
+
],
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"files": [
|
|
58
|
+
"lib/index.js",
|
|
59
|
+
"cordis.patch.yml",
|
|
60
|
+
"locale/*.json",
|
|
61
|
+
"icon.svg",
|
|
62
|
+
"README.md",
|
|
63
|
+
"docs/ARCHITECTURE.md",
|
|
64
|
+
"docs/CONTRACTS.md",
|
|
65
|
+
"docs/DETAIL.md",
|
|
66
|
+
"docs/DETAIL.zh.md",
|
|
67
|
+
"docs/VERIFICATION.md",
|
|
68
|
+
"docs/preview.svg",
|
|
69
|
+
"docs/preview-en.svg",
|
|
70
|
+
"LICENSE",
|
|
71
|
+
"NOTICE",
|
|
72
|
+
"README.en.md"
|
|
73
|
+
],
|
|
74
|
+
"scripts": {
|
|
75
|
+
"lint": "eslint .",
|
|
76
|
+
"test": "node --test",
|
|
77
|
+
"check": "npm run lint && npm test"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@eslint/js": "10.0.1",
|
|
81
|
+
"eslint": "10.10.0",
|
|
82
|
+
"globals": "17.12.0",
|
|
83
|
+
"js-yaml": "^4.1.0"
|
|
84
|
+
}
|
|
85
|
+
}
|