Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-python-sdk-testing.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

(data_or_path: 'str | pathlib.Path | list | np.ndarray',
sample_rate: 'int | None' = None,
caption: 'str | None' = None)

Description

W&B class for audio clips.

Args:

  • data_or_path:
  • sample_rate:
  • caption:

Methods:

durations

Calculate the duration of the audio files.

file_is_set

init_from_json

Initialize a WBValue from a JSON blob based on the class that created it. Looks through all subclasses and tries to match the json obj with the class which created it. It will then call that subclass’ from_json method. Importantly, this function will set the return object’s source_artifact attribute to the passed in source artifact. This is critical for artifact bookkeeping. If you choose to create a wandb.Value via it’s from_json method, make sure to properly set this artifact_source to avoid data duplication.

is_bound

path_is_reference

sample_rates

Get sample rates of the audio files.

to_data_array

Convert the object to a list of primitives representing the underlying data.

type_mapping

Return a map from _log_type to subclass. Used to lookup correct types for deserialization.

with_suffix

Get the name with the appropriate suffix.