VA Voice Chat
+Connect to the engine, enable your mic, and start talking.
+
+ Audio is streamed as PCM16 mono @ 16 kHz over
+ /ws-product.
+
Chat cleared.
"; + els.chatLog.appendChild(empty); +} + +function truncateLogValue(value, maxLength = 160) { + const text = String(value); + if (text.length <= maxLength) return text; + return `${text.slice(0, maxLength - 1)}…`; +} + +function compactWsPayload(payload) { + if (!payload || typeof payload !== "object") return String(payload); + const compact = { ...payload }; + + if (typeof compact.audio === "string") { + compact.audio = `Connect to the engine, enable your mic, and start talking.
+
+ Audio is streamed as PCM16 mono @ 16 kHz over
+ /ws-product.
+