@rookiestar/eng-lang-tutor 1.1.3 → 1.1.4
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.
Potentially problematic release.
This version of @rookiestar/eng-lang-tutor might be problematic. Click here for more details.
- package/README.md +20 -2
- package/README_EN.md +20 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,7 +103,16 @@ openclaw pairing approve discord YOUR_PAIRING_CODE
|
|
|
103
103
|
3. 选择导师风格(幽默/严谨/随意/专业)
|
|
104
104
|
4. 设置口语/书面语比例
|
|
105
105
|
5. 配置推送时间(知识点和测验时间)
|
|
106
|
-
6.
|
|
106
|
+
6. **语音教学配置** - 选择是否启用语音版知识点
|
|
107
|
+
- 如启用,选择语速(0.5-1.7,默认 0.9)
|
|
108
|
+
- 默认使用 Edge-TTS(免费,无需配置)
|
|
109
|
+
- 如需使用讯飞,请先在服务器上设置环境变量:
|
|
110
|
+
```bash
|
|
111
|
+
export TTS_PROVIDER=xunfei
|
|
112
|
+
export XUNFEI_APPID=your_appid
|
|
113
|
+
export XUNFEI_API_KEY=your_api_key
|
|
114
|
+
export XUNFEI_API_SECRET=your_api_secret
|
|
115
|
+
```
|
|
107
116
|
7. 确认您的设置并创建定时任务
|
|
108
117
|
|
|
109
118
|
## TTS 语音配置
|
|
@@ -255,7 +264,16 @@ eng-lang-tutor/
|
|
|
255
264
|
│ ├── constants.py # 共享常量(等级阈值)
|
|
256
265
|
│ ├── utils.py # 工具函数(安全除法、深度合并)
|
|
257
266
|
│ ├── cli.py # CLI 入口点
|
|
258
|
-
│ └──
|
|
267
|
+
│ └── audio/ # 音频模块
|
|
268
|
+
│ ├── tts/ # TTS 语音合成
|
|
269
|
+
│ │ ├── base.py # TTS 抽象基类
|
|
270
|
+
│ │ ├── manager.py # TTS 管理器
|
|
271
|
+
│ │ └── providers/ # TTS 提供者
|
|
272
|
+
│ │ ├── edge.py # Edge-TTS (默认)
|
|
273
|
+
│ │ └── xunfei.py # 讯飞 TTS
|
|
274
|
+
│ ├── composer.py # 音频合成
|
|
275
|
+
│ ├── converter.py # 格式转换
|
|
276
|
+
│ └── feishu_voice.py # 飞书语音发送
|
|
259
277
|
├── templates/
|
|
260
278
|
│ ├── state_schema.json # 状态 JSON Schema
|
|
261
279
|
│ ├── keypoint_schema.json # 知识点 JSON Schema
|
package/README_EN.md
CHANGED
|
@@ -103,7 +103,16 @@ When you first interact with the bot, it will guide you through a 7-step onboard
|
|
|
103
103
|
3. Select tutor style (humorous/rigorous/casual/professional)
|
|
104
104
|
4. Set oral vs written focus
|
|
105
105
|
5. Configure schedule (keypoint and quiz times)
|
|
106
|
-
6. Choose whether to enable
|
|
106
|
+
6. **Voice Teaching Configuration** - Choose whether to enable audio keypoints
|
|
107
|
+
- If enabled, select speech speed (0.5-1.7, default 0.9)
|
|
108
|
+
- Edge-TTS is used by default (free, no configuration needed)
|
|
109
|
+
- To use XunFei, set environment variables on your server first:
|
|
110
|
+
```bash
|
|
111
|
+
export TTS_PROVIDER=xunfei
|
|
112
|
+
export XUNFEI_APPID=your_appid
|
|
113
|
+
export XUNFEI_API_KEY=your_api_key
|
|
114
|
+
export XUNFEI_API_SECRET=your_api_secret
|
|
115
|
+
```
|
|
107
116
|
7. Confirm your settings and create cron jobs
|
|
108
117
|
|
|
109
118
|
## TTS Voice Configuration
|
|
@@ -255,7 +264,16 @@ eng-lang-tutor/
|
|
|
255
264
|
│ ├── constants.py # Shared constants (level thresholds)
|
|
256
265
|
│ ├── utils.py # Utility functions (safe divide, deep merge)
|
|
257
266
|
│ ├── cli.py # CLI entry point
|
|
258
|
-
│ └──
|
|
267
|
+
│ └── audio/ # Audio module
|
|
268
|
+
│ ├── tts/ # TTS voice synthesis
|
|
269
|
+
│ │ ├── base.py # TTS abstract base class
|
|
270
|
+
│ │ ├── manager.py # TTS manager
|
|
271
|
+
│ │ └── providers/ # TTS providers
|
|
272
|
+
│ │ ├── edge.py # Edge-TTS (default)
|
|
273
|
+
│ │ └── xunfei.py # XunFei TTS
|
|
274
|
+
│ ├── composer.py # Audio composition
|
|
275
|
+
│ ├── converter.py # Format conversion
|
|
276
|
+
│ └── feishu_voice.py # Feishu voice sender
|
|
259
277
|
├── templates/
|
|
260
278
|
│ ├── state_schema.json # State JSON Schema
|
|
261
279
|
│ ├── keypoint_schema.json # Keypoint JSON Schema
|
package/package.json
CHANGED