Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition
Paper • 1804.03209 • Published
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Merged, length-normalized keyword-spotting dataset for on-device voice control (Nordic nRF5340 + Edge Impulse). Every clip is 16 kHz mono, fixed 2 s, RMS-leveled and silence-padded. 1,447 clips per class (28,940 total). Real CC-BY audio only — no TTS.
audio (WAV bytes + path), label (ClassLabel)from datasets import load_dataset, Audio
import soundfile as sf
import io
ds = load_dataset("snowballlab/20-keywords")
print(ds)
print(ds["train"].features["label"].names)
# Decode one clip with soundfile (no torch needed):
ex = ds["train"][0]
y, sr = sf.read(io.BytesIO(ex["audio"]["bytes"]))
print(y.shape, sr, ds["train"].features["label"].int2str(ex["label"]))
# Or, if you have torchcodec installed:
# ds = ds.cast_column("audio", Audio(sampling_rate=16000))
volume_up / volume_down reconstructed by concatenating CC-BY components
(MSWC "volume" + GSC "up"/"down").Preprocessing matches the MLPerf Tiny KWS reference (16 kHz, MFCC 30/20 ms, 40 mel, 10 coeff, 20–4000 Hz).