LJSPEECH¶ class torchaudio.datasets.LJSPEECH(root: Union[str, Path], url: str = 'https://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2', folder_in_archive: str = 'wavs', download: bool = False)[原始碼]¶ LJSpeech-1.1 [Ito and Johnson, 2017] 資料集。 參數: root (str 或 Path) – 尋找或下載資料集的目錄路徑。 url (str, optional) – 從中下載資料集的 URL。(預設值:"https://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2") folder_in_archive (str, optional) – 資料集的頂層目錄。(預設值:"wavs") download (bool, optional) – 如果在 root 路徑中找不到資料集,是否下載資料集。(預設值:False)。 __getitem__¶ LJSPEECH.__getitem__(n: int) → Tuple[Tensor, int, str, str][原始碼]¶ 從資料集中載入第 n 個樣本。 參數: n (int) – 要載入的樣本索引 回傳: 下列項目的元組; Tensor波形 int取樣率 str文本記錄 str標準化文本記錄