Skip to main content

Class wandb.Audio

W&B class for audio clips.

Args

str | pathlib.Path | list | np.ndarray
A path to an audio file or a NumPy array of audio data.
int | None
Sample rate, required when passing in raw NumPy array of audio data.
str | None
Caption to display with audio.

Methods

method Audio.durations()

Calculate the duration of the audio files.
Arguments
_empty
No description provided.

method Audio.sample_rates()

Get sample rates of the audio files.
Arguments
_empty
No description provided.