Files
javis_bot/app/vendor/songbird/JARVIS-PATCH.md
javis-bot 81d1e26f61 fix(voice): keep the first packets of a speaker until Discord names them
Discord names a speaker's SSRC in the Speaking op only the first time
they speak, and the op arrives after their first UDP packets. songbird
0.6.1 dropped the DAVE packets it could not decrypt yet, so the first
~100 ms of the first thing each person said after a join were lost
(live 2026-11-18: "자비스 서울 날씨 어때" arrived as "아비 서울날씨
어때", and the first call after the 01:20 start as "아비스").

songbird is vendored in app/vendor/songbird with one patch: packets of
an unnamed SSRC are held (1 s, 50 packets each, 32 SSRCs) and processed
in arrival order once it is named, and the Speaking event is sent before
the SSRC is named so handlers know the speaker first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:15:07 +09:00

934 B

songbird 0.6.1, patched for Jarvis

This is songbird 0.6.1 from crates.io (https://github.com/serenity-rs/songbird, ISC licence, see its README), used through [patch.crates-io] in app/Cargo.toml and app/shell/Cargo.toml.

The one change: RTP packets of an SSRC that Discord has not named yet are held for up to a second instead of dropped, and processed once its Speaking op names it (src/driver/tasks/udp_rx/held.rs, udp_rx/mod.rs process_udp_message; ws.rs sends the Speaking event before naming the SSRC so handlers see the name before the held packets). Discord's Speaking op comes after a speaker's first packets, and unpatched songbird dropped DAVE packets it could not yet decrypt, so the first ~100 ms of the first thing each person said after a join were lost (live 2026-11-18: "자비스 서울 날씨 어때" arrived as "아비 서울날씨 어때").

Drop this copy when an upstream release does the same.