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 x channel.
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. |
Then log the audio as standard
This provides you with the visualization as such
:::tip
mlop uses soundfile
as its backend for audio logging, with the following supported formats.
:::