frames * channelsYou can instantiate an audio object using the
pluto.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. |
Examples
Logging from File Paths
Logging from NumPy Arrays
Viewing Audio in the Dashboard
Logged audio files appear as player widgets in the dashboard with standard playback controls, volume adjustment, and a download button. Each audio card shows the filename and associated run.