Same audio. Every test.
Feed a WAV into a Chromium microphone. Repeat your voice tests without repeating yourself.
Control the feed from Playwright. Your app receives it through
getUserMedia(), so you can replay the same input without speaking into
your laptop.
Watch the recording · API & CLI reference · MIT license
Open this repository in Claude Code or Codex and paste:
Prove this browser microphone starts silent and receives the fixture. Report the measured audio level from the actual Chromium check.
Your agent can run the real isolated Chromium check and return its JSON receipt: the baseline must be quiet, and the fixture must raise the mean RMS above 0.02. That proves this harness delivered audio through the overridden browser microphone. It does not prove a voice app transcribed or understood the clip.
The bundled fixture is synthetic audio for checking the microphone path, not speech. Bring an owned mono PCM16 speech recording when your app test needs words, then assert your app's own transcript or action.
You need Node.js 20 or later.
git clone https://github.com/firstbitelabsllc/voice-debug-harness.git
cd voice-debug-harness
npm ci
npx playwright install chromium
npm run demoClick Feed the WAV. The browser microphone starts quiet, receives the 2.4-second fixture, then returns to silence. The waveform and RMS value come from a Web Audio analyser connected to that stream. Close the window to exit.
Install the cloned package in your project with npm install /path/to/voice-debug-harness.
import { readFile } from "node:fs/promises";
import { installMicFeed, feedAudio } from "voice-debug-harness";
await installMicFeed(page);
await page.goto("http://localhost:3000");
await page.getByRole("button", { name: "Start listening" }).click();
const wav = await readFile("fixtures/hello.wav");
await feedAudio(page, wav);
// Assert what your app should do after hearing the clip.Install the override before navigation; feed audio after your app opens its microphone. Use a disposable Chromium context. The package makes no network calls and needs no model account.
Bring a mono PCM16 speech recording to test words.
npm test # WAV handling, energy measurement, input validation
npm run test:browser # quiet microphone → WAV feed → measured audio
npm run test:consumer # install and use the packed packageThe browser check fails if the microphone is noisy before the feed or its mean RMS stays at or below 0.02 afterward. Speech recognition and your app's response need their own assertions.
GitHub Actions runs these checks on pull requests, pushes to main, and all
tags. Feature-branch pushes use the pull request run instead of starting a
duplicate suite. Use the Run workflow button on the ci workflow for a
branch that needs remote proof before a pull request exists. Security scans
keep their independent triggers.
.coderabbit.yaml configures CodeRabbit for this repository when the GitHub app
has access. It enables incremental reviews, including drafts, with extra focus
on offline operation, WAV validation, package safety, and measured Chromium
microphone behavior. Fix suggestions and generated tests remain subject to the
checks above; a clean AI review does not prove microphone behavior.
Knowledge-base learnings, issues, and prior PR context stay local to this repository. Automatic cross-repository linking is disabled; review guidelines come from its README, SECURITY, AGENTS, and REVIEW files.
CodeRabbit approval may be issued through a manual override. Require an independently completed review of the exact PR head, passing required checks, and resolved human change requests before merging; approval alone is not that proof.
Automatic review pauses after five reviewed commits to avoid repeated review loops. Batch related fixes and resume review deliberately. This configuration does not install the app, grant trial features, enable automatic merging, or replace existing test and release gates.
To reproduce the screenshot and recording, run npm run demo:record. See
the example source and capture notes.
If something fails, open an issue with the command and its output.

