Audio
less than a minute
class Audio
W&B class for audio clips.
Attributes:
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.
method Audio.__init__
__init__(data_or_path, sample_rate=None, caption=None)
Accept a path to an audio file or a numpy array of audio data.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.