gewe-openclaw 2026.2.1 → 2026.2.2
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 +1 -0
- package/package.json +1 -1
- package/src/delivery.ts +1 -1
- package/src/silk.ts +1 -1
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ openclaw plugins install ./gewe-openclaw.tgz
|
|
|
72
72
|
- `mediaPath`:本地媒体服务的路由前缀(默认 `/gewe-media`)。
|
|
73
73
|
- `mediaPublicUrl`:公网访问地址的“基础前缀”,会自动拼接媒体 ID。通常应与 `mediaPath` 对齐,例如 `mediaPath="/gewe-media"` 时,`mediaPublicUrl` 也应包含 `/gewe-media`。
|
|
74
74
|
- `allowFrom`:允许私聊触发的微信 ID(或在群里走 allowlist 规则)。
|
|
75
|
+
- `voiceAutoConvert`:自动将音频转为 silk(默认开启;设为 `false` 可关闭)。
|
|
75
76
|
- `silkAutoDownload`:自动下载 `rust-silk`(默认开启;可关闭后自行配置 `voiceSilkPath` / `voiceDecodePath`)。
|
|
76
77
|
- `silkVersion`:自动下载的 `rust-silk` 版本(`latest` 会自动清理旧版本)。
|
|
77
78
|
- `silkBaseUrl`:自定义下载源(默认 GitHub Releases)。
|
package/package.json
CHANGED
package/src/delivery.ts
CHANGED
|
@@ -252,7 +252,7 @@ async function convertAudioToSilk(params: {
|
|
|
252
252
|
}): Promise<{ buffer: Buffer; durationMs: number } | null> {
|
|
253
253
|
const core = getGeweRuntime();
|
|
254
254
|
const logger = core.logging.getChildLogger({ channel: CHANNEL_ID, module: "voice" });
|
|
255
|
-
if (
|
|
255
|
+
if (params.account.config.voiceAutoConvert === false) return null;
|
|
256
256
|
|
|
257
257
|
const sampleRate = resolveVoiceSampleRate(params.account);
|
|
258
258
|
const ffmpegPath = params.account.config.voiceFfmpegPath?.trim() || DEFAULT_VOICE_FFMPEG;
|
package/src/silk.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { createReadStream, existsSync } from "node:fs";
|
|
2
|
+
import { createReadStream, createWriteStream, existsSync } from "node:fs";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|