# Training a TensorFlow.js model for Speech Commands Using node.js ## Preparing data for training Before you can train your model that uses spectrogram from the browser's WebAudio as input features, you need to download the speech-commands [data set v0.01](https://storage.cloud.google.com/download.tensorflow.org/data/speech_commands_v0.01.tar.gz) or [data set v0.02](https://storage.cloud.google.com/download.tensorflow.org/data/speech_commands_v0.02.tar.gz). ## Training the TensorFlow.js Model The node.js training package comes with a command line tool that will assist your training. Here are the steps: 1. Prepare the node modules dependecies: ```bash yarn ``` 2. Start the CLI program: ```none yarn start ``` Following are command supported by the CLI: ```none Commands: help [command...] Provides help for a given command. exit Exits application. create_model [labels...] create the audio model load_dataset all Load all the data from the root directory by the labels load_dataset