> ## 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

> Handle to an open audio output device.

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

## Constructor

```typescript
AudioOutput(): AudioOutput
```

### Returns

`AudioOutput`

## Methods

### createPlayer()

```typescript
createPlayer(): Player
```

Creates a new `Player` attached to this output.

#### Returns

`Player`

### openDefault()

```typescript
openDefault(): AudioOutput
```

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`
