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

# weaveAudio

> TypeScript SDK リファレンス

<div id="weaveaudio">
  # weaveAudio
</div>

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

WeaveAudio オブジェクトを新規作成します

<div id="parameters">
  #### パラメーター
</div>

| 名         | タイプ               | 説明                                                                                                      |
| :-------- | :---------------- | :------------------------------------------------------------------------------------------------------ |
| `options` | `WeaveAudioInput` | このメディアタイプのオプションです - data: Buffer 形式の生のオーディオデータ - audioType:  (任意) オーディオファイルの種類。現在サポートされているのは 'wav' のみです |

<div id="returns">
  #### 戻り値
</div>

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

`例`

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

<div id="defined-in">
  #### 定義元
</div>

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

***
