@openclaw/inworld-speech 2026.6.34 → 2026.6.35
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/tts.js +4 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -4
package/dist/tts.js
CHANGED
|
@@ -7,7 +7,7 @@ const DEFAULT_INWORLD_VOICE_ID = "Sarah";
|
|
|
7
7
|
const DEFAULT_INWORLD_MODEL_ID = "inworld-tts-1.5-max";
|
|
8
8
|
const INWORLD_TTS_BODY_MAX_BYTES = MAX_AUDIO_BYTES * 2;
|
|
9
9
|
const INWORLD_VOICES_BODY_MAX_BYTES = MAX_AUDIO_BYTES;
|
|
10
|
-
const
|
|
10
|
+
const INWORLD_UPSTREAM_IDLE_TIMEOUT_MS = 3e4;
|
|
11
11
|
const INWORLD_ERROR_BODY_MAX_BYTES = 8 * 1024;
|
|
12
12
|
const INWORLD_ERROR_BODY_MAX_CHARS = 400;
|
|
13
13
|
const INWORLD_ERROR_BODY_READ_IDLE_TIMEOUT_MS = 1e4;
|
|
@@ -93,7 +93,7 @@ async function inworldTTS(params) {
|
|
|
93
93
|
throw new Error(`Inworld TTS API error (${response.status}): ${errorBody}`);
|
|
94
94
|
}
|
|
95
95
|
const body = (await readResponseWithLimit(response, INWORLD_TTS_BODY_MAX_BYTES, {
|
|
96
|
-
chunkTimeoutMs:
|
|
96
|
+
chunkTimeoutMs: INWORLD_UPSTREAM_IDLE_TIMEOUT_MS,
|
|
97
97
|
onOverflow: ({ size, maxBytes }) => /* @__PURE__ */ new Error(`Inworld TTS audio stream too large: ${size} bytes (limit: ${maxBytes} bytes)`),
|
|
98
98
|
onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`Inworld TTS audio stream stalled: no data received for ${chunkTimeoutMs}ms`)
|
|
99
99
|
})).toString("utf8");
|
|
@@ -131,7 +131,7 @@ async function listInworldVoices(params) {
|
|
|
131
131
|
method: "GET",
|
|
132
132
|
headers: { Authorization: `Basic ${params.apiKey}` }
|
|
133
133
|
},
|
|
134
|
-
timeoutMs: params.timeoutMs,
|
|
134
|
+
timeoutMs: params.timeoutMs ?? INWORLD_UPSTREAM_IDLE_TIMEOUT_MS,
|
|
135
135
|
policy: ssrfPolicyFromInworldBaseUrl(baseUrl),
|
|
136
136
|
auditContext: "inworld-voices"
|
|
137
137
|
});
|
|
@@ -141,7 +141,7 @@ async function listInworldVoices(params) {
|
|
|
141
141
|
throw new Error(`Inworld voices API error (${response.status}): ${errorBody}`);
|
|
142
142
|
}
|
|
143
143
|
const voicesBody = (await readResponseWithLimit(response, INWORLD_VOICES_BODY_MAX_BYTES, {
|
|
144
|
-
chunkTimeoutMs:
|
|
144
|
+
chunkTimeoutMs: INWORLD_UPSTREAM_IDLE_TIMEOUT_MS,
|
|
145
145
|
onOverflow: ({ size, maxBytes }) => /* @__PURE__ */ new Error(`Inworld voices response too large: ${size} bytes (limit: ${maxBytes} bytes)`),
|
|
146
146
|
onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`Inworld voices response stalled: no data received for ${chunkTimeoutMs}ms`)
|
|
147
147
|
})).toString("utf8");
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/inworld-speech",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.35",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/inworld-speech",
|
|
9
|
-
"version": "2026.6.
|
|
9
|
+
"version": "2026.6.35"
|
|
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.6.
|
|
3
|
+
"version": "2026.6.35",
|
|
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.6.
|
|
21
|
+
"pluginApi": ">=2026.6.35"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.6.
|
|
24
|
+
"openclawVersion": "2026.6.35",
|
|
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.6.
|
|
42
|
+
"openclaw": ">=2026.6.35"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|