Manual:The recording format
Every saved recording is a pair of identically named files in data/recordings/: a .wav audio file and a .json metadata file right beside it. The format is plain JSON and standard WAV so scripts can load recordings directly with Python's json and soundfile regardless of the UI language. It is implemented in app/session.py and specified in docs/recording_format.md.
2026-12-05_19-05-12.wav mono WAV (default 48 kHz, 24-bit PCM)
2026-12-05_19-05-12.json metadata, fields, markers and segments (v1)
The filename stem is the local recording start time in YYYY-MM-DD_HH-MM-SS format. Do not rename a .wav file manually without renaming its .json file and updating the audio_file key inside it. A recording that has been stopped but not yet saved stays in data/unsaved/ (at most one at a time): in that draft JSON, saved_at is null and fields, extra_fields, other_notes and segments are added only when you press Save in Reviewing and notes.
Conventions¶
- Keys are always English, regardless of the UI language. Values are kept as typed (often Estonian).
- Times inside a recording are floats in seconds from the start of the WAV, rounded to 3 decimal places.
- Timestamps (
recorded_at,saved_at) are ISO 8601 strings with the local UTC offset, such as2026-12-05T19:05:12+02:00. - Booleans, numbers and unknowns: yes/no is JSON
true/false, unknown or empty isnull, and numbers are JSON floats.
Top-level keys¶
| Key | Type | Meaning |
|---|---|---|
format |
string | Always "hydrofon-recording". |
format_version |
int | Currently 1. |
audio_file |
string | Filename of the companion WAV file. |
recorded_at |
string | Recording start timestamp (ISO 8601). |
saved_at |
string or null |
Last save timestamp; null in an unsaved draft. |
duration_s |
float | Recording duration in seconds (3 decimal places). |
samplerate_hz |
int | Sample rate in hertz (default 48000). |
channels |
int | Channel count (1, mono). |
sample_format |
string | WAV subtype (PCM_24, PCM_16, PCM_32 or FLOAT). |
source |
string or null |
Input device description or source WAV path. |
fields |
object | The 11 standard metadata fields (table below). |
extra_fields |
object | Custom UPPERCASE: value fields added by the user (string or null). |
other_notes |
string or null |
Any free text written outside all fields. |
markers |
list | Every marker in chronological order (time_s, label). |
segments |
list | Intervals derived from state markers (start_s, end_s, label). |
notes_source |
string or null |
Exact text typed in tab 2 so the file can be reopened and edited cleanly. |
app_settings |
object or null |
Snapshot of app settings at recording time. |
Standard fields (fields) and custom fields (extra_fields)¶
The 11 standard headings from tab 2 map to fields:
| JSON key | Editor heading (en) | Type | Meaning |
|---|---|---|---|
location |
LOCATION |
string | Where the recording was made. |
hydrophone_depth_m |
HYDROPHONE DEPTH (m) |
float | Depth of the hydrophone below the surface, in metres. |
water_depth_m |
WATER DEPTH (m) |
float | Total water depth at the spot, in metres. |
distance_m |
DISTANCE (m) |
list of floats | Hydrophone-to-motor distance; multiple values record a sequence (such as start; closest; end). |
motor_present |
MOTOR |
bool | Whether a motor runs at some point during the recording. |
motor_type |
MOTOR TYPE |
string | Which motor was running. |
throttle |
THROTTLE |
string | Throttle setting or operating mode as typed. |
gain_db |
GAIN (dB) |
float | Preamplifier gain in decibels, needed to compare loudness across recordings. |
equipment |
EQUIPMENT |
string | Hydrophone, preamplifier, sound card and cable. |
conditions |
CONDITIONS |
string | Waves, current, temperature and other noise sources. |
notes |
NOTES |
list of strings | Bullet notes. |
Any unrecognised line of the form UPPERCASE NAME: value (all capitals, up to 40 characters before the colon) goes into extra_fields. Its value is stored as a string, or null if left empty, - or ?. Structured field-trial manifest keys (SESSION_ID, TRIAL_ID, DEVICE_ID, ENGINE_TIMELINE, QC_FLAGS, and so on) live here (see Field trials).
Markers (markers) and segments (segments)¶
markerslists every marker in chronological order. Eachlabelis either a configured state code (engine,background,interference; configurable under Settings → Recording) or free text for a custom marker (such asboat sankor5 m).segmentsis computed on Save from state markers only. A state marker means “from this point on, the state is X” and lasts until the next state marker or the end of the file (end_sis capped atduration_s). Custom markers do not end or split a segment.- Training and Clip analysis read ground truth from
segments. Train/test splits are always done by recording, never by putting segments from the same file on both sides (see Splits).
Trimmed example JSON¶
{
"format": "hydrofon-recording",
"format_version": 1,
"audio_file": "2026-12-05_19-05-12.wav",
"recorded_at": "2026-12-05T19:05:12+02:00",
"saved_at": "2026-12-05T19:20:41+02:00",
"duration_s": 62.4,
"samplerate_hz": 48000,
"channels": 1,
"sample_format": "PCM_24",
"source": "Microphone (Razer Seiren Emote) (MME)",
"fields": {
"location": "kuressaare taltechi bassein",
"hydrophone_depth_m": 3.0,
"water_depth_m": null,
"distance_m": [10.0, 3.0, 10.0],
"motor_present": true,
"motor_type": null,
"throttle": null,
"gain_db": 8.0,
"equipment": null,
"conditions": null,
"notes": ["esimene test", "paat uppus", "algus vaikne 10sec"]
},
"extra_fields": {"TEMPERATUUR": "12 C"},
"other_notes": "Milline katastroof",
"markers": [
{"time_s": 3.2, "label": "engine"},
{"time_s": 20.0, "label": "paat uppus"},
{"time_s": 41.5, "label": "background"}
],
"segments": [
{"start_s": 3.2, "end_s": 41.5, "label": "engine"},
{"start_s": 41.5, "end_s": 62.4, "label": "background"}
],
"notes_source": "KOHT: kuressaare taltechi bassein\n\n…",
"app_settings": {"...": "full app settings at recording time"}
}
See also¶
- Reviewing and notes: editing markers and notes in the app
- The data folder: full layout of the data folder
- Field trials: manifest fields and field-trial procedures
- Training data: how recordings enter training