@openclaw/volcengine-provider 2026.9.1-beta.1 → 2026.9.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.
@@ -26,7 +26,8 @@ function normalizeSpeedRatio(value) {
26
26
  });
27
27
  }
28
28
  function normalizeVolcengineProviderConfig(rawConfig) {
29
- const raw = asOptionalRecord(asOptionalRecord(rawConfig.providers)?.volcengine) ?? asOptionalRecord(rawConfig.volcengine);
29
+ const providers = asOptionalRecord(rawConfig.providers);
30
+ const raw = asOptionalRecord(providers?.volcengine) ?? asOptionalRecord(rawConfig.volcengine);
30
31
  return {
31
32
  apiKey: normalizeResolvedSecretInputString({
32
33
  value: raw?.apiKey,
package/dist/tts.js CHANGED
@@ -8,7 +8,7 @@ const DEFAULT_LEGACY_VOICE = "zh_female_xiaohe_uranus_bigtts";
8
8
  const DEFAULT_CLUSTER = "volcano_tts";
9
9
  const DEFAULT_SEED_TTS_RESOURCE_ID = "seed-tts-1.0";
10
10
  const DEFAULT_SEED_TTS_APP_KEY = "aGjiRDfUWi";
11
- const VOLCENGINE_TTS_RESPONSE_MAX_BYTES = 16 * 1024 * 1024;
11
+ const VOLCENGINE_TTS_RESPONSE_MAX_BYTES = 16777216;
12
12
  const BYTEPLUS_SEED_TTS_URL = "https://voice.ap-southeast-1.bytepluses.com/api/v3/tts/unidirectional";
13
13
  const VOLCENGINE_LEGACY_TTS_URL = "https://openspeech.bytedance.com/api/v1/tts";
14
14
  function parseJsonObject(text, providerName) {
@@ -87,7 +87,7 @@ async function seedSpeechTTS(params) {
87
87
  auditContext: "volcengine.tts"
88
88
  });
89
89
  try {
90
- const frames = parseSeedTtsFrames(new TextDecoder().decode(await readResponseWithLimit(response, VOLCENGINE_TTS_RESPONSE_MAX_BYTES, { onOverflow: ({ maxBytes }) => /* @__PURE__ */ new Error(`BytePlus Seed Speech TTS response exceeds ${maxBytes} bytes`) })));
90
+ const frames = parseSeedTtsFrames(new TextDecoder("utf-8", { fatal: true }).decode(await readResponseWithLimit(response, VOLCENGINE_TTS_RESPONSE_MAX_BYTES, { onOverflow: ({ maxBytes }) => /* @__PURE__ */ new Error(`BytePlus Seed Speech TTS response exceeds ${maxBytes} bytes`) })));
91
91
  const chunks = [];
92
92
  for (const frame of frames) {
93
93
  if (frame.code === 0) {
@@ -146,7 +146,7 @@ async function legacyVolcengineTTS(params) {
146
146
  auditContext: "volcengine.tts"
147
147
  });
148
148
  try {
149
- const body = parseLegacyTtsResponse(new TextDecoder().decode(await readResponseWithLimit(response, VOLCENGINE_TTS_RESPONSE_MAX_BYTES, { onOverflow: ({ maxBytes }) => /* @__PURE__ */ new Error(`Volcengine TTS response exceeds ${maxBytes} bytes`) })));
149
+ const body = parseLegacyTtsResponse(new TextDecoder("utf-8", { fatal: true }).decode(await readResponseWithLimit(response, VOLCENGINE_TTS_RESPONSE_MAX_BYTES, { onOverflow: ({ maxBytes }) => /* @__PURE__ */ new Error(`Volcengine TTS response exceeds ${maxBytes} bytes`) })));
150
150
  if (!response.ok || body.code !== 3e3 || !body.data) throw new Error(`Volcengine TTS error ${body.code ?? response.status}: ${body.message ?? "unknown"}`);
151
151
  const canonicalAudio = canonicalizeBase64(body.data);
152
152
  if (!canonicalAudio) throw new Error("Volcengine TTS returned malformed base64 audio data");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/volcengine-provider",
3
- "version": "2026.9.1-beta.1",
3
+ "version": "2026.9.1",
4
4
  "description": "OpenClaw Volcengine provider plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.7.2"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.9.1-beta.1"
21
+ "pluginApi": ">=2026.9.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.1-beta.1",
24
+ "openclawVersion": "2026.9.1",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.9.1-beta.1"
41
+ "openclaw": ">=2026.9.1"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {