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
]. IfNone
, 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__¶
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