@oadank/dsh-input-tools 0.3.18 → 0.3.20
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.md +28 -4
- package/assets/reverse-prompt.txt +31 -0
- package/assets/vision-test.jpg +0 -0
- package/lib/client.js +2008 -1553
- package/lib/index.js +1915 -1732
- package/package.json +7 -3
- package/scripts/install-asr.ps1 +1 -1
- package/scripts/install-local-tts.ps1 +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oadank/dsh-input-tools",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -9,8 +9,12 @@
|
|
|
9
9
|
"url": "https://github.com/oadank/dsh-input-tools.git"
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
|
|
12
|
+
".": {
|
|
13
|
+
"default": "./lib/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./client": {
|
|
16
|
+
"default": "./lib/client.js"
|
|
17
|
+
},
|
|
14
18
|
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
15
19
|
"./package.json": "./package.json"
|
|
16
20
|
},
|
package/scripts/install-asr.ps1
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# 4. 注册 nssm 服务 asr(端口 18790,开机自启)
|
|
8
8
|
#
|
|
9
9
|
# 安装位置(2026-08-22 改):默认装到**独立目录**,不装插件包目录——
|
|
10
|
-
# 插件包(profile
|
|
10
|
+
# 插件包(npm 安装的 profile 副本)会随升级/重装被覆盖,
|
|
11
11
|
# 模型放里面会丢。默认顺序:
|
|
12
12
|
# 1) -InstallDir 参数显式指定(最高优先)
|
|
13
13
|
# 2) 检测已有 sherpa-onnx(之前装过则复用):~\.dsh\sherpa-onnx / C:\D\opt\sherpa-onnx / D:\opt\deepseek-harness\asr
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
# node local-tts.mjs <文本> → stdout 输出 mp3 音频字节)
|
|
9
9
|
#
|
|
10
10
|
# 安装位置(2026-08-22 改):默认装到**独立目录**,不装插件包目录——
|
|
11
|
-
# 插件包(profile
|
|
11
|
+
# 插件包(npm 安装的 profile 副本)会随升级/重装被覆盖,
|
|
12
12
|
# 模型放里面会丢。默认顺序:
|
|
13
|
-
# 1) -InstallDir
|
|
13
|
+
# 1) -InstallDir 参数显式指定(最高优先,可指定任意位置)
|
|
14
14
|
# 2) 检测已有 sherpa-onnx(ASR 装过则复用同一份,省一次下载):
|
|
15
15
|
# ~\.dsh\sherpa-onnx / C:\D\opt\sherpa-onnx / D:\opt\deepseek-harness\asr
|
|
16
16
|
# 3) 以上都没有 → ~\.dsh\sherpa-onnx(dsh 数据目录,跨升级保留)
|