• Aryan Noshirvnai's avatar
    Discovery: boost mic sensitivity and filter noise via real-time capture constraints · fabeaa47
    Aryan Noshirvnai authored
    autoGainControl (sensitivity - boosts a quiet/distant snippet) and
    noiseSuppression (filters steady background noise) are now requested
    on the getUserMedia call, plus a 44.1kHz sampleRate hint since some
    phones default the mic to a voice-optimized rate that hurts music
    fingerprint matching. echoCancellation is explicitly off - it's built
    for cancelling a device's own call/speaker output, not relevant here,
    and can color music it doesn't need to touch.
    
    Chose this over any server-side denoising step deliberately: these are
    real-time browser/WebRTC audio-pipeline features applied during
    capture, not post-processing, so they add zero time on top of the
    fixed 5-second recording window - the exact opposite of what a backend
    audio-processing pass would do to the "must stay ~5s total" budget.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    fabeaa47
Discovery.test.tsx 6.95 KB