快捷方式

CMUARCTIC

class torchaudio.datasets.CMUARCTIC(root: Union[str, Path], url: str = 'aew', folder_in_archive: str = 'ARCTIC', download: bool = False)[source]

CMU ARCTIC [Kominek 等人, 2003] 数据集。

参数:
  • root (strPath) – 数据集所在或下载到的目录路径。

  • url (str, 可选) – 下载数据集的 URL 或要下载的数据集类型。(默认值: "aew") 允许的类型值为 "aew", "ahw", "aup", "awb", "axb", "bdl", "clb", "eey", "fem", "gka", "jmk", "ksp", "ljm", "lnh", "rms", "rxr", "slp""slt"

  • folder_in_archive (str, 可选) – 数据集的顶层目录。(默认值: "ARCTIC")

  • download (bool, 可选) – 如果数据集在根路径中找不到,是否下载。(默认值: False)。

__getitem__

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

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

参数:

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

返回:

以下项目的元组;

Tensor

波形

int

采样率

str

文本

str

话语 ID

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

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

查看教程

资源

查找开发资源并获得解答

查看资源