dsh-laivox-tts 0.7.7 → 0.7.8

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 CHANGED
@@ -2,23 +2,20 @@
2
2
 
3
3
  **English** · [简体中文](README.zh-CN.md)
4
4
 
5
- An audiobook plugin for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH). Turn TXT, EPUB, and text-based PDF novels into narrated or multi-voice audio, or have DSH read its replies aloud. It uses Microsoft Edge online voices by default, so no account or sign-up is needed.
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
6
 
7
7
  ![The LaiVox workbench: bookshelf, chapter text and player](assets/screenshots/listen.png)
8
8
 
9
- > The plugin's interface is in Chinese and it is built for Chinese text (Simplified and Traditional). Read-aloud also handles English. The Chinese labels below are the ones you will see on screen.
10
-
11
9
  ## What you can do
12
10
 
13
- - **Listen to a novel you have.** Import a TXT, EPUB, or text-based PDF file. Chapters are detected for you and shown in a preview before anything is saved. Pick a chapter and press 开始制作 (Start). Playback can start as soon as the first segment is ready.
14
- - **Give each character a voice.** Choose 多角色演绎 (multi-voice) instead of 单人朗读 (single narrator). Your DSH model marks who is speaking and in what tone, and each role gets its own voice. You see the expected number of model requests and confirm before any model call. Edge changes the voice per role but does not perform the per-line delivery; that requires LaiVox.
15
- - **Use LaiVox voices (optional).** Under Settings → 制作与发声 (Production and voice), switch the engine to LaiVox. That choice is marked recommended; Edge stays the default. LaiVox reads each line with its marked delivery. When the account has own voices enabled, voices uploaded in the LaiVox browser extension can be assigned to roles. LaiVox uses a membership reading allowance or a separately purchased read-aloud pack, and needs an API key.
16
- - **Let the AI do the setup.** In chat, say "turn book.txt in my workspace into an audiobook". The AI prepares an import preview and a production order under its reply. Nothing is imported or produced until you click confirm, and AI jobs queue behind yours instead of interrupting them.
17
- - **Hear a reply instead of reading it.** Click the speaker button 用 Edge 朗读 under any assistant message, or ask "read it to me". Closed code blocks and link addresses are skipped. Table cells are read.
18
- - **Quick snippets.** Type `/laivox some text` in the chat box to turn a passage into audio. The results are kept under 书架 → 对话音频 (Bookshelf → Chat audio).
19
- - **Take it with you.** Download a chapter as MP3 or WAV, or export a whole book as a ZIP of MP3 or WAV files.
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.
20
17
 
21
- Step-by-step walkthroughs of each scenario are in the [user guide](docs/GUIDE.md) (Chinese).
18
+ Step-by-step walkthroughs are in the [user guide](docs/GUIDE.md) (Chinese).
22
19
 
23
20
  | Roles and voices | Import preview | Chat audio | Dark theme |
24
21
  |---|---|---|---|
@@ -26,32 +23,31 @@ Step-by-step walkthroughs of each scenario are in the [user guide](docs/GUIDE.md
26
23
 
27
24
  ## Install
28
25
 
29
- You need the `dsh` command:
30
-
31
- - **DSH Desktop**: in the application menu, choose **Manage dsh Command… → Install** (just below **Check for Updates…**). Open a new terminal and run `dsh --version`. Desktop's profile is named `desktop`. 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).
32
- - **DSH Web / CLI**: requires Node.js 24.9 or later. The examples below use a profile named `web`.
26
+ Make sure the `dsh` command is available:
33
27
 
34
- Replace `desktop` with your own profile name wherever needed.
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.
35
30
 
36
- ### Remote: install from the latest release (recommended)
31
+ ### Online install (recommended)
37
32
 
38
33
  ```sh
39
34
  dsh plugin --profile desktop add "https://github.com/xiaolai181/dsh_laivox_tts/releases/latest/download/dsh-laivox-tts.tgz"
40
35
  ```
41
36
 
42
- This is a prebuilt package. Nothing is compiled on your machine and no build permission is asked for. To pin a version, replace `latest/download` with `download/v0.7.7`. Other versions are listed on the [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) page.
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.8` (see [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases)).
43
38
 
44
- ### Local: install a downloaded package
39
+ ### Offline package install
45
40
 
46
- Download `dsh-laivox-tts.tgz` from [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases), then run this in the folder that contains it:
41
+ Download `dsh-laivox-tts.tgz` from [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) and run this in the folder containing it:
47
42
 
48
43
  ```sh
49
44
  dsh plugin --profile desktop add ./dsh-laivox-tts.tgz
50
45
  ```
51
46
 
52
- This works offline, for example on a machine without GitHub access.
47
+ Useful when the machine does not have direct GitHub access.
53
48
 
54
- ### Local: install from a source folder (for developers)
49
+ <details>
50
+ <summary>Install from a source folder (for developers)</summary>
55
51
 
56
52
  ```sh
57
53
  git clone https://github.com/xiaolai181/dsh_laivox_tts.git laivox-tts
@@ -60,58 +56,64 @@ npx pnpm install # pnpm is required; this also builds lib/
60
56
  dsh plugin --profile desktop add .
61
57
  ```
62
58
 
63
- The profile links to this folder, so keep it where it is. After `git pull`, run `npx pnpm install` again to rebuild.
59
+ The profile links directly to this folder, so keep it in place. After `git pull`, run `npx pnpm install` again to rebuild.
64
60
 
65
- > **Switching from a source folder to a package install:** after `dsh plugin remove`, a link named `dsh-laivox-tts` is left in the profile's `node_modules`. Delete that link first, and only the link (on Windows: `rmdir` without `/s`). Otherwise the next install may delete files inside your source folder.
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>
66
64
 
67
65
  ### After installing
68
66
 
69
67
  - **Desktop**: reopen DeepSeek Harness. **Web**: restart `dsh web`.
70
- - The plugin appears in the sidebar as **小说配音(LaiVox)** (Novel voices).
71
- - Check what is installed: `dsh plugin --profile desktop list`
68
+ - **Novel voices (LaiVox)** appears in the sidebar.
69
+ - Verify installed plugins with `dsh plugin --profile desktop list`.
72
70
 
73
71
  ### Update and uninstall
74
72
 
75
- - **Update**: run the same install command again. A `latest/download` link fetches the newest release.
76
- - **Uninstall**: `dsh plugin --profile desktop remove dsh-laivox-tts`. Your books and audio stay on disk (see [Your data](#your-data)).
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.
77
75
 
78
76
  ## First five minutes
79
77
 
80
- Choose the workbench language in **DSH Settings → General → Language**. LaiVox supports Simplified Chinese, Traditional Chinese, and English.
78
+ Choose your preferred language under **DSH Settings → General → Language** (Simplified Chinese, Traditional Chinese, or English).
81
79
 
82
- 1. Open **小说配音(LaiVox)** from the sidebar. The workbench has three tabs: 收听 (Listen), 制作 (Produce), and 书架 (Bookshelf). Tasks and settings are at the top right.
83
- 2. Go to **书架 → 导入 TXT / EPUB / PDF** and pick a file. If the chapter split looks wrong, click a chapter title to adjust it, then confirm the import.
84
- 3. Open a chapter, choose **单人朗读** (single narrator) and press **开始制作**. This uses no AI.
85
- 4. Press play once the first segment is ready. Speed, sleep timer, bookmarks and follow-along highlighting are in the player. The next chapter plays automatically; you can turn this off in settings.
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.
86
84
 
87
- To paste text instead of importing a file, use **书架 → 新建书籍** (New book).
85
+ ## Privacy and cost
88
86
 
89
- When opened on a fresh, empty profile for the first time, the bookshelf starts with two playable sample books: 社戏 · 月夜行船 · Edge (generated with Microsoft Edge online speech for single-narrator reading) and 绿野仙踪 · 营救铁皮人 · LaiVox (generated with LaiVox preset voices for multi-role performance). No API key is needed to listen or export them.
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.
90
91
 
91
- ## Privacy and cost
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.
92
99
 
93
- - **Edge voices** are the built-in online voices and need no account. The text being voiced is sent to Microsoft's online Edge speech service via an unofficial protocol; availability and terms of use are governed by Microsoft and are not guaranteed by this project.
94
- - **AI features** (cleanup, multi-voice scripting, AI-assisted chapter splitting) use the model you configured in DSH and count against that model's quota. Every such step shows the expected requests and waits for your confirmation. Single-narrator reading never calls a model.
95
- - **The LaiVox engine** is an optional paid add-on. It draws on a membership reading allowance or a separately purchased read-aloud pack. Choose it under Settings → 制作与发声 (Production and voice) and save the API key. Text submitted for synthesis is sent to the LaiVox service and handled under its service and retention policies. The reading allowance is shared with the LaiVox browser extension. A read-aloud pack or a quota pool ends when it is used up or expires. Only an older membership account that is still billed by usage day can open the next day, and only after you confirm. You can also finish the chapter with Edge. When the account has own voices enabled, voices uploaded in the browser extension can be given to roles; uploading and editing them stay in the extension. The key is stored in DSH's credential service, and the plugin only contacts LaiVox while you use it.
96
- - **Content rights**: import and synthesize only texts that you own or are legally permitted to process. Generated audio is for personal, lawful use.
97
- - The AI can read files only in the current chat's workspace, and it cannot delete your books.
100
+ <details>
101
+ <summary>Data folder and backup notes before upgrading</summary>
98
102
 
99
- ## Your data
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.
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.
100
106
 
101
- Everything stays on your machine, in the profile folder: `<DSH home>/profiles/<profile>/dsh-laivox-tts/`. The default DSH home is `~/.dsh`. A single `library.sqlite` holds the bookshelf, scripts, tasks, audio and playback positions.
107
+ </details>
102
108
 
103
- - **Back up before upgrading**: fully quit DSH and copy the whole `dsh-laivox-tts` folder. A newer version may upgrade the database (currently v12), and older versions can no longer open it.
104
- - **Audio budget**: 2 GiB by default, adjustable from 0.5 to 20 GiB under 设置 → 存储 (Settings → Storage). The new limit applies after you reopen DSH. When space runs out, new production pauses. You can clear audio by book or chapter, and text and scripts are kept.
105
- - **Chat audio** that has not been played for 7 days is deleted automatically. You can change this to 1 day, 30 days or never. Saving it to the bookshelf keeps it permanently.
106
- - **Built-in sample books** are seeded once on a fresh, empty profile (existing profiles with books are untouched when upgrading). You can delete them at any time and they will not reappear on restart or upgrade.
107
- - To wipe everything, uninstall the plugin and delete the `dsh-laivox-tts` folder.
109
+ <details>
110
+ <summary>File limits and usage notes</summary>
108
111
 
109
- ## Known limitations
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.
110
115
 
111
- - Confirmation buttons, import previews and results appear only under the latest reply, not under earlier ones.
112
- - The first read-aloud sentence takes about 2 seconds. Later sentences take 0.5 to 1 second.
113
- - If the same chat is open in two windows, AI-started read-aloud plays in both.
114
- - A single import file is limited to 50 MiB. An EPUB may expand to at most 150 MiB, and each file inside it to 32 MiB. A PDF is limited to 5,000 pages or 30 million characters. A book can have at most 5,000 chapters.
116
+ </details>
115
117
 
116
118
  ## License
117
119
 
package/README.zh-CN.md CHANGED
@@ -2,21 +2,20 @@
2
2
 
3
3
  [English](README.md) · **简体中文**
4
4
 
5
- [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(DSH)的有声书插件:把 TXT / EPUB / 文字型 PDF 小说做成单人朗读或多角色配音的音频,也能把 AI 的回答直接读给你听。默认使用微软 Edge 在线语音,不用注册账号。
5
+ [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(DSH)的有声书插件:把 TXT、EPUB、PDF 小说做成单人朗读或多角色有声书,也能一键把 AI 的回答读给你听。默认内置微软 Edge 在线语音,无需注册账号,支持简体中文、繁体中文与英文。
6
6
 
7
7
  ![LaiVox 工作台:书架、正文与播放器](assets/screenshots/listen.png)
8
8
 
9
- ## 能做什么
9
+ ## 你能用它做什么
10
10
 
11
- - **听手里的小说**:导入 TXT、EPUB 或文字型 PDF,自动分章,入库前先看预览。选一章点「开始制作」,第一段合成好就能播放,不用等整章。
12
- - **给角色配不同的声音**:选「多角色演绎」,由你在 DSH 里配置的模型标注谁在说话、什么语气,再按角色分配音色。开始前会列出预计请求数,你确认后才调用模型。Edge 会换成不同音色,但不按逐句语气演绎;逐句语气要换 LaiVox。
13
- - **使用 LaiVox 音色(可选)**:在设置的「制作与发声」里把引擎换成 LaiVox。这一项标为推荐,默认仍是 Edge。LaiVox 按每句语气拟人演绎;账号开通自有音色时,也可以把在 LaiVox 浏览器扩展里上传的音色分给角色。需要会员朗读额度或单独购买的朗读时长包,并保存 API Key。
14
- - **让 AI 帮你准备**:在对话里说"把工作目录里的 book.txt 做成有声书",AI 会在回答下方给出导入预览和制作单。你点确认才会导入、制作;AI 发起的任务排在你已有的任务后面,不打断你。
15
- - **把回答读给你听**:点回答下方的喇叭「用 Edge 朗读」,或者直接说"读给我听"。已闭合的代码块和链接地址会跳过,表格会读出单元格里的文字。
16
- - **随手听一段**:在输入框输入 `/laivox 一段文字`,就能把它做成音频,结果收在「书架 → 对话音频」。
17
- - **带走**:单章下载 MP3 / WAV,整本导出为按章命名的 ZIP。
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。
18
17
 
19
- 每个场景的详细步骤见 [使用指南](docs/GUIDE.md)。
18
+ 更完整的场景操作说明见 [使用指南](docs/GUIDE.md)。
20
19
 
21
20
  | 角色与音色 | 导入预览 | 对话音频 | 深色主题 |
22
21
  |---|---|---|---|
@@ -24,92 +23,99 @@
24
23
 
25
24
  ## 安装
26
25
 
27
- 先准备好 `dsh` 命令:
26
+ 安装前先准备好 `dsh` 命令:
28
27
 
29
- - **DSH 桌面版**:在「应用程序」菜单里选「管理 dsh 命令…」→「安装」(在「检查更新」下方)。打开一个新终端,运行 `dsh --version` 确认可用。桌面版的 Profile 名是 `desktop`。安装插件前先打开一次桌面版,再**完全退出**(包括系统托盘),然后运行下面的命令。参见 [官方桌面版文档](https://github.com/deepseek-ai/deepseek-harness/blob/38a6a5c/apps/desktop/README.zh.md#终端命令)。
30
- - **DSH Web / 命令行版**:需要 Node.js 24.9 或更新版本。下面的示例 Profile 名是 `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`。
31
30
 
32
- 命令里的 `desktop` 换成你自己的 Profile 名即可。
31
+ 如使用其他 Profile,将命令中的 `desktop` 替换为你的 Profile 名称即可。
33
32
 
34
- ### 远程安装:从最新发布版安装(推荐)
33
+ ### 在线安装(推荐)
35
34
 
36
35
  ```sh
37
36
  dsh plugin --profile desktop add "https://github.com/xiaolai181/dsh_laivox_tts/releases/latest/download/dsh-laivox-tts.tgz"
38
37
  ```
39
38
 
40
- 这是预构建的插件包,不在你的电脑上编译,也不需要授权构建。想固定版本时,把 `latest/download` 换成 `download/v0.7.7`。所有版本见 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) 页面。
39
+ 安装的是预构建插件包,无需在本地编译或授权构建脚本。如需锁定版本,可将 `latest/download` 替换为 `download/v0.7.8`(全部版本见 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases))。
41
40
 
42
- ### 本地安装:用下载好的插件包
41
+ ### 离线安装包安装
43
42
 
44
- 从 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) 下载 `dsh-laivox-tts.tgz`,在文件所在目录运行:
43
+ 从 [Releases](https://github.com/xiaolai181/dsh_laivox_tts/releases) 下载 `dsh-laivox-tts.tgz`,在文件所在目录执行:
45
44
 
46
45
  ```sh
47
46
  dsh plugin --profile desktop add ./dsh-laivox-tts.tgz
48
47
  ```
49
48
 
50
- 这种方式不需要联网,适合访问不了 GitHub 的电脑。
49
+ 适合无法直连 GitHub 的离线或内网环境。
51
50
 
52
- ### 本地安装:从源码目录安装(开发者)
51
+ <details>
52
+ <summary>从源码目录安装(开发者)</summary>
53
53
 
54
54
  ```sh
55
55
  git clone https://github.com/xiaolai181/dsh_laivox_tts.git laivox-tts
56
56
  cd laivox-tts
57
- npx pnpm install # 必须用 pnpm,安装时会自动构建 lib/
57
+ npx pnpm install # 必须使用 pnpm,安装时会自动构建 lib/
58
58
  dsh plugin --profile desktop add .
59
59
  ```
60
60
 
61
- Profile 链接的是这个目录本身,安装后不要移动或删除它。`git pull` 之后要再运行一次 `npx pnpm install` 重新构建。
61
+ Profile 会直接链接到该源码目录,安装后请勿移动或删除。执行 `git pull` 更新源码后,需再次运行 `npx pnpm install` 重新构建。
62
62
 
63
- > **从源码目录安装换成插件包安装时**:`dsh plugin remove` 之后,Profile 的 `node_modules` 里还会留一个名为 `dsh-laivox-tts` 的链接。先删掉这个链接,并且只删链接本身(Windows 上用不带 `/s` 的 `rmdir`),否则下一次安装可能会删掉源码目录里的文件。
63
+ > **从源码安装改回插件包安装时**:执行 `dsh plugin remove` 后,Profile 的 `node_modules` 下仍会保留 `dsh-laivox-tts` 目录链接。请先只删除该链接本身(Windows 上使用不带 `/s` 的 `rmdir`),再安装插件包,避免误删源码目录内的文件。
64
64
 
65
- ### 安装之后
65
+ </details>
66
+
67
+ ### 安装完成后
66
68
 
67
69
  - **桌面版**:重新打开 DeepSeek Harness。**Web 版**:重启 `dsh web`。
68
- - 侧栏里会出现「小说配音(LaiVox)」。
69
- - 查看已安装的插件:`dsh plugin --profile desktop list`
70
+ - 左侧栏会出现「小说配音(LaiVox)」。
71
+ - 可通过 `dsh plugin --profile desktop list` 查看安装状态。
70
72
 
71
73
  ### 更新与卸载
72
74
 
73
- - **更新**:再运行一次安装命令。用 `latest/download` 链接安装的,会取到最新发布版。
74
- - **卸载**:`dsh plugin --profile desktop remove dsh-laivox-tts`。书架和音频仍保留在本机(见 [数据保存在哪](#数据保存在哪))。
75
+ - **更新**:重新运行一次安装命令即可(使用 `latest/download` 会自动获取最新版)。
76
+ - **卸载**:运行 `dsh plugin --profile desktop remove dsh-laivox-tts`。已导入的书籍与生成的音频会保留在本机。
75
77
 
76
- ## 上手五分钟
78
+ ## 五分钟上手
77
79
 
78
- 在 **DSH 设置 → 通用设置 → 语言** 选择简体中文、繁体中文或英文,插件界面会跟随切换。
80
+ 可在 **DSH 设置 → 通用设置 → 语言** 中切换简体中文、繁体中文或英文,工作台会同步跟随。
79
81
 
80
- 1. 从侧栏打开「小说配音(LaiVox)」。工作台顶部有三个页签:**收听**、**制作**、**书架**;右上角是任务和设置。
81
- 2. 进入 **书架 →「导入 TXT / EPUB / PDF」**,选择文件。分章不对时,点章节标题调整,然后确认导入。
82
- 3. 打开一章,选「单人朗读」,点「开始制作」。这一步不用 AI。
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
- 全新空白 Profile 首次打开插件时,书架会预置两本试听示例:《社戏 · 月夜行船 · Edge》(由微软 Edge 在线语音单人朗读生成)与《绿野仙踪 · 营救铁皮人 · LaiVox》(由 LaiVox 预置音色多角色演绎生成)。无需配置 API Key,首次打开会直接进入书架,点示例书目录里的「收听」即可试听。
89
+ - **微软 Edge 在线语音**:默认内置,无需注册账号。待朗读或合成的文字会发送至微软 Edge 在线语音服务,服务可用性与条款受微软方约束。
90
+ - **AI 辅助功能**:正文清洗、多角色演绎编剧与 AI 辅助分章会使用你在 DSH 中配置的模型,并计入对应模型额度;每一步都会先展示预计请求数,经你确认后才会调用。单人朗读从不调用模型。
91
+ - **LaiVox 引擎(可选增值)**:在设置的「制作与发声」中开启并保存 API Key。支持使用会员朗读额度或单独购买的朗读时长包,合成文字会发送至 LaiVox 服务并按其隐私与保留策略处理;API Key 保存在 DSH 凭据服务中,仅在使用 LaiVox 时连接服务。自有音色的上传与管理仍在 LaiVox 浏览器扩展中进行。
92
+ - **版权与权限边界**:请仅导入并制作你拥有合法使用权的文本,生成的音频仅供个人合规使用。AI 助手仅能读取当前对话的工作目录,无法删除书架中的任何书籍。
88
93
 
89
- ## 隐私与费用
94
+ ## 数据与本地存储
95
+
96
+ 你的书架、正文、台词与已生成的音频全部保存在本机:
97
+
98
+ - **存储上限**:音频缓存默认上限为 2 GiB,可在「设置 → 存储」中调整为 0.5~20 GiB(修改后重新打开 DSH 生效)。空间达到上限时会暂停新制作,你可以随时按书或按章清理音频,正文和台词会保留。
99
+ - **对话音频清理**:通过对话生成的朗读音频若超过 7 天未收听会自动清理,可在设置中改为 1 天、30 天或永不清理;转存到书架后将永久保留。
100
+ - **彻底清除**:卸载插件后删除对应的插件数据目录即可完全清除本地数据。
90
101
 
91
- - **Edge 语音**是内置在线语音,不需要账号。要合成的文字会通过非官方在线朗读协议发送到微软 Edge 在线语音服务,可用性与服务条款受微软方约束,本项目不作稳定性保证。
92
- - **AI 功能**(清洗正文、多角色编剧、AI 辅助分章)使用你在 DSH 里配置的模型,计入该模型的额度。每一步都会先显示预计请求数,等你确认。单人朗读从不调用模型。
93
- - **LaiVox 引擎**是可选的增值功能,使用会员朗读额度或单独购买的朗读时长包。在设置的「制作与发声」里选择 LaiVox,并保存 API Key。要合成的正文会发送到 LaiVox 服务并按其服务与保留策略处理,占用的朗读额度与 LaiVox 浏览器扩展共用。时长包和额度池用完即止;只有仍按使用日计的旧会员账户,才可以在确认后开启下一个使用日。也可以改用 Edge 继续这一章。账号开通自有音色时,可以把在浏览器扩展里上传的音色分给角色,上传和修改仍在扩展里进行。Key 保存在 DSH 的凭据服务里,只有在你使用 LaiVox 时插件才会连接它。
94
- - **版权与合规**:请仅导入和合成你拥有合法权利的文本内容;生成的音频仅供个人合规使用。
95
- - AI 只能读取当前对话工作目录里的文件,也不能删除你的书。
102
+ <details>
103
+ <summary>数据目录与升级前备份说明</summary>
96
104
 
97
- ## 数据保存在哪
105
+ - 所有数据位于当前 Profile 目录下的 `<DSH 主目录>/profiles/<Profile 名>/dsh-laivox-tts/`(DSH 主目录默认为 `~/.dsh`),其中 `library.sqlite` 保存书架、台词、任务、音频与播放进度。
106
+ - **升级前建议备份**:完全退出 DSH 后复制整个 `dsh-laivox-tts` 目录。跨版本更新可能升级本地数据库结构(当前为 v12),升级后的数据库无法再被旧版本插件打开。
107
+ - 内置试听示例仅在全新空白 Profile 首次启动时写入一次(已有书籍的老 Profile 升级不会写入),删除后重启或升级不会重新出现。
98
108
 
99
- 所有数据都在本机的 Profile 目录里:`<DSH 主目录>/profiles/<Profile 名>/dsh-laivox-tts/`,DSH 主目录默认是 `~/.dsh`。书架、台词脚本、任务、音频和播放进度都存在其中的 `library.sqlite`。
109
+ </details>
100
110
 
101
- - **升级前请备份**:完全退出 DSH,复制整个 `dsh-laivox-tts` 目录。新版本可能会升级数据库(当前为 v12),升级后旧版本打不开。
102
- - **音频空间**:默认上限 2 GiB,可在「设置 → 存储」调整为 0.5~20 GiB。修改后要重新打开 DSH 才生效。空间不够时新的制作会暂停;可以按书或按章清理音频,正文和台词会保留。
103
- - **对话音频**超过 7 天没听会自动删除,可改为 1 天、30 天或永不。保存到书架后就不会再自动删除。
104
- - **内置试听示例**仅在全新空白 Profile 首次启动时写入一次(已有书籍的老 Profile 升级不会写入),可在书架随时删除,删除后重启或升级不会重新出现。
105
- - 想彻底清除:卸载插件后删除 `dsh-laivox-tts` 目录。
111
+ <details>
112
+ <summary>文件规格与使用须知</summary>
106
113
 
107
- ## 已知限制
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 发起的朗读会在这些窗口同步播放。
108
117
 
109
- - 确认按钮、导入预览和结果只出现在最后一轮回答下方,更早的回合里不会出现。
110
- - 朗读的第一句约 2 秒才开始,之后每句约 0.5~1 秒。
111
- - 同一个对话在两个窗口同时打开时,AI 发起的朗读两个窗口都会播放。
112
- - 单个导入文件最大 50 MiB。EPUB 解压后不超过 150 MiB,其中单个内部文件不超过 32 MiB。PDF 不超过 5,000 页或 3,000 万字。每本书最多 5,000 章。
118
+ </details>
113
119
 
114
120
  ## 许可
115
121
 
package/docs/DETAIL.en.md CHANGED
@@ -1,27 +1,25 @@
1
1
  # Novel voices (LaiVox)
2
2
 
3
- Turn TXT, EPUB, and text-based PDF novels into playable audio in DeepSeek Harness, or read chat messages aloud.
3
+ Turn TXT, EPUB, and PDF novels into audiobooks inside DeepSeek Harness, or have AI replies read aloud with one click. Built-in online voices work out of the box with no account required.
4
+
5
+ On first launch, two playable sample books are placed on your bookshelf—a single-voice Edge sample and a multi-voice LaiVox sample—so you can preview both styles right away and delete them anytime.
4
6
 
5
7
  ## What you can do
6
8
 
7
- - Import TXT, EPUB, or text-based PDF books and organize them into chapters.
8
- - Produce single-voice or multi-voice narration. Edge Online Speech is the default and needs no account. Paid LaiVox members can switch engines in Settings → Production, use their LaiVox speech quota, and select voices they uploaded in the LaiVox browser extension.
9
- - Use `/laivox` in chat or ask AI to propose a reading. Confirm below the reply before AI cleanup or scripting begins.
10
- - Use **Read aloud with Edge** next to an assistant message, or ask the assistant to read aloud.
11
- - Ask AI to search the bookshelf, create books, append chapters, preview TXT, EPUB, or PDF files from the workspace, or draft a production plan. You confirm imports and production. You can also import files delivered in chat from their file actions.
12
- - Play at different speeds, set a sleep timer, jump to a segment, and export MP3 or WAV.
9
+ - **Turn books into audio**: Import TXT, EPUB, or PDF files with automatic chapter detection, or paste text into a new book. Playback begins as soon as the first segment is ready.
10
+ - **Single-voice or multi-voice narration**: Single-voice reading works immediately without AI. Switch to **Multi-voice narration** to let your DSH model identify speakers and tone, giving each character a distinct voice.
11
+ - **Listen to AI replies and quick passages**: Click **Read aloud with Edge** next to an assistant message, ask the assistant to read aloud, or run `/laivox` on any passage. Chat clips stay organized under **Bookshelf → Chat audio** and can be saved to your bookshelf anytime.
12
+ - **Let AI help organize and queue**: Ask AI to check your bookshelf, prepare an import preview from your workspace, or queue chapters for production. Files delivered in chat also include one-click **Import into LaiVox**. Every import and model-assisted step shows a preview and waits for your confirmation.
13
+ - **Comfortable listening and offline export**: Adjust speed, set a sleep timer, resume where you left off, add bookmarks, and follow along with highlighted text. Export chapters as MP3 or WAV, or a whole book as a ZIP archive.
13
14
 
14
- ## Chat and playback
15
+ ## Voice engines
15
16
 
16
- - Reading proposals, production plans, and import previews appear under the latest reply with confirmation controls. The tool card also lets you confirm.
17
- - The LaiVox bar above the chat box shows pending items, production progress, and the option to continue listening. Use × to hide it or adjust when it appears in Settings.
18
- - Recent results appear at the end of the latest turn. Preview in chat or open the chapter in the workbench.
19
- - Reading a reply aloud pauses the novel. The mini player offers **Continue listening** at the end.
20
- - Chat audio is grouped by conversation under Bookshelf → Chat audio. Inactive items expire after the configurable retention period, which defaults to seven days.
17
+ - **Microsoft Edge online voices (default)**: Ready out of the box with no sign-up—great for single-voice reading, basic multi-voice playback, and reading chat replies aloud.
18
+ - **LaiVox expressive voices (optional add-on)**: Switch in **Settings → Production & Voice Engine** 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.
21
19
 
22
- ## Language and data
20
+ ## Privacy and notes
23
21
 
24
- - Choose Simplified Chinese, Traditional Chinese, or English in DSH Settings → General → Language. The workbench follows the selected language.
25
- - All book data is stored in the Profile's `dsh-laivox-tts` folder. The legacy `laivox-novel-audio` folder is not migrated automatically. Older plugin versions cannot open the current v12 database. Back it up before upgrading.
26
- - On a fresh empty profile, first launch seeds two ready-to-play sample books (Edge single-narrator reading generated with Microsoft Edge online speech and LaiVox multi-role performance using preset voices) without requiring an API key. Deleting them keeps them removed across restarts and upgrades.
27
- - Reading aloud sends text to Microsoft’s Edge speech service.
22
+ - **Language**: Follows **DSH Settings → General → Language** (Simplified Chinese, Traditional Chinese, and English).
23
+ - **Stored locally**: Your bookshelf, text, scripts, and audio stay on your machine. Unplayed chat audio expires after 7 days by default (configurable in Settings).
24
+ - **Online speech services**: Text being voiced is sent to the speech engine you choose (Microsoft Edge or LaiVox). Single-voice reading never uses DSH model quota.
25
+ - **PDF support**: Works with text-based PDFs; image-only scanned PDFs are not supported.
package/docs/DETAIL.md CHANGED
@@ -1,29 +1,25 @@
1
1
  # 小说配音(LaiVox)
2
2
 
3
- 在 DeepSeek Harness 里把 TXT / EPUB / 文字型 PDF 小说做成可听的音频,也能把对话里的文字读出来。
3
+ 在 DeepSeek Harness 里,把 TXT、EPUB、PDF 小说做成可听的有声书,也能一键把 AI 的回答读给你听。默认内置在线语音,无需注册账号,安装后即可使用。
4
4
 
5
- ## 能做什么
5
+ 首次打开会自动在书架放好两本试听示例——《社戏 · 月夜行船 · Edge》(单人朗读)与《绿野仙踪 · 营救铁皮人 · LaiVox》(多角色配音),点开即可直接试听效果,不需要时可随时删除。
6
6
 
7
- - 导入 TXT、EPUB 或文字型 PDF,按章放进书架。
8
- - 单人朗读,或多角色配音。默认用 Edge 在线语音,不需要账号;也可以在「设置 → 制作」改用 LaiVox 引擎:用 LaiVox 会员的 API Key(扣会员的朗读额度),或单独购买朗读时长包(30 小时,60 天内有效);可用在 LaiVox 浏览器扩展里上传的音色。
9
- - 在对话里用 `/laivox` 或让 AI 提出朗读。需要 AI 清洗或编剧时,先在回答下方确认。
10
- - 助手消息旁的「用 Edge 朗读」把回答读出来;请 AI "读给我听"也会直接朗读。
11
- - AI 可以查书架、建书或追加章节、把工作目录里的 TXT/EPUB/PDF 生成导入预览、为一本书生成制作单;导入和制作由你确认。AI 交付的 TXT/EPUB/PDF 文件旁可一键「导入到 LaiVox」。
12
- - 播放、倍速、定时关闭、从某一段接着听,以及导出 MP3 / WAV。
7
+ ## 核心功能
13
8
 
14
- ## 对话里能看到什么
9
+ - **把小说变成有声书**:导入 TXT、EPUB 或 PDF,自动识别章节放入书架;也可以直接新建书籍粘贴正文。选好章节后边生成边听,无需等整章做完。
10
+ - **单人朗读,或多角色配音**:单人朗读开箱即用;切换到「多角色演绎」后,由你配置的 AI 模型分辨说话人与语气,为每个角色分配独立音色。
11
+ - **一键听 AI 回答,随手朗读片段**:点击助手回答旁的「用 Edge 朗读」,或直接让 AI 读给你听;也可以用 `/laivox` 朗读任意一段文字,生成的片段会收纳在「书架 → 对话音频」中,方便回听或转存到书架。
12
+ - **让 AI 当你的有声书助手**:在对话里直接让 AI 查书架、导入工作目录中的电子书或规划整本制作;AI 交付的 TXT、EPUB、PDF 文件也支持一键「导入到 LaiVox」。所有导入和调用 AI 模型的步骤都会先展示预览与预计次数,经你确认后才会开始。
13
+ - **专注收听,也能导出带走**:支持倍速播放、定时关闭、进度续听、书签与随读高亮;可导出单章 MP3 / WAV,或将整本书打包导出为 ZIP。
15
14
 
16
- - 待确认的朗读提案、制作单和导入预览显示在最后一轮回答的正下方:摘要、是否使用 DSH 模型额度,以及确认按钮。工具卡上也能确认。
17
- - 输入框上方的 LaiVox 栏收成一行:待确认数、制作进度、继续听;可以用 × 隐藏,也可在设置里改为只在待确认或制作中显示,或不显示。
18
- - 最近一次完成或取消的结果出现在最后一轮末尾。「试听」直接在对话中播放;「打开章节」进入工作台。
19
- - 朗读时迷你播放器显示进度和停止键;朗读会暂停正在听的小说,读完提示「继续听」,不会自动恢复。
20
- - 对话里朗读的结果收在书架的「对话音频」页签,按会话分组,超过保留期未听自动删除(默认 7 天,可改)。
15
+ ## 配音引擎选择
21
16
 
22
- ## 限制
17
+ - **微软 Edge 在线语音(默认)**:开箱即用,无需账号,适合单人朗读、多角色基础分音色与对话消息朗读。
18
+ - **LaiVox 拟人配音(可选增值)**:在「设置 → 制作与发声」中切换。支持按每句语气做拟人化情感演绎,也可在角色选音时使用你在 LaiVox 浏览器扩展里上传的「我的音色」。使用 LaiVox 会员朗读额度,或单独购买朗读时长包即可启用。
23
19
 
24
- - 界面语言跟随 DSH「设置 → 通用设置 → 语言」,支持简体中文、繁体中文和英文。
25
- - 数据目录是 Profile 里的 `dsh-laivox-tts`。旧目录 `laivox-novel-audio` 不会自动迁移。数据库为 v12,旧版插件打不开,升级前请备份。
26
- - 空白 Profile 首次启动会在书架写入两本免 Key 试听示例(《社戏 · 月夜行船 · Edge》示例音频由微软 Edge 在线语音生成,《绿野仙踪 · 营救铁皮人 · LaiVox》由 LaiVox 预置音色生成),可随时删除且删除后不再重现。
27
- - 结果、提案和导入预览只挂在最后一轮,更早的回合不重复。
28
- - 继续听显示段序号和该段内的时间。
29
- - 朗读的文字会发送到微软 Edge 在线语音服务。
20
+ ## 隐私与使用说明
21
+
22
+ - **界面语言**:跟随 DSH「设置 → 通用设置 → 语言」,支持简体中文、繁体中文与英文。
23
+ - **本地保存**:书架、正文、台词与已生成的音频均保存在本机;对话音频默认在 7 天未听后自动清理(可在设置中修改或改为永不清理)。
24
+ - **在线语音说明**:朗读或制作时,待合成的文字会发送至你所选的在线语音服务(微软 Edge 或 LaiVox);单人朗读不会调用 DSH 模型额度。
25
+ - **PDF 说明**:支持包含可选中文字的 PDF,暂不支持纯图片扫描版。
@@ -1,27 +1,25 @@
1
1
  # 小說配音(LaiVox)
2
2
 
3
- 在 DeepSeek Harness 裡把 TXT、EPUB 或文字型 PDF 小說製作成可收聽的音訊,也能朗讀對話裡的文字。
3
+ 在 DeepSeek Harness 裡,把 TXT、EPUB、PDF 小說製作成可收聽的有聲書,也能一鍵把 AI 的回答讀給你聽。預設內建線上語音,無須註冊帳號,安裝後即可使用。
4
4
 
5
- ## 可以做什麼
5
+ 首次開啟會自動在書架放好兩本試聽範例——《社戲 · 月夜行船 · Edge》(單人朗讀)與《綠野仙踪 · 營救鐵皮人 · LaiVox》(多角色配音),點開即可直接試聽效果,不需要時可隨時刪除。
6
6
 
7
- - 匯入 TXT、EPUB 或文字型 PDF,分章放進書架。
8
- - 製作單人朗讀或多角色配音。預設使用 Edge 線上語音,無須帳號。LaiVox 付費會員可在「設定 → 製作」切換至 LaiVox 引擎,使用帳號的朗讀額度,並選用在 LaiVox 瀏覽器擴充功能裡上傳的音色。
9
- - 在對話裡使用 `/laivox`,或讓 AI 提出朗讀。若需要 AI 清理正文或編劇,請先在回答下方確認。
10
- - 用助手訊息旁的「用 Edge 朗讀」讀出回答,也可以請助手直接朗讀。
11
- - 請 AI 搜尋書架、新增書籍或章節、預覽工作區裡的 TXT、EPUB 或文字型 PDF,或建立製作單。匯入與製作會先請你確認。也可以用對話檔案旁的按鈕匯入 AI 交付的文件。
12
- - 播放、調整速度、設定睡眠定時、跳到指定段落,以及匯出 MP3 或 WAV。
7
+ ## 核心功能
13
8
 
14
- ## 對話與播放
9
+ - **把小說變成有聲書**:匯入 TXT、EPUB 或 PDF,自動辨識章節放進書架;也可以直接新增書籍貼上正文。選好章節後邊生成邊聽,不必等整章完成。
10
+ - **單人朗讀,或多角色配音**:單人朗讀開箱即用;切換至「多角色演繹」後,由你設定的 AI 模型分辨說話人與語氣,為每個角色分配獨立音色。
11
+ - **一鍵聽 AI 回答,隨手朗讀片段**:點按助手回答旁的「用 Edge 朗讀」,或直接請 AI 讀給你聽;也可以用 `/laivox` 朗讀任意一段文字,產生的片段會收納在「書架 → 對話音訊」中,方便回聽或存進書架。
12
+ - **讓 AI 當你的有聲書助手**:在對話裡直接請 AI 查書架、匯入工作目錄中的電子書或規劃整本製作;AI 交付的 TXT、EPUB、PDF 檔案也支援一鍵「匯入到 LaiVox」。所有匯入與呼叫 AI 模型的步驟都會先顯示預覽與預計次數,經你確認後才會開始。
13
+ - **專注收聽,也能匯出帶走**:支援倍速播放、睡眠定時、進度續聽、書籤與隨讀高亮;可匯出單章 MP3 / WAV,或將整本書打包匯出為 ZIP。
15
14
 
16
- - 待確認的朗讀提案、製作單和匯入預覽會顯示在最新一則回答下方,也可以在工具卡片上確認。
17
- - 輸入欄上方的 LaiVox 列會顯示待確認項目、製作進度及「繼續聽」。可以按 × 隱藏,也可以在設定中調整何時顯示。
18
- - 最近的結果會顯示在最新一輪對話末尾,可以在對話內試聽或到工作台開啟章節。
19
- - 朗讀回答時會暫停小說,朗讀完成後可從迷你播放器選擇「繼續聽」。
20
- - 對話音訊會依對話分組,放在「書架 → 對話音訊」。超過保留期限未收聽的項目會自動刪除,預設為 7 天,可在設定中變更。
15
+ ## 配音引擎選擇
21
16
 
22
- ## 語言與資料
17
+ - **微軟 Edge 線上語音(預設)**:開箱即用,無須帳號,適合單人朗讀、多角色基礎分音色與對話訊息朗讀。
18
+ - **LaiVox 擬人配音(選用增值)**:在「設定 → 製作與發聲」中切換。支援依每句語氣進行擬人情感演繹,也能在角色選音時使用你在 LaiVox 瀏覽器擴充功能上傳的「我的音色」。使用 LaiVox 會員朗讀額度,或單獨購買朗讀時長包即可啟用。
23
19
 
24
- - 在 DSH「設定 → 一般 → 語言」選擇簡體中文、繁體中文或英文,工作台會跟隨切換。
25
- - 書籍資料保存在 Profile 的 `dsh-laivox-tts` 資料夾。舊版 `laivox-novel-audio` 資料夾不會自動移轉。舊版外掛無法開啟目前的 v12 資料庫,升級前請先備份。
26
- - 空白 Profile 首次啟動會在書架寫入兩本免 Key 試聽範例(《社戲 · 月夜行船 · Edge》範例音訊由微軟 Edge 線上語音生成,《綠野仙踪 · 營救鐵皮人 · LaiVox》由 LaiVox 預設音色生成),可隨時刪除且刪除後不會重現。
27
- - 朗讀時會把文字送到 Microsoft Edge 線上語音服務。
20
+ ## 隱私與使用說明
21
+
22
+ - **介面語言**:跟隨 DSH「設定 → 一般 → 語言」,支援簡體中文、繁體中文與英文。
23
+ - **本機保存**:書架、正文、台詞與已產生的音訊皆保存在本機;對話音訊預設在 7 天未聽後自動清理(可在設定中修改或改為永不清理)。
24
+ - **線上語音說明**:朗讀或製作時,待合成的文字會傳送至你選擇的線上語音服務(微軟 Edge 或 LaiVox);單人朗讀不會消耗 DSH 模型額度。
25
+ - **PDF 說明**:支援包含可選取文字的 PDF,暫不支援純圖片掃描版。
package/docs/GUIDE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 小说配音(LaiVox) · 使用指南
2
2
 
3
- LaiVox 是 DeepSeek Harness(DSH)里的有声书插件:把 TXT / EPUB 小说做成单人朗读或多角色配音的音频,也能把 AI 的回答直接读给你听。默认使用 Edge 在线语音,不需要注册账号。
3
+ LaiVox 是 DeepSeek Harness(DSH)里的有声书插件:把 TXT / EPUB / PDF 小说做成单人朗读或多角色配音的音频,也能把 AI 的回答直接读给你听。默认使用 Edge 在线语音,不需要注册账号。
4
4
 
5
5
  从侧栏的「小说配音(LaiVox)」进入工作台。顶部三个页签:**收听**、**制作**、**书架**;右上角是任务和设置。首次打开(或上次收听的章节已被删除)会进入书架;之后再打开会回到上次收听的章节。
6
6
 
@@ -10,7 +10,7 @@ LaiVox 是 DeepSeek Harness(DSH)里的有声书插件:把 TXT / EPUB 小
10
10
 
11
11
  ## 场景一:手里有一本小说,想听
12
12
 
13
- 1. **书架 →「导入 TXT / EPUB」**,选择文件。预览里能看到分章结果和正文样例;分章不对可以点章节标题调整,或用「AI 辅助分章」。确认后点「导入 N 章」。
13
+ 1. **书架 →「导入 TXT / EPUB / PDF」**,选择文件。预览里能看到分章结果和正文样例;分章不对可以点章节标题调整,或用「AI 辅助分章」。确认后点「导入 N 章」。
14
14
  2. 打开一章,在制作条选择:
15
15
  - **单人朗读**:直接合成,不用 AI。
16
16
  - **多角色演绎**:AI 先标注谁在说话、什么语气,再按角色配音。开始前会列出预计请求数和额度提示,确认后才调用 AI。
@@ -51,7 +51,7 @@ AI 会先生成**导入预览**,在它回答的正下方显示:
51
51
 
52
52
  - **问书架**:"我的书架上有哪些书?哪些章还没做音频?"
53
53
  - **追加章节**:"把这两章加到《某某》后面。"同名且正文相同的章节会自动跳过。
54
- - **交付文件**:AI 生成的 `.txt` / `.epub` 文件卡片上有「导入到 LaiVox」,一键打开导入预览。
54
+ - **交付文件**:AI 生成的 `.txt` / `.epub` / `.pdf` 文件卡片上有「导入到 LaiVox」,一键打开导入预览。
55
55
 
56
56
  AI 只能读当前对话工作目录里的文件,不能删除你的书。需要导入或花模型额度的步骤,都要你点确认。
57
57
 
@@ -64,7 +64,7 @@ AI 只能读当前对话工作目录里的文件,不能删除你的书。需
64
64
 
65
65
  朗读会跳过已闭合的代码块和链接地址,表格会读出单元格里的文字。如果你正在听小说,开始朗读时小说会暂停;读完后迷你播放器提示「继续听」,点一下从原来的位置接着听。按下小说的播放键,朗读会停止。
66
66
 
67
- 音色按文字的语言自动选择,可在 **设置 → 朗读** 为简体、繁体、英文各选一个并试听。朗读的文字会发送到微软 Edge 在线语音服务。
67
+ 音色按文字的语言自动选择,可在 **设置 → 对话消息朗读(Edge)** 为简体、繁体、英文各选一个并试听。朗读的文字会发送到微软 Edge 在线语音服务。
68
68
 
69
69
  ---
70
70
 
@@ -83,11 +83,11 @@ AI 只能读当前对话工作目录里的文件,不能删除你的书。需
83
83
  | `/laivox --clean 正文` | 先用 AI 清洗正文 |
84
84
  | `/laivox --cast 正文` | 多角色配音 |
85
85
  | `/laivox status` | 查看本对话最近的任务 |
86
- | 只发 `/laivox` 并附上 TXT/EPUB | 生成导入预览 |
86
+ | 只发 `/laivox` 并附上 TXT/EPUB/PDF | 生成导入预览 |
87
87
 
88
88
  需要 AI 处理时,回答下方会出现确认行(字数、是否用模型额度),点「确认生成」才开始;「调整」可以修改正文和选项。完成后回答下方会出现结果,点「试听」直接在对话里播放。
89
89
 
90
- 输入框上方的 LaiVox 栏用一行显示待确认数、制作进度和「继续听」。右侧的 × 可以隐藏当前内容;**设置 → 对话** 可以改成只在有待确认或制作中时显示,或者完全不显示。
90
+ 输入框上方的 LaiVox 栏用一行显示待确认数、制作进度和「继续听」。右侧的 × 可以隐藏当前内容;**设置 → 对话工作条** 可以改成只在有待确认或制作中时显示,或者完全不显示。
91
91
 
92
92
  ---
93
93
 
@@ -123,7 +123,7 @@ AI 只能读当前对话工作目录里的文件,不能删除你的书。需
123
123
 
124
124
  **AI 制作会花钱吗?** 单人朗读不用 DSH 模型。AI 清洗和多角色编剧会消耗你在 DSH 里配置的模型额度,开始前都会显示预计请求数,由你确认。
125
125
 
126
- **想用 LaiVox 的音色?** 在 **设置 → 制作** 把引擎切换为 LaiVox,并保存官网的 API Key。Key 有两种:LaiVox 会员签发的 Key 使用会员的朗读额度(与 LaiVox 浏览器扩展共用,不占 AI 整理额度);也可以在设置页点「购买朗读时长包」单独购买(30 小时,60 天内有效,用到 90% 后可再买),时长包 Key 只扣时长包。在 LaiVox 浏览器扩展里上传的音色,会出现在角色音色选择的「我的音色」里;上传和修改仍在扩展里进行。
126
+ **想用 LaiVox 的音色?** 在 **设置 → 制作与发声** 把引擎切换为 LaiVox,并保存官网的 API Key。Key 有两种:LaiVox 会员签发的 Key 使用会员的朗读额度(与 LaiVox 浏览器扩展共用,不占 AI 整理额度);也可以在设置页点「购买朗读时长包」单独购买,时长包 Key 只扣时长包额度。在 LaiVox 浏览器扩展里上传的音色,会出现在角色音色选择的「我的音色」里;上传和修改仍在扩展里进行。
127
127
 
128
128
  **LaiVox 额度用完了怎么办?** 制作条会停下并说明原因。还能开启下一个使用日时,点「开启下一个使用日」,确认后点「继续制作」;也可以点「用 Edge 补完剩余段」,剩下的段落改用 Edge 音色,以后额度恢复了再用 LaiVox 重新生成这一章(已经是 LaiVox 的段落会直接复用)。
129
129
 
package/locale/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Novel voices (LaiVox)",
4
- "description": "Turns TXT, EPUB, and text-based PDF novels into multi-voice audio inside DSH, with a bookshelf, per-chapter synthesis, playback, and MP3/WAV export. Reads chat replies aloud, and lets the AI add books, import files and queue production for you to confirm.",
4
+ "description": "Turn TXT, EPUB, and PDF novels into single-voice or multi-voice audiobooks inside DSH, or read AI replies aloud. Ready to use out of the box, with a local bookshelf and MP3/WAV export.",
5
5
  "detail": "docs/DETAIL.en.md"
6
6
  }
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "小說配音(LaiVox)",
4
- "description": "把小說做成可聽的音訊:書架、逐章朗讀、多角色配音、播放與匯出;也能朗讀對話裡的回答,讓 AI 幫你建立書籍、匯入和排程製作。",
4
+ "description": "把 TXT、EPUB、PDF 小說製作成單人朗讀或多角色有聲書,也能一鍵朗讀對話裡的 AI 回答。預設開箱可用,支援本機書架管理與 MP3/WAV 匯出。",
5
5
  "detail": "docs/DETAIL.zh-hant.md"
6
6
  }
7
7
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "小说配音(LaiVox)",
4
- "description": "把小说做成可听的音频:书架、逐章朗读、多角色配音、播放与导出;也能朗读对话里的回答,让 AI 帮你建书、导入和排队制作。",
4
+ "description": "把 TXT、EPUB、PDF 小说做成单人朗读或多角色有声书,也能一键朗读对话里的 AI 回答。默认开箱可用,支持本地书架管理与 MP3/WAV 导出。",
5
5
  "detail": "docs/DETAIL.md"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dsh-laivox-tts",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "private": false,
5
- "description": "在 DSH 里把 TXT / EPUB / PDF 小说做成多角色音频:书架、逐章合成、播放与 MP3/WAV 导出。",
5
+ "description": "把 TXT、EPUB、PDF 小说做成单人朗读或多角色有声书,也能一键朗读对话里的 AI 回答,支持本地书架与 MP3/WAV 导出。",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",