快捷方式

LJSPEECH

class torchaudio.datasets.LJSPEECH(root: Union[str, Path], url: str = 'https://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2', folder_in_archive: str = 'wavs', download: bool = False)[source]

LJSpeech-1.1 [Ito 和 Johnson, 2017] 資料集。

引數:
  • root (strPath) – 資料集所在或下載目錄的路徑。

  • url (str, 可選) – 下載資料集的 URL。(預設值:"https://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2"

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

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

__getitem__

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

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

引數:

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

返回值:

以下專案的元組;

Tensor

波形

int

取樣率

str

文字記錄

str

歸一化文字記錄

文件

訪問全面的 PyTorch 開發者文件

檢視文件

教程

獲取針對初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源