LiveKit docs › Hooks › useTrackTranscription

---

# useTrackTranscription

> ℹ️ **Note**
> 
> This feature is experimental and may change or be removed based on developer feedback and real-world usage.

> 🔥 **Caution**
> 
> This API is deprecated: Use useTranscription instead

## Import

```typescript
import { useTrackTranscription } from "@livekit/components-react";

```

## Properties

- **`trackRef`** _(TrackReferenceOrPlaceholder | undefined)_: 

- **`options.bufferSize`** _(number)_ (optional): how many transcription segments should be buffered in state

- **`options.onTranscription`** _((newSegments: TranscriptionSegment[]) => void)_ (optional): optional callback for retrieving newly incoming transcriptions only

## Returns

An object consisting of `segments` with maximum length of opts.bufferSize

```typescript
{
    segments: ReceivedTranscriptionSegment[];
}

```

---

This document was rendered at 2026-06-07T11:34:13.485Z.
For the latest version of this document, see [https://docs.livekit.io/reference/components/react/hook/usetracktranscription.md](https://docs.livekit.io/reference/components/react/hook/usetracktranscription.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).