快捷方式

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 開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得解答

檢視資源