# Output format (https://docs.cochl.ai/docs/nano/output-format)



Nano reports one result per inference window: the window’s start and end time, the time the firmware took to process it, and the tags detected in it with their probabilities. How the result leaves the chip depends on the port and on how your firmware integrates it, so confirm the exact output for your chip with us.

As an example, the STM32 port (firmware v0.2.0 and later) prints each result as JSON through the board’s `printf` output (typically the serial console):

```json
{
    "start_time": 16,
    "end_time": 18,
    "prediction_time_ms": 399,
    "tags": [
        {
            "name": "Alarm",
            "probability": 0.8125
        }
    ]
}
```

| Field                | Meaning                                              |
| -------------------- | ---------------------------------------------------- |
| `start_time`         | Start of this window, in seconds.                    |
| `end_time`           | End of this window, in seconds.                      |
| `prediction_time_ms` | Time the firmware took to process the window, in ms. |
| `tags[].name`        | Detected tag, e.g. `Alarm`.                          |
| `tags[].probability` | Confidence for that tag, `0.0`–`1.0`.                |

Values are JSON numbers with up to six significant digits, so a whole number prints without a decimal point (`16`, not `16.0`). `tags` is `[]` when nothing crossed its threshold — a normal result, emitted once per window so timestamps stay continuous.

The key order, names and number types match the current [Cochl.Sense Core](https://docs.cochl.ai/docs/core/sound-event-detection) release (v1.6.1), so the same parsing code reads both. There is no `timestamp`, `summaries` or `error` field: an MCU has no wall clock, Result Summary is a Cochl.Sense Core feature, and results carry no per-result error channel.

<Callout type="warn" title="STM32 firmware v0.1.x and earlier">
  Older STM32 firmware writes every value as a JSON string, names the latency field `prediction_time`, puts `tags` first, and prints a `---------NEW FRAME---------` line before each result — the same as Cochl.Sense Core v1.6.0 and earlier. For example, `"probability": "0.812500000"`, `"start_time": "16.0"`, `"prediction_time": "399"`. If you still run that firmware, convert the strings before comparing values.
</Callout>
