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

# オーディオ

<Card title="View the source code" href="https://www.github.com/wandb/wandb/tree/637bddf198525810add5804059001b1b319d6ad1/wandb/sdk/data_types/audio.py#L13-L157" icon="github" />

オーディオクリップ用の Wandb クラス。

```python theme={null}
Audio(
    data_or_path, sample_rate=None, caption=None
)
```

| Args           | Description                                                   |
| :------------- | :------------------------------------------------------------ |
| `data_or_path` | (string または numpy array) オーディオファイルへのパス、またはオーディオデータの numpy 配列。 |
| `sample_rate`  | (int) サンプルレート、生の numpy 配列のオーディオデータを渡す場合に必要。                   |
| `caption`      | (string) オーディオと一緒に表示するキャプション。                                 |

## メソッド

### `durations`

[ソースを見る](https://www.github.com/wandb/wandb/tree/637bddf198525810add5804059001b1b319d6ad1/wandb/sdk/data_types/audio.py#L115-L117)

```python theme={null}
@classmethod
durations(
    audio_list
)
```

### `resolve_ref`

[ソースを見る](https://www.github.com/wandb/wandb/tree/637bddf198525810add5804059001b1b319d6ad1/wandb/sdk/data_types/audio.py#L131-L143)

```python theme={null}
resolve_ref()
```

### `sample_rates`

[ソースを見る](https://www.github.com/wandb/wandb/tree/637bddf198525810add5804059001b1b319d6ad1/wandb/sdk/data_types/audio.py#L119-L121)

```python theme={null}
@classmethod
sample_rates(
    audio_list
)
```
