捷徑

LIBRITTS

class torchaudio.datasets.LIBRITTS(root: Union[str, Path], url: str = 'train-clean-100', folder_in_archive: str = 'LibriTTS', download: bool = False)[原始碼]

LibriTTS [Zen et al., 2019] 資料集。

參數:
  • root (strPath) – 找到或下載資料集的目錄路徑。

  • url (str, optional) – 從中下載資料集的 URL,或要下載的資料集類型。允許的類型值為 "dev-clean""dev-other""test-clean""test-other""train-clean-100""train-clean-360""train-other-500"。(預設值: "train-clean-100")

  • folder_in_archive (str, optional) – 資料集的頂層目錄。(預設值: "LibriTTS")

  • download (bool, optional) – 如果在根路徑中找不到資料集,是否下載資料集。(預設值: False)。

__getitem__

LIBRITTS.__getitem__(n: int) Tuple[Tensor, int, str, str, int, int, str][原始碼]

從資料集中載入第 n 個樣本。

參數:

n (int) – 要載入的樣本索引

返回:

以下項目的元組;

Tensor

波形

int

取樣率

str

原始文本

str

正規化文本

int

說話者 ID

int

章節 ID

str

語句 ID

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

取得初學者和進階開發者的深入教學

查看教學

資源

尋找開發資源並獲得問題解答

查看資源