auto-tts 0.1.0 → 0.1.1

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
@@ -4,22 +4,36 @@
4
4
 
5
5
  不需要 API Key,不按字数收费,长文本和批量任务都能排队处理。
6
6
 
7
- ## 快速开始
7
+ ![auto-tts 界面预览](assets/view.png)
8
8
 
9
- 一条命令,不需要 clone 仓库,也不需要手动装 Python 依赖:
9
+ ## 安装
10
+
11
+ 先确认本机有 Node.js 和 Python:
12
+
13
+ | 依赖 | 版本 | 说明 |
14
+ | --- | --- | --- |
15
+ | Node.js | 18 或更高 | 运行 `auto-tts` 命令 |
16
+ | Python | 3.9 或更高 | 后端运行时 |
17
+
18
+ 然后全局安装:
10
19
 
11
20
  ```bash
12
- npx auto-tts web
21
+ npm i -g auto-tts
13
22
  ```
14
23
 
15
- 首次运行会在 `~/.local/share/auto-tts/venv` 建一个独立的 Python 环境并安装后端依赖(只需一次),随后启动服务并自动打开浏览器。
24
+ ## 启动
16
25
 
17
- ### 环境要求
26
+ ```bash
27
+ auto-tts web
28
+ ```
18
29
 
19
- | 依赖 | 版本 | 说明 |
20
- | --- | --- | --- |
21
- | Node.js | 18 或更高 | 用来运行 `npx` 命令 |
22
- | Python | 3.9 或更高 | 后端运行时 |
30
+ 首次启动会在 `~/.local/share/auto-tts/venv` 建一个独立的 Python 环境并安装后端依赖(只需一次)。等服务就绪后,它会自动打开浏览器,并在终端打印网页地址:
31
+
32
+ ```
33
+ http://127.0.0.1:8000
34
+ ```
35
+
36
+ 按 `Ctrl+C` 停止服务。
23
37
 
24
38
  Debian / Ubuntu 上如果提示无法创建虚拟环境,需要先装 `python3-venv`:
25
39
 
@@ -30,11 +44,12 @@ sudo apt install python3-venv
30
44
  ### 常用参数
31
45
 
32
46
  ```bash
33
- npx auto-tts web --port 9000 # 换一个端口(默认 8000)
34
- npx auto-tts web --host 0.0.0.0 # 允许局域网内其它设备访问
35
- npx auto-tts web --no-open # 不自动打开浏览器
36
- npx auto-tts web --reset # 重建 Python 环境后启动
37
- npx auto-tts --help # 查看全部用法
47
+ auto-tts web --port 9000 # 换一个端口(默认 8000)
48
+ auto-tts web --host 0.0.0.0 # 允许局域网内其它设备访问
49
+ auto-tts web --no-open # 不自动打开浏览器
50
+ auto-tts web --reset # 重建 Python 环境后启动
51
+ auto-tts --help # 查看全部用法
52
+ auto-tts --version # 查看版本
38
53
  ```
39
54
 
40
55
  ## 功能
@@ -74,7 +89,7 @@ cd auto-tts
74
89
  ./start.sh --rebuild
75
90
  ```
76
91
 
77
- `./start.sh` 与 `npx auto-tts web` 效果一致,区别是使用仓库内的 `.venv` 和源码构建产物。
92
+ `./start.sh` 与 `auto-tts web` 效果一致,区别是使用仓库内的 `.venv` 和源码构建产物。
78
93
 
79
94
  ## HTTP 接口
80
95
 
@@ -102,4 +117,4 @@ GNU Affero General Public License v3.0 或更新版本(AGPL-3.0-or-later),
102
117
 
103
118
  Copyright (C) 2026 kms413
104
119
 
105
- AGPL 第 13 条要求以网络方式提供服务的程序向用户提供获取源代码的途径,因此页面底部保留了「获取源代码」链接,请勿移除。
120
+ AGPL 第 13 条要求以网络方式提供服务的程序向用户提供获取源代码的途径,因此页面底部保留了「获取源代码」链接,请勿移除。
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-tts",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Unlimited text to speech with selectable voices and speaking tones, powered by edge-tts.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "author": "kms413",
@@ -13,6 +13,7 @@
13
13
  "backend/app/*.py",
14
14
  "backend/requirements.txt",
15
15
  "frontend/dist/",
16
+ "assets/",
16
17
  "LICENSE",
17
18
  "README.md"
18
19
  ],