Repository navigation
v1.3.0 — Auto-Start Recording & Pre-Roll Protection
Tab Audio Recorder v1.3.0
Record audio from this browser tab — privately, locally, without a server.
Tab Audio Recorder v1.3.0 introduces the Auto-start Recording Pipeline featuring active AudioContext resumption, 32-bit floating-point RMS detection, transient spike rejection (anti-false-start), Web Audio pre-roll buffering, independent background audio monitoring, and a real-time developer diagnostics mode.
What's New in v1.3.0
1. Auto-Start Recording Pipeline
-
Hands-Free Tab Monitoring: When enabled, the extension enters
WAITING_FOR_AUDIOmode and continuously measures the active tab's audio level without recording empty silence. -
AudioContext Resumption: Proactive
ensureRunning()invocation overcomes Chromium and Gecko autoplay policies, ensuring the Web Audio clock is active inside offscreen documents and content scripts. -
Zero-Gain Destination Bridge: Routes audio through a
GainNode(gain = 0)toaudioContext.destinationin Firefox, guaranteeing continuous audio frame processing without generating double-audio or acoustic feedback. -
32-Bit Float RMS Detection: High-precision time-domain signal power calculation ($20 \log_{10}(\text{RMS})$) with
fftSize = 2048(42.6ms sampling window) andsmoothingTimeConstant = 0.1. - Transient Spike Rejection (Anti-False-Start): Requires sustained audio above the volume threshold for at least 400 ms (configurable) before recording begins, rejecting transient clicks, pops, and short notification chimes.
- 3 dB Hysteresis: Prevents candidate detection state flutter when audio fluctuates near the threshold.
- Ambient Baseline Calibration: Automatically measures ambient tab noise during the first 600ms of monitoring to establish an accurate baseline.
-
Web Audio Pre-Roll Delay Buffer: Routes the recording stream through a Web Audio
DelayNode(700 ms default, configurable) feeding intoMediaStreamAudioDestinationNode. Ensures initial transients, drum attacks, or vocal intro plucks are fully preserved. Direct 0ms speaker pass-through is maintained so the tab plays without delay. -
Live Audio Meter & Diagnostics Panel:
- Real-time decibel indicator in the popup (
Audio level: -18.4 dBor-∞ dBwhen silent). - Expandable diagnostic grid displaying Capture state, Audio tracks count/readyState/mute status, AudioContext lifecycle, Analyser status, RMS, current dB, threshold, Above-Threshold flag, Detection timer ms, Noise floor dB, and current recorder state.
- Real-time decibel indicator in the popup (
-
Advanced Settings Accordion: Collapsible panel in the popup UI allowing fine-grained control:
- Audio Detection Threshold (
-60 dBto-25 dB, default:-48 dB) - Minimum Sound Duration (
100 msto1200 ms, default:400 ms) - Pre-roll Delay Buffer (
200 msto1500 ms, default:700 ms) - Reset to Defaults button
- Audio Detection Threshold (
- Independent Background Monitoring: Runs in Chrome offscreen document and Firefox content script bridge; monitoring continues uninterrupted if the popup is closed.
-
Manual Override & Cancellation: Provides explicit "Record Now" (
FORCE_RECORD) and "Cancel Monitoring" controls during the waiting state.
2. Full Compatibility & Privacy
- Seamless Pipeline Integration: Auto-start only controls the recording trigger. Safe track duration, Smart Silence Trimming, and format conversion (MP3, WAV, FLAC, OGG, WebM) operate seamlessly on the resulting recording.
- 100% Local Processing: No microphone access requested; captures tab audio only. Zero cloud uploads or remote telemetry.
3. Documentation & Verification
- Added
docs/auto-start.mddetailing Web Audio routing, DelayNode pre-roll mechanics, false-start state transitions, and manual verification guide. - Added
docs/audio-processing.mddetailing the complete end-to-end audio pipeline across Chrome and Firefox. - Expanded test suite with 82 unit tests passing across 10 test suites.
Installation
Google Chrome / Brave / Microsoft Edge
- Download
tab-audio-recorder-chrome-v1.3.0.zip. - Unpack the zip file to a local folder.
- Open
chrome://extensions/and enable Developer mode. - Click Load unpacked and select the unpacked folder.
Mozilla Firefox
- Download
tab-audio-recorder-firefox-v1.3.0.xpi(ortab-audio-recorder-firefox-v1.3.0.zip). - Open
about:debugging#/runtime/this-firefoxin Firefox. - Click Load Temporary Add-on... and select the downloaded
.xpifile.