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>
This commit is contained in:
javis-bot
2026-11-18 16:15:07 +09:00
parent 88ee5ec2cb
commit 81d1e26f61
123 changed files with 20119 additions and 5 deletions

2
app/shell/Cargo.lock generated
View File

@@ -5562,8 +5562,6 @@ dependencies = [
[[package]]
name = "songbird"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "371362adce10df3244fbf93475ac53391aedd425482f160a9dbb3e042577de8b"
dependencies = [
"aead",
"aes-gcm",