WhisperLiveKit/whisperlivekit
Quentin Fuxa f5eee67b11 fix: silence double-counting bug, add metrics module and runtime instrumentation
- Fix _begin_silence pushing same object reference as _end_silence,
  causing the consumer to process two ended events and double the
  silence duration.
- Fix initial silence never cleared when VAC is disabled, causing
  the no-VAC path to enqueue zero audio.
- Add sample-precise silence boundaries (at_sample parameter).
- Add whisperlivekit/metrics.py with WER computation (word-level
  Levenshtein) and timestamp accuracy (greedy alignment). No
  external dependencies.
- Add whisperlivekit/metrics_collector.py with SessionMetrics
  dataclass for per-session runtime observability. Instrumented
  at 6 points in AudioProcessor: init, process_audio,
  transcription_processor, _end_silence, results_formatter, cleanup.
  Emits SESSION_METRICS structured log line on session end.
2026-02-22 23:27:12 +01:00
..
diarization add insert_audio_chunk to DiartDiarization 2026-02-11 22:10:00 +01:00
local_agreement fix --direct-english-translation not setting task=translate for localagreement backends 2026-02-11 22:10:00 +01:00
silero_vad_models fixes silence detected but never reported by silero 2025-11-23 11:20:00 +01:00
simul_whisper fix: handle numpy object_ dtype from ctranslate2 encoder (#337) 2026-02-20 20:48:28 +01:00
web isort 2025-11-23 11:20:00 +01:00
whisper simulstreaming mlx & torch dedup of common base 2025-02-15 23:52:00 +01:00
__init__.py isort 2025-11-23 11:20:00 +01:00
audio_processor.py fix: silence double-counting bug, add metrics module and runtime instrumentation 2026-02-22 23:27:12 +01:00
backend_support.py mixstral hf v0 2026-02-20 20:49:57 +01:00
basic_server.py simulstreaming mlx & torch dedup of common base 2025-02-15 23:52:00 +01:00
config.py simulstreaming mlx & torch dedup of common base 2025-02-15 23:52:00 +01:00
core.py mixstral hf v0 2026-02-20 20:49:57 +01:00
ffmpeg_manager.py isort 2025-11-23 11:20:00 +01:00
metrics.py fix: silence double-counting bug, add metrics module and runtime instrumentation 2026-02-22 23:27:12 +01:00
metrics_collector.py fix: silence double-counting bug, add metrics module and runtime instrumentation 2026-02-22 23:27:12 +01:00
model_mapping.py simulstreaming mlx & torch dedup of common base 2025-02-15 23:52:00 +01:00
model_paths.py Fixes #294. improve model path backend detection and file extraction 2025-11-27 23:14:00 +01:00
parse_args.py mixstral hf v0 2026-02-20 20:49:57 +01:00
silero_vad_iterator.py simulstreaming mlx & torch dedup of common base 2025-02-15 23:52:00 +01:00
thread_safety.py Fix critical thread safety issues 2026-01-09 11:23:19 -05:00
timed_objects.py add probability field to ASRToken 2026-02-11 22:10:00 +01:00
tokens_alignment.py fix NoneType concatenation in add_translation 2026-02-11 22:10:00 +01:00
voxtral_hf_streaming.py correct processor attributes mixtral 2026-02-22 21:13:21 +01:00
warmup.py isort 2025-11-23 11:20:00 +01:00