dsh-laivox-tts 0.7.12 → 0.7.14

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 (37) hide show
  1. package/README.md +7 -7
  2. package/README.zh-CN.md +7 -7
  3. package/lib/client.js +2505 -1145
  4. package/package.json +1 -1
  5. package/src/domain/companion.mjs +160 -0
  6. package/src/domain/messages.mjs +10 -2
  7. package/src/domain/notes.mjs +41 -0
  8. package/src/domain/subtitles.mjs +124 -0
  9. package/src/host/api.mjs +90 -12
  10. package/src/host/chat.mjs +2 -2
  11. package/src/host/deliverables.mjs +2 -2
  12. package/src/host/engines/laivox/client.mjs +18 -8
  13. package/src/host/engines/laivox/session.mjs +5 -1
  14. package/src/host/engines/laivox/synthesis.mjs +1 -0
  15. package/src/host/engines/laivox/voices.mjs +99 -91
  16. package/src/host/import/docx.mjs +195 -0
  17. package/src/host/import/epub.mjs +380 -288
  18. package/src/host/import/html.mjs +92 -0
  19. package/src/host/import/import-worker.mjs +7 -0
  20. package/src/host/import/index.mjs +95 -35
  21. package/src/host/import/layout.mjs +2 -2
  22. package/src/host/import/markdown.mjs +124 -0
  23. package/src/host/import/pdf-chapters.mjs +6 -4
  24. package/src/host/index.mjs +9 -4
  25. package/src/host/jobs.mjs +22 -11
  26. package/src/host/library/database-worker.mjs +454 -3
  27. package/src/host/library/repository.mjs +66 -11
  28. package/src/host/library-tools.mjs +341 -13
  29. package/src/host/media.mjs +403 -88
  30. package/src/host/mp3-worker.mjs +68 -53
  31. package/src/host/mp3.mjs +123 -122
  32. package/src/host/snippets.mjs +94 -88
  33. package/src/host/speech-text.mjs +84 -9
  34. package/src/host/speech.mjs +6 -1
  35. package/src/host/version-check.mjs +150 -0
  36. package/src/host/workspace-file.mjs +16 -6
  37. package/src/host/zip.mjs +149 -144
package/README.md CHANGED
@@ -31,21 +31,21 @@ Make sure the `dsh` command is available:
31
31
  ### Online install (recommended)
32
32
 
33
33
  ```sh
34
- dsh plugin --profile desktop add "https://github.com/xiaolai181/dsh_laivox_tts/releases/latest/download/dsh-laivox-tts.tgz"
34
+ dsh plugin --profile desktop add dsh-laivox-tts
35
35
  ```
36
36
 
37
- This installs a prebuilt package—nothing is compiled locally and no install scripts run. To pin a specific version, replace `latest/download` with `download/v0.7.12` (see [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases)).
37
+ This installs the prebuilt package from npm—nothing is compiled locally and no install scripts run.
38
38
 
39
- ### Offline package install
39
+ ### Install from GitHub Release or offline package
40
40
 
41
- Download `dsh-laivox-tts.tgz` from [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) and run this in the folder containing it:
41
+ If npm is unavailable or you prefer pinning a release tarball, install via URL or download `dsh-laivox-tts.tgz` from [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) (replace `latest/download` with `download/v0.7.14` to pin a version):
42
42
 
43
43
  ```sh
44
+ dsh plugin --profile desktop add "https://github.com/xiaolai181/dsh_laivox_tts/releases/latest/download/dsh-laivox-tts.tgz"
45
+ # Or from a downloaded local file:
44
46
  dsh plugin --profile desktop add ./dsh-laivox-tts.tgz
45
47
  ```
46
48
 
47
- Useful when the machine does not have direct GitHub access.
48
-
49
49
  <details>
50
50
  <summary>Install from a source folder (for developers)</summary>
51
51
 
@@ -101,7 +101,7 @@ Your bookshelf, text, scripts, and audio stay on your machine:
101
101
  <summary>Data folder and backup notes before upgrading</summary>
102
102
 
103
103
  - All plugin data lives in `<DSH home>/profiles/<profile>/dsh-laivox-tts/` (default DSH home: `~/.dsh`), with `library.sqlite` storing your bookshelf, scripts, jobs, audio, and playback progress.
104
- - **Back up before upgrading**: fully quit DSH and copy the entire `dsh-laivox-tts` folder. A newer release may upgrade the local database schema (currently v12), which older plugin versions cannot open.
104
+ - **Back up before upgrading**: fully quit DSH and copy the entire `dsh-laivox-tts` folder. A newer release may upgrade the local database schema (currently v13), which older plugin versions cannot open.
105
105
  - Built-in sample books are seeded only once on a fresh empty profile (existing profiles with books are untouched on upgrade) and will not reappear after deletion.
106
106
 
107
107
  </details>
package/README.zh-CN.md CHANGED
@@ -33,21 +33,21 @@
33
33
  ### 在线安装(推荐)
34
34
 
35
35
  ```sh
36
- dsh plugin --profile desktop add "https://github.com/xiaolai181/dsh_laivox_tts/releases/latest/download/dsh-laivox-tts.tgz"
36
+ dsh plugin --profile desktop add dsh-laivox-tts
37
37
  ```
38
38
 
39
- 安装的是预构建插件包,无需在本地编译或授权构建脚本。如需锁定版本,可将 `latest/download` 替换为 `download/v0.7.12`(全部版本见 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases))。
39
+ 直接安装 npm 上的预构建插件包,无需在本地编译或授权构建脚本(国内网络可自动受益于镜像加速)。
40
40
 
41
- ### 离线安装包安装
41
+ ### GitHub Release 链接或离线安装包安装
42
42
 
43
- 从 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) 下载 `dsh-laivox-tts.tgz`,在文件所在目录执行:
43
+ 如需锁定版本或无法直连 npm,可使用 Release 下载链接(将 `latest/download` 替换为 `download/v0.7.14` 可锁定版本),或从 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) 下载 `dsh-laivox-tts.tgz` 到本地后安装:
44
44
 
45
45
  ```sh
46
+ dsh plugin --profile desktop add "https://github.com/xiaolai181/dsh_laivox_tts/releases/latest/download/dsh-laivox-tts.tgz"
47
+ # 或使用本地文件:
46
48
  dsh plugin --profile desktop add ./dsh-laivox-tts.tgz
47
49
  ```
48
50
 
49
- 适合无法直连 GitHub 的离线或内网环境。
50
-
51
51
  <details>
52
52
  <summary>从源码目录安装(开发者)</summary>
53
53
 
@@ -103,7 +103,7 @@ Profile 会直接链接到该源码目录,安装后请勿移动或删除。执
103
103
  <summary>数据目录与升级前备份说明</summary>
104
104
 
105
105
  - 所有数据位于当前 Profile 目录下的 `<DSH 主目录>/profiles/<Profile 名>/dsh-laivox-tts/`(DSH 主目录默认为 `~/.dsh`),其中 `library.sqlite` 保存书架、台词、任务、音频与播放进度。
106
- - **升级前建议备份**:完全退出 DSH 后复制整个 `dsh-laivox-tts` 目录。跨版本更新可能升级本地数据库结构(当前为 v12),升级后的数据库无法再被旧版本插件打开。
106
+ - **升级前建议备份**:完全退出 DSH 后复制整个 `dsh-laivox-tts` 目录。跨版本更新可能升级本地数据库结构(当前为 v13),升级后的数据库无法再被旧版本插件打开。
107
107
  - 内置试听示例仅在全新空白 Profile 首次启动时写入一次(已有书籍的老 Profile 升级不会写入),删除后重启或升级不会重新出现。
108
108
 
109
109
  </details>