You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Diarizer AssertionError: window size validation fails for short audio clips #4572
Audio files with ~400 samples (~25ms at 16kHz) are too short for wespeaker fbank minimum window size. Audio clips being sent have invalid/truncated duration.
Impact
Severity: Critical (500 errors on diarizer.omi.me)
Frequency: 100 errors/hour
Affected pod: prod-omi-diarizer-7458c4c8db-rc4mj
Recommended Fix
Add audio duration validation before calling embedding endpoint
In backend/utils/stt/speaker_embedding.py - validate audio length before POST to /v2/embedding
Minimum audio duration should be ~100ms+ for speaker embedding
Evidence
Raw logs: /tmp/diarizer-errors.json (on monitoring host)
Activity
beastoin commentedon Feb 3, 2026
Need to trace the usages of the function in
backend/utils/stt/speaker_embedding.pyto find the potential root cause before creating a fix.fix: support non-WAV audio in duration validation, move import to top…
fix: Validate audio duration before speaker embedding (BasedHardware#…
fix: Validate audio duration before speaker embedding (BasedHardware#…
fix: Validate audio duration before speaker embedding (BasedHardware#…