捷徑

CMUARCTIC

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

CMU ARCTIC [Kominek et al., 2003] 資料集。

參數:
  • root (strPath) – 找到或下載資料集的目錄路徑。

  • url (str, optional) – 從此 URL 下載資料集,或是要下載的資料集類型。(預設值:"aew") 允許的類型值為 "aew""ahw""aup""awb""axb""bdl""clb""eey""fem""gka""jmk""ksp""ljm""lnh""rms""rxr""slp""slt"

  • folder_in_archive (str, optional) – 資料集的頂層目錄。(預設值:"ARCTIC")

  • download (bool, optional) – 如果在根路徑中找不到資料集,是否下載。(預設值:False)。

__getitem__

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

從資料集中載入第 n 個樣本。

參數:

n (int) – 要載入的樣本的索引

傳回:

以下項目的元組;

Tensor

波形

int

取樣率

str

文本

str

語音 ID

文件

Access comprehensive developer documentation for PyTorch

View Docs

教學

Get in-depth tutorials for beginners and advanced developers

View Tutorials

資源

Find development resources and get your questions answered

View Resources