Data Acquisition
Collecting audio data
Upload sound files or record them with your microphone, and give every clip a label.
Try it in StudioOn this page
Goal
By the end of this page your project will have labelled sound clips in its training and testing sets.
Everything happens on the Data acquisition page. The Collect data card has two buttons: a microphone (record) and an upload arrow (upload files).
Option 1: Record with your microphone
- Select the microphone button in Collect data. The Record Audio with Microphone window opens.
- Type a Label, for example yes, alarm or noise.
- Choose a Duration (Seconds), from 1 Second up to 1,000 Seconds. The default is 5 seconds.
- Leave 1-Sec Auto-Split switched on. Studio cuts the recording into separate 1-second clips, so a 10-second recording gives you 10 samples. Any part shorter than 1 second at the end is not kept.
- Choose a Dataset Split: Automatic Split (80% / 20%), Training Data (100%) or Testing Data (100%).
- Select Start Recording. Recording stops by itself when the time is up, or select Stop Recording.
- Select Listen to check it, then Save to Dataset.
Studio saves browser recordings as 16 kHz, mono WAV files.
Option 2: Upload files
- Select the upload button in Collect data. The Upload Audio Data window opens.
- Select Choose Files to pick files, or Upload Folder (Auto-Label by Folder) to pick a folder.
- Studio accepts .wav, .mp3, .flac, .ogg and .webm files.
- Set the label:
- Type a Label Name (Optional) to give every file the same label, or
- leave it empty and upload a folder: each sub-folder name becomes the label. For example, files in
dataset/yes/are labelled yes.
- Choose how to split the files: Smart Auto-Split (training and testing, 80 % training by default), Force Training or Force Testing.
- Select Upload & Split Audio.
| Folder on your computer | Label in Studio |
|---|---|
my-sounds/yes/clip01.wav | yes |
my-sounds/no/clip01.wav | no |
my-sounds/noise/room.wav | noise |
Labels are saved in lower case, so Yes and yes become the same label.
Option 3: Make more examples with Clone & Multiply
If one label has far fewer clips than the others, Studio can create varied copies.
- Select the clone button on the Data acquisition page. The Clone & Multiply Audio Data window opens.
- Choose the Target Label Folder.
- Choose a Cloning Mode:
- Add Clones (+N) adds a fixed number of new clips.
- Fill to Target Total adds clips until the label reaches a total.
- Start the cloning.
Each copy is slightly changed so it is not identical to the original: a little faster or slower (0.95–1.05×), shifted in time by up to 120 ms, a little louder or quieter (0.75–1.25×), with a small amount of background hiss. One in five new clips goes to the testing set.
Result
Your clips appear in the dataset list with their label, length, sample rate and split. Select a clip to play it.
Tips
- Add a noise label with background sound and quiet room silence (Studio suggests 30–60 seconds of silence).
- Keep clips about the same length as your Window size, usually 1 second.
- Aim for a similar number of clips in every label.