@openclaw/gradium-speech 2026.9.6 → 2026.9.8
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/assets/icon.png +0 -0
- package/dist/speech-provider.js +9 -14
- package/package.json +4 -4
package/assets/icon.png
CHANGED
|
Binary file
|
package/dist/speech-provider.js
CHANGED
|
@@ -17,12 +17,10 @@ function normalizeGradiumProviderConfig(rawConfig) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function readGradiumProviderConfig(config) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
apiKey: normalizeOptionalString(config.apiKey)
|
|
23
|
-
|
|
24
|
-
voiceId: normalizeOptionalString(config.voiceId) ?? defaults.voiceId
|
|
25
|
-
};
|
|
20
|
+
return normalizeGradiumProviderConfig({ gradium: {
|
|
21
|
+
...config,
|
|
22
|
+
apiKey: normalizeOptionalString(config.apiKey)
|
|
23
|
+
} });
|
|
26
24
|
}
|
|
27
25
|
function resolveGradiumApiKey(configApiKey) {
|
|
28
26
|
return resolveSpeechProviderApiKey(normalizeOptionalString(configApiKey), process.env.GRADIUM_API_KEY);
|
|
@@ -92,14 +90,11 @@ function buildGradiumSpeechProvider() {
|
|
|
92
90
|
voiceCompatible: wantsVoiceNote
|
|
93
91
|
};
|
|
94
92
|
},
|
|
95
|
-
synthesizeTelephony: async (req) => {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
sampleRate: 8e3
|
|
101
|
-
};
|
|
102
|
-
}
|
|
93
|
+
synthesizeTelephony: async (req) => ({
|
|
94
|
+
audioBuffer: await synthesizeGradium(req, "ulaw_8000"),
|
|
95
|
+
outputFormat: "ulaw_8000",
|
|
96
|
+
sampleRate: 8e3
|
|
97
|
+
})
|
|
103
98
|
};
|
|
104
99
|
}
|
|
105
100
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/gradium-speech",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.8",
|
|
4
4
|
"description": "OpenClaw Gradium 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.9.
|
|
21
|
+
"pluginApi": ">=2026.9.8"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
24
|
+
"openclawVersion": "2026.9.8",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.9.
|
|
43
|
+
"openclaw": ">=2026.9.8"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|