wandb.data_types.Audio

View source on GitHub

Wandb class for audio clips.

Audio(
data_or_path, sample_rate=None, caption=None
)

Arguments

data_or_path

(string or numpy array) A path to an audio file or a numpy array of audio data.

sample_rate

(int) Sample rate, required when passing in raw numpy array of audio data.

caption

(string) Caption to display with audio.

Methods

durations

View source

@classmethod
durations(
audio_list
)

path_is_reference

View source

@classmethod
path_is_reference(
path
)

resolve_ref

View source

resolve_ref()

sample_rates

View source

@classmethod
sample_rates(
audio_list
)