Add binaural recording + tune spatial tracking
binaural_recorder.py: Records left/right ear streams as stereo WAV in rolling 5-minute segments. Training data for spatial audio models. Enabled via BINAURAL_RECORD=1 env var. spatial.py: Tune smoothing — alpha 0.3→0.4 (snappier response), idle return speed 0.05→0.03 (gentler drift), timeout 2s→1.5s. headmic.py: Wire binaural recorder into audio loop, add /recording endpoint for stats, feed both ear streams (not just best beam). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -22,9 +22,9 @@ GAZE_Y_RANGE = 30 # max vertical deflection from center
|
||||
GAZE_MAX_DISTANCE_MM = 3000 # beyond this, gaze is "far" (no convergence)
|
||||
|
||||
# Smoothing
|
||||
SMOOTHING_ALPHA = 0.3 # exponential smoothing (0=sluggish, 1=instant)
|
||||
IDLE_RETURN_SPEED = 0.05 # how fast gaze drifts to center when no VAD
|
||||
IDLE_TIMEOUT_S = 2.0 # seconds of no VAD before drifting to center
|
||||
SMOOTHING_ALPHA = 0.4 # exponential smoothing (0=sluggish, 1=instant) — slightly snappy
|
||||
IDLE_RETURN_SPEED = 0.03 # how fast gaze drifts to center when no VAD — gentle drift
|
||||
IDLE_TIMEOUT_S = 1.5 # seconds of no VAD before drifting to center
|
||||
|
||||
|
||||
class SpatialTracker:
|
||||
|
||||
Reference in New Issue
Block a user