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, 可选) – 如果在 root 路径中未找到数据集,是否下载数据集。(默认值:False)。 __getitem__¶ LJSPEECH.__getitem__(n: int) → Tuple[Tensor, int, str, str][source]¶ 从数据集中加载第 n 个样本。 参数: n (int) – 要加载的样本的索引 返回: 以下项目的元组; Tensor波形 int采样率 str文本记录 str标准化文本记录