Skip to main content
GitHub

Source

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

opts.participantIdentitiesstring[]Optional
opts.trackSidsstring[]Optional

Returns

import('../../packages/core/dist/index.d.ts').TextStreamData[]