# Audio insights (https://docs.cochl.ai/docs/pro/audio-insights)



**Audio insights** is a high-level summary of an audio file. Instead of asking *what sounds are present* ([sound event detection](https://docs.cochl.ai/docs/pro/sound-event-detection)) or *what was said* ([speech analysis](https://docs.cochl.ai/docs/pro/speech-analysis)), audio insights answers *what’s going on*: the environment, the dominant situation, notable events, and the topic of any speech.

Audio insights combines those two analyses into a single semantic summary, so an audio file becomes searchable, indexable text—useful for podcasts, interviews, lectures, security footage, and any archive too large to listen through manually.

Audio insights is available on **Cochl.Sense Pro projects only**.

## 1. What audio insights returns [#1-what-audio-insights-returns]

Audio insights produces a single summary object for the entire file (no time chunks). Inside the Integration API response, it appears under the `audio_insights` key:

```json
{
  "audio_insights": {
    "status": "success",
    "result": {
      "contains_speech": true,
      "detected_language": "en",
      "primary_sound_environment": "Speech-dominated, likely an interview or discussion",
      "situation_summary": "The audio captures an interview or discussion involving male speakers...",
      "notable_events": ["Male_speech", "Speech"],
      "speech_content_summary": "The discussion revolves around Christian Bale's early career...",
      "keywords": ["Christian Bale", "Empire of the Sun", "Spielberg", "acting", "film production"]
    }
  }
}
```

| Field                       | Meaning                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `contains_speech`           | Whether meaningful speech was detected. When `false`, `detected_language` and `speech_content_summary` are set to `"N/A"` — the fields are still present.                                                                                                                                                                                                                                                                                                           |
| `detected_language`         | Spoken language as a lowercase language code (e.g. `"en"`, `"ko"`), mostly [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) ([supported languages](https://docs.cochl.ai/docs/pro/speech-analysis#2-supported-languages)). When the recording mixes more than one language, the codes are joined with commas and no spaces (e.g. `"en,ko"`). `"N/A"` when there is no speech. See [speech analysis › Code-switching](https://docs.cochl.ai/docs/pro/speech-analysis#code-switching). |
| `primary_sound_environment` | A short phrase describing the dominant acoustic scene.                                                                                                                                                                                                                                                                                                                                                                                                              |
| `situation_summary`         | One-paragraph natural-language description of what’s happening.                                                                                                                                                                                                                                                                                                                                                                                                     |
| `notable_events`            | The sound tags that recur in the sound event detection results (a tag seen in only one or two windows is left out).                                                                                                                                                                                                                                                                                                                                                 |
| `speech_content_summary`    | One-paragraph summary of *what* the speech is about; `"N/A"` if there is no speech.                                                                                                                                                                                                                                                                                                                                                                                 |
| `keywords`                  | Topic and named-entity keywords for the file.                                                                                                                                                                                                                                                                                                                                                                                                                       |

Audio insights is written by a language model, so the wording of the text fields varies from run to run; treat them as free text. The block also has an `item_ids` object (identifiers used for result feedback), which you can ignore.

## 2. Run audio insights [#2-run-audio-insights]

### Via the Dashboard [#via-the-dashboard]

1. On the [Dashboard](https://dashboard.cochl.ai/), pick your Cochl.Sense Pro project at the top of the sidebar, then open **Audio insights** under **Project**.
2. Drop your file (or record, or pick a sample) and click **Analyze**. This page runs audio insights on its own, which is free for now ([Usage & pricing](https://docs.cochl.ai/docs/pro/getting-started#5-usage--pricing)). To get sound events or a transcript of the same file, run it on the **Sound event detection** or **Speech analysis** page, or combine the services in one request through the API or the Python library.
3. When the job finishes, the result shows the summary, what was said, the sound environment and language, and the notable events, each with its category and a short description. **Export** has **Copy JSON** and &#x2A;*Result (JSON)** for the full result. **Run this from your code** under the result shows the same request in cURL and Python.

<img src="/images/pro/audio-insights/dashboard-summary.png" alt="An Audio insights result in the Dashboard: the summary, what was said, the sound environment and language, and the notable events" />

### Via the Python library (recommended) [#via-the-python-library-recommended]

Use the `IntegratedApi` helper from the `cochl` library. It handles authentication, file upload, and SSE consumption.

```python
from cochl.sense import IntegratedApi, IntegratedApiOptions

api = IntegratedApi('YOUR_API_PROJECT_KEY')

job = api.analyze_file(
    'your_file.wav',
    IntegratedApiOptions(
        sound_event_detection=False,  # audio insights works on its own;
        speech_analysis=False,        # turn these on to also get (and pay for) their results
        audio_insights=True,
    ),
)

# Block until the job finishes, then return the final result dict.
result = api.get_completed_result(job['job_id'])
print(result['audio_insights']['result']['situation_summary'])
```

Running this on a 30-second interview clip prints something like:

```text
The audio captures an interview or discussion where Christian Bale reflects on his early career and notable film roles.
```

And `result` itself looks like (abbreviated):

```json
{
  "audio_insights": {
    "status": "success",
    "result": {
      "contains_speech": true,
      "detected_language": "en",
      "primary_sound_environment": "Speech-dominated, likely an interview or discussion",
      "situation_summary": "The audio captures an interview or discussion where Christian Bale reflects on his early career and notable film roles.",
      "notable_events": ["Male_speech", "Speech"],
      "speech_content_summary": "The discussion centers on Bale's experience filming Empire of the Sun with Steven Spielberg and the influence of his father on his approach to acting.",
      "keywords": ["Christian Bale", "Empire of the Sun", "Spielberg", "acting", "early career"]
    }
  },
  "metadata": { "audio": { ... }, "warnings": [] }
}
```

The name in this summary comes from what is said in the clip, not from a speaker profile.

Audio insights can run on its own. The server analyzes sound events and speech internally to write the summary; their results appear in the response only when you also set `sound_event_detection=True` or `speech_analysis=True`. See [Getting Started → Valid service combinations](https://docs.cochl.ai/docs/pro/getting-started#4-valid-service-combinations).

<Card title="&#x22;cochlearai/cochl-sense-py&#x22;" description="&#x22;More runnable sample scripts.&#x22;" href="https://github.com/cochlearai/cochl-sense-py" />

#### Advanced: stream progress yourself [#advanced-stream-progress-yourself]

`get_completed_result` blocks until the job finishes and hides the SSE stream. If you want to render a progress bar, display partial results as they arrive, or pipe events into your own UI, subscribe to the stream directly instead:

```python
from urllib.request import Request, urlopen

from cochl.sense import IntegratedApi, IntegratedApiOptions


def main():
    # 1. Authenticate with the project key.
    api = IntegratedApi('YOUR_API_PROJECT_KEY')

    # 2. Choose which analyses to run.
    options = IntegratedApiOptions(
        sound_event_detection=True,
        speech_analysis=True,
        audio_insights=True,
    )

    # 3. Upload the file — the server enqueues a job and returns its id.
    job: dict = api.analyze_file('YOUR_AUDIO_FILE_PATH', options)
    if 'job_id' not in job:
        print('ERROR: analyze_file did not return a job_id')
        return
    job_id: str = job['job_id']

    # 4. Subscribe to the SSE stream. Each line is either:
    #      event: metadata | progress | partial_result | completed | error
    #      data:  <JSON payload>
    #    Empty lines separate events. The first event is always `metadata`
    #    (audio info and warnings); audio insights arrives only in `completed`.
    request: Request = api.create_event_stream_request(job_id)
    with urlopen(request) as response:
        for line in response:
            line = line.decode('utf-8').strip()
            if line.startswith('event: ') or line.startswith('data: '):
                print(line)


if __name__ == '__main__':
    main()
```

Use this pattern only when you actually need progress events. For the usual “upload, wait, get the dict” flow, `get_completed_result(job_id)` is shorter and handles the stream for you.

## 3. When to use audio insights [#3-when-to-use-audio-insights]

Audio insights is the right tool when you need to:

* **Index a large archive** of recorded audio so it’s searchable by topic, not just by raw transcript
* **Triage**—quickly tell whether a file is worth a deeper review (a meeting recording vs. silence, a security clip vs. ambient noise)
* **Generate human-readable previews** for a UI showing many audio items, where a transcript would be too long
* **Tag and categorize** uploads automatically based on their content and environment

If you need precise per-event timing, use [sound event detection](https://docs.cochl.ai/docs/pro/sound-event-detection) directly. If you need full text, use [speech analysis](https://docs.cochl.ai/docs/pro/speech-analysis). Audio insights is the summary layer above those.

## 4. Combine with other analyses [#4-combine-with-other-analyses]

Audio insights is written from sound events and speech that the server analyzes for it, so you can turn it on alone or with one or both of the other analyses. Turn on `sound_event_detection` or `speech_analysis` as well when you also want their detailed results; only sound event detection is billed, and audio insights and speech analysis are free for now ([Usage & pricing](https://docs.cochl.ai/docs/pro/getting-started#5-usage--pricing)). The summary doesn’t use speaker profile names, even when speaker profiles are on; a name can still appear if it is spoken in the audio.

## See also [#see-also]

* [Sound event detection](https://docs.cochl.ai/docs/pro/sound-event-detection)
* [Speech analysis](https://docs.cochl.ai/docs/pro/speech-analysis)
