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

# weaveAudio

> TypeScript SDK reference

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

Defined in: [src/media.ts:62](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/media.ts#L62)

Create a new WeaveAudio object

## Parameters

### options

`WeaveAudioInput`

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

## Returns

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

## Example

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