快捷方式

LIBRITTS

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

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

引數:
  • root (strPath) – 資料集所在或將下載到的目錄路徑。

  • url (str, 可選) – 資料集下載 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, 可選) – 資料集的頂層目錄。(預設值:"LibriTTS"

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

__getitem__

LIBRITTS.__getitem__(n: int) Tuple[Tensor, int, str, str, int, int, str][source]

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

引數:

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

返回:

包含以下項的元組;

Tensor

波形

int

取樣率

str

原始文字

str

歸一化文字

int

說話人 ID

int

章 ID

str

話語 ID

文件

訪問 PyTorch 的全面開發者文件

檢視文件

教程

獲取針對初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源