useTranscriptions
Note
This feature is under active development and may change based on developer feedback and real-world usage.
useTranscriptions is a hook that returns the transcriptions for the given participant identities and track sids, if no options are provided, it will return all transcriptions
Import
import { useTranscriptions } from "@livekit/components-react";
Usage
const transcriptions = useTranscriptions();return <div>{transcriptions.map((transcription) => transcription.text)}</div>;
Properties
Returns
import('@livekit/components-core').TextStreamData[]