LiveKit docs › Hooks › useStartAudio

---

# useStartAudio

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

In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button. The `useStatAudio` hook returns an object with a boolean `canPlayAudio` flag that indicates whether audio playback is allowed in the current context, as well as a `startAudio` function that can be called in a button `onClick` callback to start audio playback in the current context.

## Import

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

```

## Properties

- **`{ room, props }.props`** _(React.ButtonHTMLAttributes<HTMLButtonElement>)_: 

- **`{ room, props }.room`** _(Room)_ (optional): 

## Returns

```typescript
{
    mergedProps: React.ButtonHTMLAttributes<HTMLButtonElement> & {
        className: string;
        onClick: () => void;
        style: {
            display: string;
        };
    };
    canPlayAudio: boolean;
}

```

---

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

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