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

# weaveAudio

> TypeScript SDK reference

# weaveAudio

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

Create a new WeaveAudio object

#### Parameters

| Name      | Type              | Description                                                                                                                                              |
| :-------- | :---------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 theme={null}
const audioBuffer = fs.readFileSync('path/to/audio.wav');
const weaveAudio = weaveAudio({ data: audioBuffer });
```

#### Defined in

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

***
