@openclaw/inworld-speech 2026.7.2-beta.3 → 2026.7.2-beta.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.
@@ -15,7 +15,7 @@ function normalizeInworldProviderConfig(rawConfig) {
15
15
  return {
16
16
  apiKey: normalizeResolvedSecretInputString({
17
17
  value: raw?.apiKey,
18
- path: "messages.tts.providers.inworld.apiKey"
18
+ path: "tts.providers.inworld.apiKey"
19
19
  }),
20
20
  baseUrl: normalizeInworldBaseUrl(trimToUndefined(raw?.baseUrl)),
21
21
  voiceId: trimToUndefined(raw?.voiceId) ?? "Sarah",
package/dist/tts.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MAX_AUDIO_BYTES } from "openclaw/plugin-sdk/media-runtime";
1
+ import { MAX_AUDIO_BYTES, canonicalizeBase64 } from "openclaw/plugin-sdk/media-runtime";
2
2
  import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
3
3
  import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
4
4
  import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
@@ -111,7 +111,9 @@ async function inworldTTS(params) {
111
111
  }
112
112
  if (parsed.error) throw new Error(`Inworld TTS stream error (${parsed.error.code}): ${parsed.error.message}`);
113
113
  if (parsed.result?.audioContent) {
114
- const chunk = Buffer.from(parsed.result.audioContent, "base64");
114
+ const canonicalAudio = canonicalizeBase64(parsed.result.audioContent);
115
+ if (!canonicalAudio) throw new Error("Inworld TTS returned malformed base64 audio data");
116
+ const chunk = Buffer.from(canonicalAudio, "base64");
115
117
  const nextDecodedAudioBytes = decodedAudioBytes + chunk.length;
116
118
  if (nextDecodedAudioBytes > MAX_AUDIO_BYTES) throw new Error(`Inworld TTS decoded audio too large: ${nextDecodedAudioBytes} bytes (limit: ${MAX_AUDIO_BYTES} bytes)`);
117
119
  decodedAudioBytes = nextDecodedAudioBytes;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/inworld-speech",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/inworld-speech",
9
- "version": "2026.7.2-beta.3"
9
+ "version": "2026.7.2-beta.4"
10
10
  }
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/inworld-speech",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.4",
4
4
  "description": "OpenClaw Inworld speech plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.6.8"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.7.2-beta.3"
21
+ "pluginApi": ">=2026.7.2-beta.4"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.3",
24
+ "openclawVersion": "2026.7.2-beta.4",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -39,7 +39,7 @@
39
39
  "README.md"
40
40
  ],
41
41
  "peerDependencies": {
42
- "openclaw": ">=2026.7.2-beta.3"
42
+ "openclaw": ">=2026.7.2-beta.4"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {