> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-drtangible-wip-test-inline-tag.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# weaveAudio

> TypeScript SDK reference

> **weaveAudio**(`options`): [`WeaveAudio`](../interfaces/weaveaudio)

Create a new WeaveAudio object

Defined in: [src/media.ts:85](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/media.ts#L85)

## Parameters

### options

The options for this media type

* data: The raw audio data as a Buffer
* audioType: (Optional) The type of audio file, currently only 'wav' is supported

#### audioType?

`"wav"`

#### data

`Buffer`

## Returns

[`WeaveAudio`](../interfaces/weaveaudio)

## Example

```ts twoslash theme={null}
// @noErrors
const audioBuffer = fs.readFileSync('path/to/audio.wav');
const weaveAudio = weaveAudio({ data: audioBuffer });
```
