快捷方式

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, 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][source]

从数据集中加载第 n 个样本。

参数:

n (int) – 要加载的样本的索引

返回:

以下项目的元组;

张量

波形

int

采样率

str

原始文本

str

规范化文本

int

说话人 ID

int

章节 ID

str

语段 ID

文档

访问 PyTorch 的全面开发者文档

查看文档

教程

获取面向初学者和高级开发者的深入教程

查看教程

资源

查找开发资源并获得解答

查看资源