VAD docs: startup buffer latency stated precisely; smoke-voice-vad --exe
ci / linux-arm64-cross (push) Successful in 2m48s
ci / linux-x64 (push) Successful in 2m53s
release / linux-arm64 (push) Successful in 4m15s
release / linux-x64 (push) Successful in 4m38s
release / appimage-startup (push) Successful in 15s
release / publish (push) Failing after 9s

This commit is contained in:
omar committed 2026-10-24 09:31:27 +03:00
1 parent b7951e0693
commit a924d792b4
5 files changed
+18 -9

No files matched your search

+2 -1
View File
@@ -223,7 +223,8 @@ probability 0–1). The gate opens after 3 consecutive windows at or above the t
(`high` 0.45, `normal` 0.6 — default, `low` 0.75) and sends the 5 frames (100 ms) held before
the onset, then the current frame. While open, a window counts as voiced down to 0.15 below the
threshold; the gate closes 20 frames (400 ms) after the last voiced frame. It cannot open
during the first 10 frames after a reset. Detector, filter history and preroll are reset on
during the first 10 frames after a reset; until the first spurt after a reset all frames since it are held
(at most 15 = 300 ms) and sent before the current one, later spurts send 5. Detector, filter history and preroll are reset on
every `set_transmit`, `audio_end`, mute/deafen, disconnect, channel or codec change and when
the server does not allow talking. `sensitivity` is accepted only with `vad`.
Before answering, the core discards frames still queued from the previous mode and ends any
+7 -3
View File
@@ -46,9 +46,13 @@ Noise: generated in the tests (synthetic, not recordings).
| 160 ms pause inside speech | one spurt (not split) |
| End of speech | closes 23–26 frames (460–520 ms) after the last speech frame of the fixture |
Added latency: within a spurt none (frames are sent as they arrive). At an onset the preroll (100 ms) goes
out at once, so the receiver plays the spurt from up to ~100 ms before the decision; the decision itself comes
0–60 ms after the first loud frame. Right after a reset the first spurt is up to ~260 ms late.
Added latency: within a spurt none (frames are sent as they arrive). At an onset the held frames go out at
once, so the receiver plays the spurt from before the decision: normally 100 ms (5 frames); the decision itself
comes 0–60 ms after the first loud frame. After a reset the held buffer is up to 300 ms (15 frames) until the
first spurt: speech at frame 0 opens the gate at frame 10 (200 ms) and sends frames 0–10; if the user is silent
for longer, the buffer stays full with the last 300 ms and the first speech flushes all 15 frames, so that
first spurt starts up to 300 ms late. Every later spurt carries 100 ms. This is buffered PCM, not zero added
latency.
ARM64: the same unit tests run in CI under qemu-aarch64 (emulated); native Apple Silicon/Asahi hardware is not
tested.