activity value to your custom renderer. You can test the whole animation with a slider before connecting audio.
Install the scene dependencies
In a React 19 web app with TypeScript, install the renderer and its type declarations.@react-three/fiber@8. The renderer’s major version follows the React version in your app. React Three Fiber installation guide
Build the orb and try both sides of a conversation
Save this asVoiceOrbDemo.tsx and render <VoiceOrbDemo /> on a page. Select Listening and move the microphone slider. Then select Speaking. Only the assistant slider should affect the orb during that turn.
Connect a voice session
If your app already owns the session, replace the slider values with its current signal. While the user is listening to the assistant, the state isspeaking and outputVolume is the level of the audio being played. While the microphone is listening to the user, set inputVolume from the microphone meter. Set the state to thinking while the agent prepares a reply. The renderer receives zero activity in this state.
If you use a provider adapter, give the same renderer to the adapter-backed orb. Keep your existing Start and Stop controls and visible state label alongside the canvas.