Skip to main content

class wandb.Audio

W&B class for audio clips.

Args

  • data_or_path: A path to an audio file or a NumPy array of audio data.
  • sample_rate: Sample rate, required when passing in raw NumPy array of audio data.
  • caption: Caption to display with audio.

Methods

method Audio.durations()

Calculate the duration of the audio files.
Arguments
  • audio_list:

method Audio.sample_rates()

Get sample rates of the audio files.
Arguments
  • audio_list: