快捷鍵

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)[原始碼]

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

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

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

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

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

__getitem__

LJSPEECH.__getitem__(n: int) Tuple[Tensor, int, str, str][原始碼]

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

參數:

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

回傳:

下列項目的元組;

Tensor

波形

int

取樣率

str

文本記錄

str

標準化文本記錄

文件

存取 PyTorch 的完整開發者文件

查看文件

教學

取得初學者和進階開發者的深入教學

查看教學

資源

尋找開發資源並獲得問題解答

查看資源