@alfe.ai/openclaw-voice 0.0.3 → 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/openclaw.plugin.json +21 -0
- package/package.json +4 -3
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) => {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "@alfe.ai/openclaw-voice",
|
|
3
|
+
"name": "Alfe Voice Plugin",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Pure relay plugin — connects to Fly voice server via WebSocket. All audio processing (STT, TTS, ack) runs on Fly.",
|
|
6
|
+
"entry": "./dist/plugin.js",
|
|
7
|
+
"configSchema": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"agentToken": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Single token for relay authentication and agent identification. Defaults to api_key from ~/.alfe/config.toml if not set."
|
|
14
|
+
},
|
|
15
|
+
"relayUrl": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "WebSocket URL of the Fly voice server relay endpoint. Defaults to wss://voice.dev.alfe.ai/gateway"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
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",
|
|
@@ -21,11 +21,12 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
|
-
"dist"
|
|
24
|
+
"dist",
|
|
25
|
+
"openclaw.plugin.json"
|
|
25
26
|
],
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"@sinclair/typebox": "^0.34.48",
|
|
28
|
-
"@alfe.ai/config": "0.0.
|
|
29
|
+
"@alfe.ai/config": "0.0.6"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
32
|
"build": "tsdown",
|