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

# AudioOutput

# Class: AudioOutput

Defined in: [index.d.ts:272](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L272)

Handle to an open audio output device. Must be kept alive for
playback to continue — when dropped all associated `Player`s stop
producing sound.

## Constructors

### Constructor

> **new AudioOutput**(): `AudioOutput`

#### Returns

`AudioOutput`

## Methods

### createPlayer()

> **createPlayer**(): [`Player`](Player.mdx)

Defined in: [index.d.ts:281](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L281)

Creates a new `Player` attached to this output.

#### Returns

[`Player`](Player.mdx)

***

### openDefault()

> `static` **openDefault**(): `AudioOutput`

Defined in: [index.d.ts:279](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L279)

Opens the default audio output device with its default
configuration. If that fails, tries alternative configurations
and non-default output devices. Returns the first configuration
that succeeds. If all attempts fail, returns the initial error.

#### Returns

`AudioOutput`
