Paper commentary
Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition
Speech Commands is a dataset for spotting single keywords in short clips
- Problem Full-sentence speech corpora fit keyword spotting poorly, since they lack word-level timing and carry restrictive licenses. Keyword spotters need single-word detection that stays quiet on background noise and unrelated speech.
- Method Speech Commands is a set of one-second word clips recorded through a browser app on ordinary phone and laptop microphones. Each speaker reads prompts one word at a time, and the clips are filtered and checked by hand.
- Results Training on version 2 data raised the score on the version 1 test set from 85.4% to 89.7%.
Why keyword spotting needs its own data
Keyword spotting means detecting when one word from a small target set is spoken. The detector has to stay quiet on background noise and unrelated speech, so false positives are the main risk. Most speech corpora were built for full sentences, which is a different job.
LibriSpeech labels align only at sentence level, so it lacks word-level timing. TIDIGITS needs a commercial license and uses a hard-to-decode NIST SPHERE format. CHiME-5 has a restricted license and is aligned only at sentence level. Common Voice is openly licensed, but it is also aligned by sentence.
The deeper reason is where the model runs: on the device rather than on a server. Models there need little compute and energy, and the audio shouldn't leave the device all the time. A dataset for this job therefore needs noisy, chatty, single-word recordings, which sentence corpora don't offer.
Recording one-second words from many speakers
The key choice was to record short words on ordinary phone and laptop microphones, not in a studio. The authors reasoned that models have to cope with noise, weak microphones and chatty speech. Each prompt is one word, and every clip is one second, which fits the trigger task.
The vocabulary began with twenty core words: the digits zero to nine and ten command words. Version 2 added four more command words, Backward, Forward, Follow and Learn. A second set of ten non-target words tests whether a model ignores other speech. Some were picked because they sound like targets, such as Tree.
The collection app uses the WebAudio API, which works in desktop Chrome and Firefox and on Android. iOS wasn't supported, and native apps were rejected because users were reluctant to install them. Moving the app to a Google-controlled domain was meant to stop spoofed sites from asking for microphone access.
Users had to agree to the terms before recording, and a session cookie records that agreement. Each session gets a random ID that isn't tied to an account, and a cookie stops a second pass. That session ID then serves as the speaker identifier for each clip.
Each prompt shows a word for 1.5 seconds, then a one-second pause before the next random word. Core words appear five times each and auxiliary words once, giving 135 utterances in about six minutes. Random ordering avoids pronunciation drift from repeating one word.
Cleaning and aligning the clips
Clips came back as OGG files, and the first filter treats very small files as empty. Anything under 5 KB is deleted, because compressed clips with little audio take very little space. The clips are then converted to 16 kHz PCM WAVE files, which is easier to process. Samples from other sources were resampled to 16 kHz with a similar ffmpeg command.
A loudness check averages the absolute sample values on a scale from -1.0 to 1.0. Clips scoring below 0.004 are removed, since they're likely too quiet to be intelligible. The Extract Loudest Section tool then keeps the one-second window with the highest volume, which tends to center the word.
Manual review then drops clips whose typed transcription doesn't match the expected word.
Speaker IDs, noise files and fixed splits
Before release the 16-digit speaker IDs are hashed into 8-digit IDs, so worker identities don't leak. The hash is stable, so the same speaker keeps the same ID in later releases.
Several minute-long noise files were recorded near running water or machinery, and others were generated as white and pink noise. They sit in a separate background noise folder, and one-second Silence clips are cut from them.
The final dataset holds 105,829 utterances of 35 words from 2,618 speakers. Each file is a one-second or shorter 16 kHz mono WAVE file, and the uncompressed set takes 3.8 GB. A gzip tar archive is 2.7 GB.
A text list names the validation clips, and a second list names the test clips. A hash of each file name decides its set, so a file stays in the same set across releases. This avoids cross-contamination when older models are run on newer test data.
Scoring Top-One with equal categories
The simplest score is Top-One, the share of test clips whose top prediction matches the folder label. The standard TensorFlow setup uses ten target words plus Unknown Word and Silence, twelve classes in all. Each class gets equal numbers of test clips, so each makes up about 8.3% of the total.
Unknown Word clips are drawn from the non-target words, and Silence clips come from the background noise files. The authors note that equal weighting doesn't match how often triggers and silence occur in real settings. To reproduce the score, run inference on each clip and compare its top class with the folder name.
The authors' example training code reaches 88.2% Top-One when the model is fully trained. They describe the model's responses as reasonable but far from perfect. The authors expect this to serve as a baseline that more sophisticated architectures can beat.
Scoring detections in a continuous stream
Top-One assumes each clip starts at the word, but a deployed model sees an unbroken stream. A deployed model doesn't know where words begin and end, so the authors score it on continuous audio.
The test_streaming_accuracy tool runs a frozen graph over a long wav file and checks its detections against a label file. It counts matched words, wrong-label detections and false positives. A simple rule also suppresses repeated detections of one word in a short window.
The default tolerance is 750 ms, which the authors chose to fit some applications they support. A one-hour mixed audio file with labelled times is also available for comparing models.
The version 2 baseline, run on a 10-minute stream, scored 49.0% matched and 46.0% correct. It had 3.0% wrong and 0.0% false positives. This is one clip and one model, so the zero false-positive figure describes that stream only.
Version 2 training data compared to version 1
Version 1 holds 64,727 utterances from 1,881 speakers. The default convolution model, trained on V1 data, scored 85.4% on the V1 test set. Training on the V2 data raised that same V1 test score to 89.7%.
The authors read this as the V2 training data being responsible for a substantial gain. On the V2 test set, the V1-trained model scored 82.7% and the V2-trained model scored 88.2%. So the V2 training data raises the Top-One score on both test sets in Table 2.
The text calls 88.2% a score on the training split taken from the V2 data. Table 2 lists the same 88.2% under the V2 test set, so the split behind that number is unclear.
The authors give the training commands for each version and link pretrained checkpoints.
Limitations
Collection covered English only, so the clips don't cover other languages. The authors hope transfer learning will carry the data to other languages, but no such experiment appears.
Each clip is one second of an isolated word, so phrases and longer words are outside the data. The collection app doesn't run on iOS. Each clip had one reviewer, so a mislabelled clip could remain.
The streaming result comes from one 10-minute clip and one baseline model. No streaming scores for other models are given. The main metric weights categories equally, which the authors say doesn't match real frequencies.
Paper info
- Authors
- Pete Warden
- Venue
- arXiv · Preprint
- First published
- 2018-4-9
- Added
- 2026-11-12
- Updated
- 2018-4-9
- Version
- v1
- arXiv
- 1804.03209
- Category
- cs.CL · cs.HC
- Original paper terms
- CC BY 4.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Pete Warden (2018). Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition. arXiv:1804.03209v1. https://arxiv.org/abs/1804.03209v1
BibTeX
@misc{warden2018speech,
title = {{Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition}},
author = {Pete Warden},
year = {2018},
eprint = {1804.03209},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1804.03209v1}
}