mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 14:51:37 +00:00
24 lines
996 B
TypeScript
24 lines
996 B
TypeScript
// STT live audio tests validate live speech-to-text audio fixtures.
|
|
import {
|
|
expectOpenClawLiveTranscriptMarker,
|
|
normalizeTranscriptForMatch,
|
|
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
|
|
} from "openclaw/plugin-sdk/provider-test-contracts";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("normalizeTranscriptForMatch", () => {
|
|
it("normalizes punctuation and common OpenClaw live transcription variants", () => {
|
|
expect(normalizeTranscriptForMatch("Open-Claw integration OK")).toBe("openclawintegrationok");
|
|
expect(normalizeTranscriptForMatch("Testing OpenFlaw realtime transcription")).toMatch(
|
|
/open(?:claw|flaw)/,
|
|
);
|
|
expect(normalizeTranscriptForMatch("OpenCore xAI realtime transcription")).toMatch(
|
|
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
|
|
);
|
|
expect(normalizeTranscriptForMatch("OpenCL xAI realtime transcription")).toMatch(
|
|
OPENCLAW_LIVE_TRANSCRIPT_MARKER_RE,
|
|
);
|
|
expectOpenClawLiveTranscriptMarker("OpenClar integration OK");
|
|
});
|
|
});
|