

























@@ -257,19 +257,21 @@ describe("google-meet plugin", () => {
257257reuseExistingTab: true,
258258autoJoin: true,
259259waitForInCallMs: 20000,
260+audioFormat: "pcm16-24khz",
260261audioInputCommand: [
261262"rec",
262263"-q",
263264"-t",
264265"raw",
265266"-r",
266-"8000",
267+"24000",
267268"-c",
268269"1",
269270"-e",
270-"mu-law",
271+"signed-integer",
271272"-b",
272-"8",
273+"16",
274+"-L",
273275"-",
274276],
275277audioOutputCommand: [
@@ -278,13 +280,14 @@ describe("google-meet plugin", () => {
278280"-t",
279281"raw",
280282"-r",
281-"8000",
283+"24000",
282284"-c",
283285"1",
284286"-e",
285-"mu-law",
287+"signed-integer",
286288"-b",
287-"8",
289+"16",
290+"-L",
288291"-",
289292],
290293},
@@ -310,6 +313,21 @@ describe("google-meet plugin", () => {
310313).toBe("jay");
311314});
312315316+it("keeps legacy command-pair audio format when custom commands omit a format", () => {
317+expect(
318+resolveGoogleMeetConfig({
319+chrome: {
320+audioInputCommand: ["capture-legacy"],
321+audioOutputCommand: ["play-legacy"],
322+},
323+}).chrome,
324+).toMatchObject({
325+audioFormat: "g711-ulaw-8khz",
326+audioInputCommand: ["capture-legacy"],
327+audioOutputCommand: ["play-legacy"],
328+});
329+});
330+313331it("uses env fallbacks for OAuth, preview, and default meeting values", () => {
314332expect(
315333resolveGoogleMeetConfigWithEnv(
@@ -2085,6 +2103,11 @@ describe("google-meet plugin", () => {
20852103clearCount: 1,
20862104});
20872105expect(callbacks).toMatchObject({
2106+audioFormat: {
2107+encoding: "pcm16",
2108+sampleRateHz: 24000,
2109+channels: 1,
2110+},
20882111tools: [
20892112expect.objectContaining({
20902113name: "openclaw_agent_consult",
@@ -2263,6 +2286,11 @@ describe("google-meet plugin", () => {
22632286handle.speak("Say exactly: hello from the node.");
22642287expect(bridge.triggerGreeting).toHaveBeenLastCalledWith("Say exactly: hello from the node.");
22652288expect(callbacks).toMatchObject({
2289+audioFormat: {
2290+encoding: "pcm16",
2291+sampleRateHz: 24000,
2292+channels: 1,
2293+},
22662294tools: [
22672295expect.objectContaining({
22682296name: "openclaw_agent_consult",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。