Install python, and then install the pyaudio
toolbox by opening the URL:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
Download the ".whl" file according to the version you need, e.g. PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl
for python 3.8.
Switch to the path of the downloaded file, then:
pip install PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl
-
Open
main.py
, set thenum_class
to the value of your target classes. Then close and save file. -
Open
config.ini
, there should be2 * num_class
valid lines. Each two lines stand for one class.The first line is the class name.
The second line is the items. They should be separated with the sign ",". Attention that there is no space between them. Alternatively, one can modify this sign by changing the code in
main.py
.
To start recording data, just simply type:
python main.py
Note: If you want to quit when creating the dataset, just type "q" when asked (not case sensitive).
After finishing recording, please remember to save and backup your dateset.