メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt

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

クラス Audio

W&Bのオーディオクリップ用クラス。

method Audio.__init__

__init__(
    data_or_path: 'str | pathlib.Path | list | np.ndarray',
    sample_rate: 'int | None' = None,
    caption: 'str | None' = None
)
オーディオファイルへのパス、またはオーディオデータを含む NumPy 配列を受け取ります。 引数:
  • data_or_path: オーディオファイルへのパス、またはオーディオデータを含む NumPy 配列。
  • sample_rate: サンプルレート。生の NumPy 配列のオーディオデータを渡す場合に必須です。
  • caption: オーディオとともに表示するキャプション。

クラスメソッド Audio.durations

durations(audio_list)
オーディオファイルの再生時間を計算します。

クラスメソッド Audio.sample_rates

sample_rates(audio_list)
オーディオファイルのサンプルレートを取得します。