Shortcuts

QUESST14

class torchaudio.datasets.QUESST14(root: Union[str, Path], subset: str, language: Optional[str] = 'nnenglish', download: bool = False)[source]

QUESST14 [Miro et al., 2015] dataset.

Parameters:
  • root (str or Path) – Root directory where the dataset’s top level directory is found

  • subset (str) – Subset of the dataset to use. Options: ["docs", "dev", "eval"].

  • language (str or None, optional) – Language to get dataset for. Options: [None, albanian, basque, czech, nnenglish, romanian, slovak]. If None, dataset consists of all languages. (default: "nnenglish")

  • download (bool, optional) – Whether to download the dataset if it is not found at root path. (default: False)

__getitem__

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

Load the n-th sample from the dataset.

Parameters:

n (int) – The index of the sample to be loaded

Returns:

Tuple of the following items;

Tensor:

Waveform

int:

Sample rate

str:

File name

get_metadata

QUESST14.get_metadata(n: int) Tuple[str, int, str][source]

Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform, but otherwise returns the same fields as __getitem__().

Parameters:

n (int) – The index of the sample to be loaded

Returns:

Tuple of the following items;

str:

Path to audio

int:

Sample rate

str:

File name

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources