# Custom sound: Sound events (https://docs.cochl.ai/docs/core/sound-event-detection/custom-sound)



**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](https://docs.cochl.ai/docs/pro/speech-analysis/custom-speaker-profile) instead.

For a full list of built-in tags before training your own, see [Sound tags](https://docs.cochl.ai/docs/core/sound-event-detection/sound-tags).

## 1. Prepare your training data [#1-prepare-your-training-data]

### 1.1 Sort your files [#11-sort-your-files]

Sort your data into this layout:

```text
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](/images/core/custom-sound/target_labels.tsv).

  | Column                                | Description                                           |
  | ------------------------------------- | ----------------------------------------------------- |
  | **File name**                         | Audio 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*&#x2A; &#x2A;(optional)* | Sound class name. Single class only.                  |

* All audio files (`wav`, `mp3`, `flac`) sit directly in `target_data/`, next to `target_labels.tsv`.

<Callout type="info" title="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.
</Callout>

<Callout type="idea" title="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?
</Callout>

### 1.2 Zip it [#12-zip-it]

Create a zip of the `target_data` folder.

## 2. Train the tag [#2-train-the-tag]

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

### (1) Open the “Custom Sounds” page [#1-open-the-custom-sounds-page]

Log in to the [Cochl.Sense Dashboard](https://dashboard.cochl.ai/), switch to **Cochl.Sense Core** with the **Pro / Core** switch, and open **Custom Sounds** under **Account** in the sidebar.

<img src="/images/core/custom-sound/custom-sound-tab.png" alt="The Custom Sounds page in the Dashboard" />

### (2) Create a new tag [#2-create-a-new-tag]

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

<img src="/images/core/custom-sound/add-sound-tag.png" alt="The New Custom Sound dialog: tag name and the recordings archive" width="560" />

### (3) Training starts [#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:

| Status                 | Meaning                                                   |
| ---------------------- | --------------------------------------------------------- |
| `UPLOADED`             | File received.                                            |
| `FINE_TUNING_PREPARED` | Ready to train.                                           |
| `EPOCH_IN_PROGRESS`    | Training. Current and total epoch shown on the Dashboard. |
| `CONVERT_IN_PROGRESS`  | Converting to a deployable model.                         |
| `COMPLETED`            | Tag is ready to use.                                      |
| `FAILED`               | Training failed. The Dashboard shows the reason.          |

<img src="/images/core/custom-sound/training-progress.png" alt="The Custom Sounds list with each sound’s training status: Ready, Training with its progress, and Failed with the reason" />

### (4) Email on completion [#4-email-on-completion]

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

## 3. Use the trained tag in your Core project [#3-use-the-trained-tag-in-your-core-project]

### 3.1 Select the tag in your Core project [#31-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.

<img src="/images/core/custom-sound/select-custom-tag.png" alt="The New Core project dialog with a custom sound selected under Your Custom Sounds, next to built-in tags" width="560" />

### 3.2 Restart your app to pick up the updated model [#32-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 [#33-predict]

A custom tag comes back exactly like any built-in one, in the same [result schema](https://docs.cochl.ai/docs/core/sound-event-detection) — only `name` differs:

```json
{
  "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 [#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](mailto:support@cochl.ai).

## 5. Limitations [#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 [#see-also]

* [Sound event detection (Cochl.Sense Core)](https://docs.cochl.ai/docs/core/sound-event-detection)—feature overview
* [Custom sound: Speaker profile](https://docs.cochl.ai/docs/pro/speech-analysis/custom-speaker-profile)—the other custom sound type, on the Cochl.Sense Pro side
* [Resources](https://docs.cochl.ai/docs/core/resources)—model versioning details
