Audio
Visualize your audio
mlop supports logging audio types to the platform, you can upload an audio using its file path or a NumPy array containing audio data forming frames * channels
.
You can instantiate an audio object using the mlop.Audio
constructor.
Parameter | Type | Description |
---|---|---|
data | Union[str, np.ndarray] | The audio data to log. Can be a path to an audio file or a NumPy array. |
rate | int | The sample rate of the audio data. Defaults to 48000. |
caption | str | A caption for the audio. |
Supported Formats
mlop uses soundfile
as its backend for audio logging, with the following supported formats.
Examples
Logging from File Paths
Logging from NumPy Arrays
This provides you with the nice visualization