Skip to content
Sound event detection

Custom sound: Sound events

Train your own sound tag from labeled clips and deploy it to Cochl.Sense Core projects.

Custom sound: Sound events lets you train a sound tag that isn’t in our built-in catalog. You upload labeled audio clips, our pipeline fine-tunes a model on your data, and the new tag becomes available to your Cochl.Sense Core projects.

This feature is available for Cochl.Sense Core projects only. Cochl.Sense Pro doesn’t support Custom sound: Sound events. If you need custom voice identification on Pro, see Custom sound: Speaker profile instead.

For a full list of built-in tags before training your own, see Sound tags.

1. Prepare your training data

1.1 Sort your files

Sort your data into this layout:

target_data/
├── target_labels.tsv
├── your_audio_file_01.wav
├── your_audio_file_02.wav
└── ...
  • target_data/ — the top-level folder containing everything.

  • target_labels.tsv — metadata for each clip. Download the template.

    ColumnDescription
    File nameAudio filename used as training data.
    Start time (sec)Start of the segment to use. ≥ 0 and < End time.
    End time (sec)End of the segment. ≤ File length.
    File length (sec)Total duration. Used to verify labels match the file.
    Class name (optional)Sound class name. Single class only.
  • All audio files (wav, mp3, flac) sit directly in target_data/, next to target_labels.tsv.

Note

  • Label Requirements: Your target_labels.tsv file must meet at least one of the following conditions:
    • Contain 100 or more rows (labels).
    • Have a total labeled duration of at least 2 minutes.
  • Label Merging: Labels that overlap or are separated by a very short interval (less than 0.1 seconds) will be automatically merged into a single label. The label requirements are checked against these merged labels.
  • Training Time: Training is expected to take approximately 30 minutes if there is no queue.

Good data preparation practices

Here is a list of considerations from our researchers that can greatly improve the quality of your dataset:

  1. Recording environment consistency: Was the data recorded with the actual service equipment? (e.g., the actual microphone or recorder)
  2. Data Diversity
    • Are all collected variations within the intended scope of the target sound? (e.g., only the specific alarm you want to detect).
    • Does the data include variations in distance, direction, and intensity?
    • Does the data include various real-world background noises? (e.g., office noise or traffic)
  3. Negative samples: Are there enough "unlabeled" portions? These portions, referred to as "negative samples", should only contain various background noises without the target sound.
  4. Labeling Accuracy
    • Do the label start/end points match the sound precisely? Try to minimize silence before/after the sound.
    • Are sounds with gaps of more than 0.5s split into distinct labels so each sound event is clearly separated?

1.2 Zip it

Create a zip of the target_data folder.

2. Train the tag

You train the tag on the Dashboard. Training runs on Cochl’s infrastructure.

(1) Open the “Custom Sounds” page

Log in to the Cochl.Sense Dashboard, switch to Cochl.Sense Core with the Pro / Core switch, and open Custom Sounds under Account in the sidebar.

The Custom Sounds page in the Dashboard

(2) Create a new tag

Click New Custom Sound, enter a Tag name, drop your target_data.zip under Recordings (archive), and click Upload and train. Keep the tab open until the upload finishes.

The New Custom Sound dialog: tag name and the recordings archive

(3) Training starts

If validation passes, training runs on our infrastructure. You can monitor progress on the Dashboard, which shows each status in plain words (Uploaded, Preparing, Training with the epoch count, Converting, Ready, or Failed with the reason). The API reports these statuses:

StatusMeaning
UPLOADEDFile received.
FINE_TUNING_PREPAREDReady to train.
EPOCH_IN_PROGRESSTraining. Current and total epoch shown on the Dashboard.
CONVERT_IN_PROGRESSConverting to a deployable model.
COMPLETEDTag is ready to use.
FAILEDTraining failed. The Dashboard shows the reason.
The Custom Sounds list with each sound’s training status: Ready, Training with its progress, and Failed with the reason

(4) Email on completion

You’ll get an email when training succeeds or fails.

3. Use the trained tag in your Core project

3.1 Select the tag in your Core project

Once training reaches COMPLETED (Ready on the Dashboard), the sound appears under Your Custom Sounds in the New Core project dialog; select it together with the built-in tags. You can include multiple custom tags in one project — the SDK delivers a unified model.

A Core project keeps the tags it was created with. Training a new sound doesn’t add it to existing projects: to use it, create a new Core project with it selected, and initialize the SDK with that project’s key.

The New Core project dialog with a custom sound selected under Your Custom Sounds, next to built-in tags

3.2 Restart your app to pick up the updated model

With the new project’s key, the SDK downloads the model that includes your custom tag on the next initialization. How you trigger it depends on your SDK version:

  • SDK v1.2.0 and above: restart your app — the SDK checks for and pulls the new model automatically.
  • SDK v1.1.0 and below: delete the locally cached model, then restart. The SDK re-downloads the model.

3.3 Predict

A custom tag comes back exactly like any built-in one, in the same result schema — only name differs:

{
  "start_time": 1.0,
  "end_time": 3.0,
  "prediction_time_ms": 23,
  "tags": [
    {
      "name": "YOUR_CUSTOM_SOUND_TAG",
      "probability": 0.87
    }
  ]
}

Nothing in your code needs to change: a custom tag is read from tags[] like any other.

4. Troubleshooting

If the upload fails, walk through this checklist:

  1. Audio files are wav, mp3, or flac.
  2. target_labels.tsv is inside the zip.
  3. target_labels.tsv header and column types match the template.
  4. Every filename in target_labels.tsv exists in the zip.
  5. No corrupted .wav files.

If a tag’s training status stalls or hits FAILED, re-upload or contact support@cochl.ai.

5. Limitations

  • Cochl.Sense Core only. Custom sound: Sound events tags do not run on Cochl.Sense Pro.
  • Project-scoped. All devices using the same project key share the same set of custom tags.
  • First-run download. The model download happens the first time the SDK initializes after a new tag is added. Plan for a small one-time download on each device.

See also

Last updated

Need help? Contact support@cochl.ai

For Cochl.Sense Core, include the SDK version and the platform (Python, C++, or Android).

Powered by Cochl