useVoiceAssistant
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
This hook looks for the first agent-participant in the room.
Import
import { useVoiceAssistant } from "@livekit/components-react";
Remarks
This hook requires an agent running with livekit-agents >= 0.9.0
Usage
const { state, audioTrack, agentTranscriptions, agentAttributes } = useVoiceAssistant();
Returns
VoiceAssistant;