Agent-readable docs index: /docs/llms.txt. Full docs in one file: /docs/llms-full.txt. Download /docs/docs.zip to grep all markdown files locally.

React

Create the session in an effect, retain it in a ref, and dispose it during cleanup.
tsx
useEffect(() => { let active = true; let session: LiveVoiceSession | undefined; void LiveVoice.connect({ token, prompt, tools }).then((connected) => { if (!active) return connected.dispose(); session = connected; connected.on("transcript.instantaneous", ({ text }) => setPartial(text)); }); return () => { active = false; session?.stop(); session?.dispose(); }; }, [token]);