> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# localAudio()

> Returns whether the local microphone is on.

`localAudio()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Returns whether the local microphone is on. Returns `false` when the local audio track state is `'off'` or `'blocked'`, and `true` otherwise.

## Return value

Returns `boolean`.

## Example

```javascript theme={null}
if (!call.localAudio()) {
  console.log('Mic is off or blocked');
}
```

## See also

<CardGroup>
  <Card title="Types" icon="t" iconType="solid">
    * [DailyTrackState](/reference/daily-js/types/daily-track-state)
  </Card>

  <Card title="Methods" icon="code" iconType="solid">
    * [localVideo()](/reference/daily-js/instance-methods/local-video)
    * [setLocalAudio()](/reference/daily-js/instance-methods/set-local-audio)
    * [participants()](/reference/daily-js/instance-methods/participants)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [participant-updated](/reference/daily-js/events/participant-events#participant-updated)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Audio and video](/docs/daily-js/guides/audio-video)
  </Card>
</CardGroup>
