Skip to content

Commit c52b565

Browse files
committed
fix(google-meet): expose voice call delay schema
1 parent 9cc8022 commit c52b565

3 files changed

Lines changed: 29 additions & 7 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Docs: https://docs.openclaw.ai
4949
- Google Meet: stop advertising legacy `mode: "realtime"` to agents and config UIs, while keeping it as a hidden compatibility alias for `mode: "agent"`, so new joins use the STT -> OpenClaw agent -> TTS path instead of selecting the direct realtime voice fallback.
5050
- Google Meet: add `chrome.audioBufferBytes` for generated command-pair SoX audio commands and lower the default buffer from SoX's 8192 bytes to 4096 bytes to reduce Chrome talk-back latency.
5151
- Google Meet: split realtime provider config into agent-mode transcription and bidi-mode voice providers, and migrate legacy Gemini Live bidi configs with `doctor --fix`, so Gemini Live can back direct bidi fallback without breaking the default OpenClaw agent talk-back path.
52+
- Google Meet: expose `voiceCall.postDtmfSpeechDelayMs` in the plugin manifest schema and setup hints, so manifest-based config editing accepts the runtime-supported Twilio delay key. Thanks @vincentkoc.
5253
- Telegram: render shared interactive reply buttons in reply delivery so plugin approval messages show inline keyboards. (#76238) Thanks @keshavbotagent.
5354
- Agents/cli-runner: drop a saved `claude-cli` resume sessionId at preparation time when its on-disk transcript no longer exists in `~/.claude/projects/`, so a stale binding from a half-installed `update.run` cannot trap follow-up runs (auto-reply / Telegram direct) in a `claude --resume` timeout loop; the run starts fresh and the new sessionId is written back through the existing post-run flow. (#77030; refs #77011) Thanks @openperf.
5455
- Release validation: install the cross-OS TypeScript harness through Windows-safe Node/npm shims so native Windows package checks reach the OpenClaw smoke suites instead of exiting before artifact capture. Thanks @vincentkoc.

‎extensions/google-meet/index.test.ts‎

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { tmpdir } from "node:os";
44
import path from "node:path";
55
import { PassThrough, Writable } from "node:stream";
66
import { createContext, Script } from "node:vm";
7+
import { validateJsonSchemaValue, type JsonSchemaObject } from "openclaw/plugin-sdk/config-schema";
78
import type { RealtimeTranscriptionProviderPlugin } from "openclaw/plugin-sdk/realtime-transcription";
89
import type { RealtimeVoiceProviderPlugin } from "openclaw/plugin-sdk/realtime-voice";
910
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
@@ -479,17 +480,13 @@ describe("google-meet plugin", () => {
479480
});
480481
});
481482

482-
it("declares barge-in config metadata in the plugin entry and manifest", () => {
483+
it("declares advanced config metadata in the plugin entry and manifest", () => {
483484
const manifest = JSON.parse(
484485
readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),
485486
) as {
486487
uiHints?: Record<string, unknown>;
487-
configSchema?: {
488-
properties?: {
489-
chrome?: {
490-
properties?: Record<string, unknown>;
491-
};
492-
};
488+
configSchema?: JsonSchemaObject & {
489+
properties?: Record<string, JsonSchemaObject & { properties?: Record<string, unknown> }>;
493490
};
494491
};
495492
const entry = plugin as unknown as {
@@ -504,13 +501,15 @@ describe("google-meet plugin", () => {
504501
"chrome.bargeInRmsThreshold": expect.objectContaining({ advanced: true }),
505502
"chrome.bargeInPeakThreshold": expect.objectContaining({ advanced: true }),
506503
"chrome.bargeInCooldownMs": expect.objectContaining({ advanced: true }),
504+
"voiceCall.postDtmfSpeechDelayMs": expect.objectContaining({ advanced: true }),
507505
});
508506
expect(manifest.uiHints).toMatchObject({
509507
"chrome.audioBufferBytes": expect.objectContaining({ advanced: true }),
510508
"chrome.bargeInInputCommand": expect.objectContaining({ advanced: true }),
511509
"chrome.bargeInRmsThreshold": expect.objectContaining({ advanced: true }),
512510
"chrome.bargeInPeakThreshold": expect.objectContaining({ advanced: true }),
513511
"chrome.bargeInCooldownMs": expect.objectContaining({ advanced: true }),
512+
"voiceCall.postDtmfSpeechDelayMs": expect.objectContaining({ advanced: true }),
514513
});
515514
expect(manifest.configSchema?.properties?.chrome?.properties).toMatchObject({
516515
audioBufferBytes: expect.objectContaining({ type: "number", default: 4096 }),
@@ -522,6 +521,19 @@ describe("google-meet plugin", () => {
522521
bargeInPeakThreshold: expect.objectContaining({ type: "number", default: 2500 }),
523522
bargeInCooldownMs: expect.objectContaining({ type: "number", default: 900 }),
524523
});
524+
expect(manifest.configSchema?.properties?.voiceCall?.properties).toMatchObject({
525+
postDtmfSpeechDelayMs: expect.objectContaining({ type: "number", default: 5000 }),
526+
});
527+
const result = validateJsonSchemaValue({
528+
schema: manifest.configSchema!,
529+
cacheKey: "google-meet.manifest.voice-call-post-dtmf-speech-delay",
530+
value: {
531+
voiceCall: {
532+
postDtmfSpeechDelayMs: 750,
533+
},
534+
},
535+
});
536+
expect(result.ok).toBe(true);
525537
});
526538

527539
it("resolves the realtime consult agent id", () => {

‎extensions/google-meet/openclaw.plugin.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@
144144
"help": "Compatibility setting from the old post-connect DTMF flow. Twilio Meet joins now play DTMF before realtime connect.",
145145
"advanced": true
146146
},
147+
"voiceCall.postDtmfSpeechDelayMs": {
148+
"label": "Legacy Post-DTMF Speech Delay (ms)",
149+
"help": "Compatibility setting from the old delayed-speech flow. Twilio Meet joins now carry the intro as the initial Voice Call message.",
150+
"advanced": true
151+
},
147152
"voiceCall.introMessage": {
148153
"label": "Voice Call Intro Message",
149154
"advanced": true
@@ -421,6 +426,10 @@
421426
"type": "number",
422427
"default": 2500
423428
},
429+
"postDtmfSpeechDelayMs": {
430+
"type": "number",
431+
"default": 5000
432+
},
424433
"introMessage": {
425434
"type": "string"
426435
}

0 commit comments

Comments
 (0)