@openclaw/inworld-speech 2026.7.2-beta.3 → 2026.7.2-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/speech-provider.js +1 -1
- package/dist/tts.js +4 -2
- package/package.json +4 -5
- package/npm-shrinkwrap.json +0 -12
package/dist/speech-provider.js
CHANGED
|
@@ -15,7 +15,7 @@ function normalizeInworldProviderConfig(rawConfig) {
|
|
|
15
15
|
return {
|
|
16
16
|
apiKey: normalizeResolvedSecretInputString({
|
|
17
17
|
value: raw?.apiKey,
|
|
18
|
-
path: "
|
|
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
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/inworld-speech",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.5",
|
|
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.
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.5"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.5",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -35,11 +35,10 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist/**",
|
|
37
37
|
"openclaw.plugin.json",
|
|
38
|
-
"npm-shrinkwrap.json",
|
|
39
38
|
"README.md"
|
|
40
39
|
],
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.7.2-beta.
|
|
41
|
+
"openclaw": ">=2026.7.2-beta.5"
|
|
43
42
|
},
|
|
44
43
|
"peerDependenciesMeta": {
|
|
45
44
|
"openclaw": {
|
package/npm-shrinkwrap.json
DELETED