dsh-laivox-tts 0.7.13 → 0.7.15
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 +120 -0
- package/README.md +62 -60
- package/lib/client.js +246 -84
- package/package.json +2 -2
- package/src/domain/companion.mjs +3 -3
- package/src/domain/messages.mjs +1 -1
- package/src/host/api.mjs +35 -9
- package/src/host/deliverables.mjs +2 -2
- package/src/host/engines/laivox/client.mjs +18 -8
- package/src/host/engines/laivox/session.mjs +5 -1
- package/src/host/engines/laivox/synthesis.mjs +1 -0
- package/src/host/engines/laivox/voices.mjs +99 -91
- package/src/host/import/docx.mjs +12 -22
- package/src/host/import/epub.mjs +386 -288
- package/src/host/import/index.mjs +64 -24
- package/src/host/import/markdown.mjs +38 -5
- package/src/host/import/pdf-chapters.mjs +6 -4
- package/src/host/jobs.mjs +36 -13
- package/src/host/library/database-worker.mjs +62 -19
- package/src/host/library/repository.mjs +31 -9
- package/src/host/library-tools.mjs +7 -4
- package/src/host/media.mjs +38 -35
- package/src/host/mp3-worker.mjs +68 -53
- package/src/host/mp3.mjs +3 -3
- package/src/host/snippets.mjs +94 -88
- package/src/host/speech-text.mjs +123 -9
- package/src/host/speech.mjs +6 -1
- package/src/host/workspace-file.mjs +15 -5
- package/src/host/zip.mjs +149 -144
- package/README.zh-CN.md +0 -122
package/README.en.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Novel voices (LaiVox)
|
|
2
|
+
|
|
3
|
+
[简体中文](README.md) · **English**
|
|
4
|
+
|
|
5
|
+
An audiobook plugin for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH). Turn TXT, EPUB, and PDF novels into single-voice or multi-voice audiobooks, or have AI replies read aloud with one click. Built-in Microsoft Edge online voices work out of the box with no account required, and the workbench supports Simplified Chinese, Traditional Chinese, and English.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## What you can do
|
|
10
|
+
|
|
11
|
+
- **Turn books into audio**: Import TXT, EPUB, or PDF novels with automatic chapter detection and preview, or paste text into a new book. Pick a chapter and press **Start production**—playback begins as soon as the first segment is ready.
|
|
12
|
+
- **Single-voice or multi-voice narration**: **Single voice** works immediately without AI. Switch to **Multi-voice narration** to let your configured DSH model identify speakers and tone and assign a distinct voice to each role. You see the expected request count and confirm before any model call. Edge switches voices per role, while per-line expressive delivery uses LaiVox.
|
|
13
|
+
- **Use LaiVox expressive voices (optional)**: Under **Settings → Production & Voice Engine**, switch the engine to LaiVox for per-line expressive delivery and access to **My voices** uploaded in the LaiVox browser extension. Requires an API key backed by a LaiVox membership reading allowance or a separately purchased read-aloud pack.
|
|
14
|
+
- **Let AI help organize and queue**: Ask AI in chat to turn a book in your workspace into an audiobook. It prepares an import preview and a production plan below its reply, waits for your confirmation, and queues AI jobs behind your own without interrupting active playback or production.
|
|
15
|
+
- **Read AI replies and quick snippets aloud**: Click **Read aloud with Edge** next to any assistant message, or ask the assistant to read aloud (code blocks and URLs are skipped, table cells are read). You can also send `/laivox some text` to voice a passage—results stay organized under **Bookshelf → Chat audio**.
|
|
16
|
+
- **Export for offline listening**: Download a single chapter as MP3 or WAV, or export an entire book as a ZIP archive of chapter audio files.
|
|
17
|
+
|
|
18
|
+
Step-by-step walkthroughs are in the [user guide](docs/GUIDE.md) (Chinese).
|
|
19
|
+
|
|
20
|
+
| Roles and voices | Import preview | Chat audio | Dark theme |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
|  |  |  |  |
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
Make sure the `dsh` command is available:
|
|
27
|
+
|
|
28
|
+
- **DSH Desktop**: open the application menu and choose **Manage dsh Command… → Install** (below **Check for Updates…**). Open a new terminal and run `dsh --version` to verify. Desktop uses the `desktop` profile. Launch Desktop once before installing, then **fully quit it** (including from the system tray) before running the commands below. See the [official Desktop docs](https://github.com/deepseek-ai/deepseek-harness/blob/38a6a5c/apps/desktop/README.md#terminal-command).
|
|
29
|
+
- **DSH Web / CLI**: requires Node.js 24.9 or later. Replace `desktop` with `web` (or your own profile name) in the commands below.
|
|
30
|
+
|
|
31
|
+
### Online install (recommended)
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
dsh plugin --profile desktop add dsh-laivox-tts
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This installs the prebuilt package from npm—nothing is compiled locally and no install scripts run.
|
|
38
|
+
|
|
39
|
+
### Install from GitHub Release or offline package
|
|
40
|
+
|
|
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.15` to pin a version):
|
|
42
|
+
|
|
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:
|
|
46
|
+
dsh plugin --profile desktop add ./dsh-laivox-tts.tgz
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
<details>
|
|
50
|
+
<summary>Install from a source folder (for developers)</summary>
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
git clone https://github.com/xiaolai181/dsh_laivox_tts.git laivox-tts
|
|
54
|
+
cd laivox-tts
|
|
55
|
+
npx pnpm install # pnpm is required; this also builds lib/
|
|
56
|
+
dsh plugin --profile desktop add .
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The profile links directly to this folder, so keep it in place. After `git pull`, run `npx pnpm install` again to rebuild.
|
|
60
|
+
|
|
61
|
+
> **Switching back from a source install to a release package**: after `dsh plugin remove`, a `dsh-laivox-tts` link remains inside the profile's `node_modules`. Remove only that link (on Windows, use `rmdir` without `/s`) before reinstalling so files in your source folder are not deleted.
|
|
62
|
+
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
### After installing
|
|
66
|
+
|
|
67
|
+
- **Desktop**: reopen DeepSeek Harness. **Web**: restart `dsh web`.
|
|
68
|
+
- **Novel voices (LaiVox)** appears in the sidebar.
|
|
69
|
+
- Verify installed plugins with `dsh plugin --profile desktop list`.
|
|
70
|
+
|
|
71
|
+
### Update and uninstall
|
|
72
|
+
|
|
73
|
+
- **Update**: run the install command again (`latest/download` pulls the newest release).
|
|
74
|
+
- **Uninstall**: run `dsh plugin --profile desktop remove dsh-laivox-tts`. Your books and audio remain on disk.
|
|
75
|
+
|
|
76
|
+
## First five minutes
|
|
77
|
+
|
|
78
|
+
Choose your preferred language under **DSH Settings → General → Language** (Simplified Chinese, Traditional Chinese, or English).
|
|
79
|
+
|
|
80
|
+
1. Open **Novel voices (LaiVox)** from the sidebar. The workbench has three tabs: **Listen**, **Produce**, and **Bookshelf**, with tasks and settings in the top right.
|
|
81
|
+
2. On a fresh empty profile, first launch places two ready-to-play sample books on your bookshelf—a single-voice Edge sample and a multi-voice LaiVox sample—so you can listen right away without an API key and delete them anytime.
|
|
82
|
+
3. Go to **Bookshelf → Import TXT / EPUB / PDF** to pick a novel (or click **New book** to paste text). Adjust chapter splits if needed and confirm the import.
|
|
83
|
+
4. Open a chapter, select **Single voice**, and click **Start production** (no AI required). Playback starts once the first segment is ready, with speed control, sleep timer, bookmarks, follow-along highlighting, and optional auto-advance to the next chapter.
|
|
84
|
+
|
|
85
|
+
## Privacy and cost
|
|
86
|
+
|
|
87
|
+
- **Microsoft Edge online voices**: Built in as the default with no account needed. Text being voiced is sent to Microsoft's online Edge speech service; availability and terms are governed by Microsoft.
|
|
88
|
+
- **AI features**: Text cleanup, multi-voice scripting, and AI chapter detection use the model configured in DSH and count against that model's quota. Every step displays the expected request count and waits for your confirmation. **Single voice** never calls a model.
|
|
89
|
+
- **LaiVox engine (optional add-on)**: Enable under **Settings → Production & Voice Engine** with an API key backed by a membership reading allowance or a separately purchased read-aloud pack. Text submitted for synthesis is sent to the LaiVox service under its service and retention policies. The API key is stored in DSH's credential store and LaiVox is only contacted when you use it. Uploading and editing custom voices stay in the LaiVox browser extension.
|
|
90
|
+
- **Rights and boundaries**: Import and voice only texts you own or are legally permitted to use; generated audio is for personal, lawful use. The AI assistant can only read files inside the current chat workspace and cannot delete books from your bookshelf.
|
|
91
|
+
|
|
92
|
+
## Local data and storage
|
|
93
|
+
|
|
94
|
+
Your bookshelf, text, scripts, and audio stay on your machine:
|
|
95
|
+
|
|
96
|
+
- **Audio storage limit**: 2 GiB by default, configurable from 0.5 to 20 GiB under **Settings → Storage** (takes effect after reopening DSH). Production pauses if the limit is reached; you can clear audio per book or chapter while keeping text and scripts intact.
|
|
97
|
+
- **Chat audio retention**: Unplayed chat audio expires after 7 days by default (configurable to 1 day, 30 days, or never). Saving a clip to the bookshelf keeps it permanently.
|
|
98
|
+
- **Complete removal**: Uninstall the plugin and delete its plugin data folder to wipe all local files.
|
|
99
|
+
|
|
100
|
+
<details>
|
|
101
|
+
<summary>Data folder and backup notes before upgrading</summary>
|
|
102
|
+
|
|
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 v13), which older plugin versions cannot open.
|
|
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
|
+
|
|
107
|
+
</details>
|
|
108
|
+
|
|
109
|
+
<details>
|
|
110
|
+
<summary>File limits and usage notes</summary>
|
|
111
|
+
|
|
112
|
+
- **PDF support**: Text-based PDFs are supported; image-only scanned PDFs are not supported.
|
|
113
|
+
- **Import limits**: Up to 50 MiB per file; EPUB archives up to 150 MiB uncompressed (32 MiB per internal file); PDFs up to 5,000 pages or 30 million characters; up to 5,000 chapters per book.
|
|
114
|
+
- **Chat behavior**: Confirmation controls, import previews, and outcomes appear only below the latest reply. The first read-aloud sentence usually takes 1–2 seconds to start (0.5–1 second for subsequent sentences). If the same chat is open in two windows, AI-triggered read-aloud plays in both.
|
|
115
|
+
|
|
116
|
+
</details>
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
The LaiVox plugin code is released under the [MIT License](LICENSE). The LaiVox TTS server and access to it are not covered. The LaiVox brand, icons and preset voice samples are under their own terms. See [Third-party notices](THIRD_PARTY_NOTICES.md).
|
package/README.md
CHANGED
|
@@ -1,120 +1,122 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 小说配音(LaiVox)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**简体中文** · [English](README.en.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(DSH)的有声书插件:把 TXT、EPUB、PDF 小说做成单人朗读或多角色有声书,也能一键把 AI 的回答读给你听。默认内置微软 Edge 在线语音,无需注册账号,支持简体中文、繁体中文与英文。
|
|
6
6
|
|
|
7
|
-

|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## 你能用它做什么
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
11
|
+
- **听手里的小说**:导入 TXT、EPUB 或 PDF,自动分章并预览目录;也可以直接新建书籍粘贴正文。选好章节点击「开始制作」,第一段完成即可开听,不用等整章做完。
|
|
12
|
+
- **单人朗读,或多角色配音**:单人朗读开箱即用;选择「多角色演绎」后,由你在 DSH 中配置的模型分辨说话人和语气,为每个角色分配独立音色。开始前会列出预计请求数,由你确认后才调用模型。Edge 引擎会按角色切换不同音色,逐句情绪演绎需使用 LaiVox 引擎。
|
|
13
|
+
- **使用 LaiVox 拟人音色(可选)**:在设置的「制作与发声」中切换为 LaiVox。支持按每句语气做拟人化情感演绎,账号开通自有音色后,也可直接选用在 LaiVox 浏览器扩展里上传的「我的音色」。使用会员朗读额度或单独购买的朗读时长包,填入 API Key 即可启用。
|
|
14
|
+
- **让 AI 当你的有声书助手**:在对话里直接说“把工作目录里的 book.txt 做成有声书”,AI 会在回答下方准备好导入预览和制作计划。点击确认后才会导入与制作,且任务自动排在已有队列之后,不会打断你正在听或正在做的书。
|
|
15
|
+
- **一键听 AI 回答,随手朗读片段**:点击回答下方的「用 Edge 朗读」,或直接说“读给我听”,系统会自动跳过代码块与链接地址,并读出表格文字;在输入框发送 `/laivox 一段文字` 也能快速生成音频,结果收纳在「书架 → 对话音频」。
|
|
16
|
+
- **导出带走**:支持单章导出 MP3 / WAV,或将整本书打包导出为按章命名的 ZIP。
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
更完整的场景操作说明见 [使用指南](docs/GUIDE.md)。
|
|
19
19
|
|
|
20
|
-
|
|
|
20
|
+
| 角色与音色 | 导入预览 | 对话音频 | 深色主题 |
|
|
21
21
|
|---|---|---|---|
|
|
22
|
-
|  |  |  |  |
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## 安装
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
安装前先准备好 `dsh` 命令:
|
|
27
27
|
|
|
28
|
-
- **DSH
|
|
29
|
-
- **DSH Web /
|
|
28
|
+
- **DSH 桌面版**:在「应用程序」菜单中选「管理 dsh 命令…」→「安装」(位于「检查更新」下方),打开新终端执行 `dsh --version` 确认可用。桌面版的默认 Profile 名为 `desktop`。安装插件前请先启动一次桌面版,再**完全退出**(包括系统托盘),然后执行下方命令。详见 [官方桌面版文档](https://github.com/deepseek-ai/deepseek-harness/blob/38a6a5c/apps/desktop/README.zh.md#终端命令)。
|
|
29
|
+
- **DSH Web / 命令行版**:需要 Node.js 24.9 或更高版本,示例中使用 Profile 名 `web`。
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
如使用其他 Profile,将命令中的 `desktop` 替换为你的 Profile 名称即可。
|
|
32
|
+
|
|
33
|
+
### 在线安装(推荐)
|
|
32
34
|
|
|
33
35
|
```sh
|
|
34
36
|
dsh plugin --profile desktop add dsh-laivox-tts
|
|
35
37
|
```
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
直接安装 npm 上的预构建插件包,无需在本地编译或授权构建脚本(国内网络可自动受益于镜像加速)。
|
|
38
40
|
|
|
39
|
-
###
|
|
41
|
+
### GitHub Release 链接或离线安装包安装
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
如需锁定版本或无法直连 npm,可使用 Release 下载链接(将 `latest/download` 替换为 `download/v0.7.15` 可锁定版本),或从 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) 下载 `dsh-laivox-tts.tgz` 到本地后安装:
|
|
42
44
|
|
|
43
45
|
```sh
|
|
44
46
|
dsh plugin --profile desktop add "https://github.com/xiaolai181/dsh_laivox_tts/releases/latest/download/dsh-laivox-tts.tgz"
|
|
45
|
-
#
|
|
47
|
+
# 或使用本地文件:
|
|
46
48
|
dsh plugin --profile desktop add ./dsh-laivox-tts.tgz
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
<details>
|
|
50
|
-
<summary
|
|
52
|
+
<summary>从源码目录安装(开发者)</summary>
|
|
51
53
|
|
|
52
54
|
```sh
|
|
53
55
|
git clone https://github.com/xiaolai181/dsh_laivox_tts.git laivox-tts
|
|
54
56
|
cd laivox-tts
|
|
55
|
-
npx pnpm install # pnpm
|
|
57
|
+
npx pnpm install # 必须使用 pnpm,安装时会自动构建 lib/
|
|
56
58
|
dsh plugin --profile desktop add .
|
|
57
59
|
```
|
|
58
60
|
|
|
59
|
-
|
|
61
|
+
Profile 会直接链接到该源码目录,安装后请勿移动或删除。执行 `git pull` 更新源码后,需再次运行 `npx pnpm install` 重新构建。
|
|
60
62
|
|
|
61
|
-
>
|
|
63
|
+
> **从源码安装改回插件包安装时**:执行 `dsh plugin remove` 后,Profile 的 `node_modules` 下仍会保留 `dsh-laivox-tts` 目录链接。请先只删除该链接本身(Windows 上使用不带 `/s` 的 `rmdir`),再安装插件包,避免误删源码目录内的文件。
|
|
62
64
|
|
|
63
65
|
</details>
|
|
64
66
|
|
|
65
|
-
###
|
|
67
|
+
### 安装完成后
|
|
66
68
|
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
69
|
+
- **桌面版**:重新打开 DeepSeek Harness。**Web 版**:重启 `dsh web`。
|
|
70
|
+
- 左侧栏会出现「小说配音(LaiVox)」。
|
|
71
|
+
- 可通过 `dsh plugin --profile desktop list` 查看安装状态。
|
|
70
72
|
|
|
71
|
-
###
|
|
73
|
+
### 更新与卸载
|
|
72
74
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
+
- **更新**:重新运行一次安装命令即可(使用 `latest/download` 会自动获取最新版)。
|
|
76
|
+
- **卸载**:运行 `dsh plugin --profile desktop remove dsh-laivox-tts`。已导入的书籍与生成的音频会保留在本机。
|
|
75
77
|
|
|
76
|
-
##
|
|
78
|
+
## 五分钟上手
|
|
77
79
|
|
|
78
|
-
|
|
80
|
+
可在 **DSH 设置 → 通用设置 → 语言** 中切换简体中文、繁体中文或英文,工作台会同步跟随。
|
|
79
81
|
|
|
80
|
-
1.
|
|
81
|
-
2.
|
|
82
|
-
3.
|
|
83
|
-
4.
|
|
82
|
+
1. 从侧栏打开「小说配音(LaiVox)」。工作台顶部有三个页签:**收听**、**制作**、**书架**,右上角为任务列表与设置。
|
|
83
|
+
2. 首次打开若书架为空,会自动放好两本免 Key 试听示例:《社戏 · 月夜行船 · Edge》(Edge 单人朗读)与《绿野仙踪 · 营救铁皮人 · LaiVox》(LaiVox 多角色配音),点开即可直接试听,不需要时可随时删除。
|
|
84
|
+
3. 在 **书架 →「导入 TXT / EPUB / PDF」** 选择小说文件(或点击「新建书籍」粘贴正文)。分章有误时可点击标题调整,确认后导入。
|
|
85
|
+
4. 打开章节,选择「单人朗读」并点击「开始制作」(无需调用 AI);第一段生成完毕即可播放,支持倍速、定时关闭、书签、随读高亮与自动续播下一章(可在设置中关闭)。
|
|
84
86
|
|
|
85
|
-
##
|
|
87
|
+
## 隐私与费用
|
|
86
88
|
|
|
87
|
-
-
|
|
88
|
-
- **AI
|
|
89
|
-
- **LaiVox
|
|
90
|
-
-
|
|
89
|
+
- **微软 Edge 在线语音**:默认内置,无需注册账号。待朗读或合成的文字会发送至微软 Edge 在线语音服务,服务可用性与条款受微软方约束。
|
|
90
|
+
- **AI 辅助功能**:正文清洗、多角色演绎编剧与 AI 辅助分章会使用你在 DSH 中配置的模型,并计入对应模型额度;每一步都会先展示预计请求数,经你确认后才会调用。单人朗读从不调用模型。
|
|
91
|
+
- **LaiVox 引擎(可选增值)**:在设置的「制作与发声」中开启并保存 API Key。支持使用会员朗读额度或单独购买的朗读时长包,合成文字会发送至 LaiVox 服务并按其隐私与保留策略处理;API Key 保存在 DSH 凭据服务中,仅在使用 LaiVox 时连接服务。自有音色的上传与管理仍在 LaiVox 浏览器扩展中进行。
|
|
92
|
+
- **版权与权限边界**:请仅导入并制作你拥有合法使用权的文本,生成的音频仅供个人合规使用。AI 助手仅能读取当前对话的工作目录,无法删除书架中的任何书籍。
|
|
91
93
|
|
|
92
|
-
##
|
|
94
|
+
## 数据与本地存储
|
|
93
95
|
|
|
94
|
-
|
|
96
|
+
你的书架、正文、台词与已生成的音频全部保存在本机:
|
|
95
97
|
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
98
|
+
- **存储上限**:音频缓存默认上限为 2 GiB,可在「设置 → 存储」中调整为 0.5~20 GiB(修改后重新打开 DSH 生效)。空间达到上限时会暂停新制作,你可以随时按书或按章清理音频,正文和台词会保留。
|
|
99
|
+
- **对话音频清理**:通过对话生成的朗读音频若超过 7 天未收听会自动清理,可在设置中改为 1 天、30 天或永不清理;转存到书架后将永久保留。
|
|
100
|
+
- **彻底清除**:卸载插件后删除对应的插件数据目录即可完全清除本地数据。
|
|
99
101
|
|
|
100
102
|
<details>
|
|
101
|
-
<summary
|
|
103
|
+
<summary>数据目录与升级前备份说明</summary>
|
|
102
104
|
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
105
|
+
- 所有数据位于当前 Profile 目录下的 `<DSH 主目录>/profiles/<Profile 名>/dsh-laivox-tts/`(DSH 主目录默认为 `~/.dsh`),其中 `library.sqlite` 保存书架、台词、任务、音频与播放进度。
|
|
106
|
+
- **升级前建议备份**:完全退出 DSH 后复制整个 `dsh-laivox-tts` 目录。跨版本更新可能升级本地数据库结构(当前为 v13),升级后的数据库无法再被旧版本插件打开。
|
|
107
|
+
- 内置试听示例仅在全新空白 Profile 首次启动时写入一次(已有书籍的老 Profile 升级不会写入),删除后重启或升级不会重新出现。
|
|
106
108
|
|
|
107
109
|
</details>
|
|
108
110
|
|
|
109
111
|
<details>
|
|
110
|
-
<summary
|
|
112
|
+
<summary>文件规格与使用须知</summary>
|
|
111
113
|
|
|
112
|
-
- **PDF
|
|
113
|
-
-
|
|
114
|
-
-
|
|
114
|
+
- **PDF 支持**:支持包含可选中文字的 PDF,暂不支持纯图片扫描版。
|
|
115
|
+
- **导入限制**:单个文件最大 50 MiB;EPUB 解压后不超过 150 MiB(其中单个内部文件不超过 32 MiB);PDF 不超过 5,000 页或 3,000 万字;单本书籍最多 5,000 章。
|
|
116
|
+
- **对话交互说明**:确认操作按钮、导入预览与生成结果仅挂在最新一轮回答下方;朗读首句通常约需 1~2 秒准备,后续段落约 0.5~1 秒;同一对话在多个窗口同时打开时,由 AI 发起的朗读会在这些窗口同步播放。
|
|
115
117
|
|
|
116
118
|
</details>
|
|
117
119
|
|
|
118
|
-
##
|
|
120
|
+
## 许可
|
|
119
121
|
|
|
120
|
-
|
|
122
|
+
LaiVox 自有的插件代码采用 [MIT 许可证](LICENSE),LaiVox TTS 服务端和服务访问权限不在此范围内。LaiVox 品牌、图标和预置试听音频按各自的授权使用,详见 [许可与第三方声明](THIRD_PARTY_NOTICES.md)。
|