Skip to content

v1.3.0 — Auto-Start Recording & Pre-Roll Protection

Choose a tag to compare

@timalabs timalabs released this 27 Sep 17:51
· 7 commits to main since this release

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_AUDIO mode 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) to audioContext.destination in 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) and smoothingTimeConstant = 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 into MediaStreamAudioDestinationNode. 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 dB or -∞ dB when 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.
  • Advanced Settings Accordion: Collapsible panel in the popup UI allowing fine-grained control:
    • Audio Detection Threshold (-60 dB to -25 dB, default: -48 dB)
    • Minimum Sound Duration (100 ms to 1200 ms, default: 400 ms)
    • Pre-roll Delay Buffer (200 ms to 1500 ms, default: 700 ms)
    • Reset to Defaults button
  • 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.md detailing Web Audio routing, DelayNode pre-roll mechanics, false-start state transitions, and manual verification guide.
  • Added docs/audio-processing.md detailing 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

  1. Download tab-audio-recorder-chrome-v1.3.0.zip.
  2. Unpack the zip file to a local folder.
  3. Open chrome://extensions/ and enable Developer mode.
  4. Click Load unpacked and select the unpacked folder.

Mozilla Firefox

  1. Download tab-audio-recorder-firefox-v1.3.0.xpi (or tab-audio-recorder-firefox-v1.3.0.zip).
  2. Open about:debugging#/runtime/this-firefox in Firefox.
  3. Click Load Temporary Add-on... and select the downloaded .xpi file.