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)[source]¶ LJSpeech-1.1 [Ito 和 Johnson, 2017] 資料集。 引數: root (str 或 Path) – 資料集所在或下載目錄的路徑。 url (str, 可選) – 下載資料集的 URL。(預設值:"https://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2") folder_in_archive (str, 可選) – 資料集的頂層目錄。(預設值:"wavs") download (bool, 可選) – 如果在根路徑找不到資料集,是否下載。(預設值:False)。 __getitem__¶ LJSPEECH.__getitem__(n: int) → Tuple[Tensor, int, str, str][source]¶ 從資料集中載入第 n 個樣本。 引數: n (int) – 要載入樣本的索引 返回值: 以下專案的元組; Tensor波形 int取樣率 str文字記錄 str歸一化文字記錄