@alfe.ai/openclaw-voice 0.0.4 → 0.0.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/plugin.d.ts +1 -1
- package/dist/plugin.js +10 -3
- package/package.json +2 -2
package/dist/plugin.d.ts
CHANGED
package/dist/plugin.js
CHANGED
|
@@ -138,7 +138,7 @@ const plugin = {
|
|
|
138
138
|
name: "Alfe Voice Plugin",
|
|
139
139
|
description: "Voice integration — TTS/STT via the voice service, channel-specific operations via channel services",
|
|
140
140
|
version: "0.2.0",
|
|
141
|
-
|
|
141
|
+
activate(api) {
|
|
142
142
|
if (globalThis.__voiceGatewayActivated) {
|
|
143
143
|
api.logger.debug("Alfe Voice plugin already activated, skipping re-init");
|
|
144
144
|
return;
|
|
@@ -151,8 +151,15 @@ const plugin = {
|
|
|
151
151
|
voiceServiceUrl = pluginConfig.voiceServiceUrl ?? `http://localhost:${String(pluginConfig.voiceServicePort ?? "3100")}`;
|
|
152
152
|
voiceServiceApiKey = pluginConfig.voiceServiceApiKey ?? "";
|
|
153
153
|
log.info(`Voice service: ${voiceServiceUrl}`);
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
let alfeConfig = null;
|
|
155
|
+
try {
|
|
156
|
+
alfeConfig = resolveConfig();
|
|
157
|
+
} catch {}
|
|
158
|
+
connectToDaemon(pluginConfig.daemonSocket ?? alfeConfig?.socketPath ?? DEFAULT_SOCKET_PATH, log).then((client) => {
|
|
159
|
+
daemonIpcClient = client;
|
|
160
|
+
}).catch((err) => {
|
|
161
|
+
log.debug(`Daemon connect failed: ${err.message}`);
|
|
162
|
+
});
|
|
156
163
|
for (const tool of voiceTools) api.registerTool(tool);
|
|
157
164
|
log.info(`Registered ${String(voiceTools.length)} voice tools: ${voiceTools.map((t) => t.name).join(", ")}`);
|
|
158
165
|
api.registerGatewayMethod("voice.speak", async (...args) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw-voice",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "OpenClaw voice plugin for Alfe — Discord audio, Twilio, Recall.ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@sinclair/typebox": "^0.34.48",
|
|
29
|
-
"@alfe.ai/config": "0.0.
|
|
29
|
+
"@alfe.ai/config": "0.0.6"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsdown",
|