LibriLightLimited¶ class torchaudio.datasets.LibriLightLimited(root: Union[str, Path], subset: str = '10min', download: bool = False)[source]¶ Libri-light [Kahn 等, 2020] 資料集的子集,在 HuBERT [Hsu 等, 2021] 中用於監督微調。 引數: root (str 或 Path) – 資料集所在或下載到的目錄路徑。 subset (str, 可選) – 要使用的子集。選項:["10min", "1h", "10h"] (預設: "10min")。 download (bool, 可選) – 如果資料集未在 root 路徑找到,是否下載。 (預設: False)。 __getitem__¶ LibriLightLimited.__getitem__(n: int) → Tuple[Tensor, int, str, int, int, int][source]¶ 從資料集中載入第 n 個樣本。 引數: n (int) – 要載入樣本的索引 返回: 包含以下元素的元組; Tensor波形 int取樣率 str轉錄文字 int說話人 ID int章節 ID int話語 ID