COMMONVOICE¶ class torchaudio.datasets.COMMONVOICE(root: Union[str, Path], tsv: str = 'train.tsv')[原始碼]¶ CommonVoice [Ardila 等, 2020] 資料集。 引數: root (str 或 Path) – 資料集所在的目錄路徑。(tsv 檔案所在的目錄。) tsv (str, 可選) – 用於構建元資料的 tsv 檔名,例如 "train.tsv"、"test.tsv"、"dev.tsv"、"invalidated.tsv"、"validated.tsv" 和 "other.tsv"。(預設值:"train.tsv") __getitem__¶ COMMONVOICE.__getitem__(n: int) → Tuple[Tensor, int, Dict[str,str]][原始碼]¶ 從資料集中載入第 n 個樣本。 引數: n (int) – 要載入樣本的索引 返回值: 包含以下項的元組; Tensor波形 int取樣率 Dict[str, str]包含對應 TSV 檔案中以下項的字典; "client_id" "path" "sentence" "up_votes" "down_votes" "age" "gender" "accent"