neptunecontrib.api.audio

Module Contents

Functions

log_audio(path_to_file, audio_name=None, experiment=None)

Logs audio file to ‘artifacts/audio’ with player.

neptunecontrib.api.audio.log_audio(path_to_file, audio_name=None, experiment=None)[source]

Logs audio file to ‘artifacts/audio’ with player.

Logs audio file to the ‘artifacts/audio’ in the experiment, where you can play it directly from the browser. You can also download raw audio file to the local machine. Just use “three vertical dots” located to the right from the player.

Parameters
  • path_to_file (str) – Path to audio file.

  • audio_name (str, optional, default is None) – Name to be displayed in artifacts/audio. | If None, file name is used.

  • experiment (neptune.experiments.Experiment, optional, default is None) –

    For advanced users only. Pass Neptune Experiment object if you want to control to which experiment data is logged.
    If None, log to currently active, and most recent experiment.

Example

log_audio('audio-file.wav')
log_audio('/full/path/to/some/other/audio/file.mp3')
log_audio('/full/path/to/some/other/audio/file.mp3', 'my_audio')

Note

Check out how the logged audio file looks in Neptune: here.