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

# weaveAudio

> TypeScript SDK リファレンス

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

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

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

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

<div id="options">
  ### options
</div>

`WeaveAudioInput`

このメディアタイプのオプションです

* data: Buffer 形式の生のオーディオデータ
  * audioType: (任意) オーディオファイルの種類。現在サポートされているのは 'wav' のみです

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

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

<div id="example">
  ## 例
</div>

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