test(voice): disable E2EE entirely — check if EC sends plaintext vs encrypted

If VAD triggers → EC audio reaches pipeline without decryption (plaintext or format issue).
If VAD silent → E2EE encryption on EC side but key/format mismatch on our side.
Note: bot greeting will be unencrypted so EC may not hear it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-02-22 13:34:26 +02:00
parent 3d05b503c6
commit c188a2daf6

View File

@@ -256,10 +256,10 @@ class VoiceSession:
break break
await asyncio.sleep(0.1) await asyncio.sleep(0.1)
# Connect in per-participant mode (empty shared_key) so Rust FFI uses # DIAGNOSTIC: disable E2EE entirely to check if EC sends encrypted or plaintext.
# identity-based HKDF — matching Element Call's JS SFrame key derivation. # If VAD triggers → EC sends plaintext (E2EE disabled on EC side).
# Keys are set post-connect via set_key(identity, key, index). # If VAD silent → EC sends encrypted (frame format or key issue).
e2ee_opts = _build_e2ee_options() e2ee_opts = None # TODO: re-enable after diagnosis
room_opts = rtc.RoomOptions(e2ee=e2ee_opts) room_opts = rtc.RoomOptions(e2ee=e2ee_opts)
self.lk_room = rtc.Room() self.lk_room = rtc.Room()