@wu529778790/open-im 1.11.4-beta.4 → 1.11.4-beta.5
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/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -104,9 +104,12 @@ const PLATFORM_MODULES = {
|
|
|
104
104
|
const pc = config.platforms.clawbot;
|
|
105
105
|
if (pc?.apiUrl && pc?.apiToken) {
|
|
106
106
|
initClawBotSender(pc.apiUrl, pc.apiToken);
|
|
107
|
-
// 初始化 TTS
|
|
107
|
+
// 初始化 TTS — 从配置读取
|
|
108
108
|
const { initTTS } = await import('./shared/tts.js');
|
|
109
|
-
initTTS({
|
|
109
|
+
initTTS({
|
|
110
|
+
enabled: pc.tts?.enabled ?? false,
|
|
111
|
+
voice: pc.tts?.voice ?? 'zh-CN-XiaoxiaoNeural',
|
|
112
|
+
});
|
|
110
113
|
}
|
|
111
114
|
const handle = setupClawbotHandlers(config, sessionManager);
|
|
112
115
|
await initClawbot(config, handle.handleEvent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wu529778790/open-im",
|
|
3
|
-
"version": "1.11.4-beta.
|
|
3
|
+
"version": "1.11.4-beta.5",
|
|
4
4
|
"description": "Your AI coding assistant, in every chat app. Multi-platform IM bridge for Claude Code, Codex, and CodeBuddy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|