Docs · v0.5.3
Recordings
This page covers what Trunk Recorder Pro saves for each call: where the files go and how they are named, what is in the call JSON, how the audio is processed, M4A files, the tags in the audio files, which files are kept or deleted once plugins have uploaded them, the RAM spool, and the rules that decide which calls are kept at all. Capturing what the radios receive (IQ captures) is on Captures.
Every setting mentioned here is on Setup → Recording, and is listed with its key and default in the recording configuration reference.
Where calls go
Calls are saved under the Recordings folder (captureDir). The default is TrunkRecorderPro
in your home folder. In the config, give an absolute path: ~ isn't expanded.
Out of the box, files are laid out as Trunk Recorder lays them out, in local time:
<recordings folder>/<short name>/<year>/<month>/<day>/<talkgroup>-<start epoch>_<frequency>.wavFor example, a call on talkgroup 1201 at 858.4875 MHz on a system with the short name county,
on 6 October 2026:
~/TrunkRecorderPro/county/2026/10/6/1201-1791298712_858487500.wav
~/TrunkRecorderPro/county/2026/10/6/1201-1791298712_858487500.json- Month and day aren't zero-padded (
10/6, not10/06), as in Trunk Recorder. - The short name is the system's (or the conventional system's) Short name.
- Calls on a two-slot channel (P25 Phase 2 and DMR) get the slot added:
..._858487500.1.wav. - The frequency is in Hz, and the epoch is the call's start in seconds since 1970 (UTC).
The browser version doesn't write files to a folder: it keeps calls in the browser's own storage.
Choosing folders and file names
To lay files out differently, set Folders and file names (filenameFormat) under Call
rules → Files. It is a path under the recordings folder, built from tokens such as
{talkgroup} and {time:%Y}, with / making folders. Leave it empty for the layout above.
The editor
The field shows the current format as a row of chips, with an Example: path below it as it
would be for a call right now. macOS / Linux and Windows switch the example's separators
(the recorder takes / or \ as a folder either way). Click Edit… to change it:
- Drag chips from the palette into the format, drag them around to reorder, and drag one back out (or press Delete) to remove it.
- Folders and joiners has
/ folder,-,_,., a space, and a box for your own text (Add text). Characters that can't be in a file name (/ \ : * ? " < > | { }) aren't accepted there. - Talkgroup, Call and Radio hold the call tokens. Start time holds time pieces, with Local or UTC.
- Start from… loads a ready-made layout: "Trunk Recorder's layout", "By talkgroup, then day", "By day, named by talkgroup" or "By category (UTC)".
- Edit as text shows the format as a string you can type or paste.
- Reset to default goes back to the default layout.
Problems, such as an unknown token or a { without a }, are listed under the field in red.
Each system and conventional system can have its own format, under Archive in the Recording group of its card; left at default, it follows the Recording tab's.
Tokens
The tokens ({short_name}, {site}, {talkgroup}, {time:%Y}, …), what each gives, and how a
name is made safe (-call_<call number> added, : and unsafe characters replaced, no climbing out
of the recordings folder) are listed in File names.
"filenameFormat": "{short_name}/{time:%Y-%m-%d}/{talkgroup}-{talkgroup_alpha_tag}/{time:%H%M%S}_{freq}"What each call saves
| File | When |
|---|---|
<name>.wav |
8 kHz mono 16-bit PCM. Written unless nothing keeps or needs it (see The archive) |
<name>.json |
The call JSON |
<name>.m4a |
With Keep .m4a, or when an upload plugin wants M4A (then deleted once the plugins are done, unless kept) |
The call JSON
Each call's JSON uses Trunk Recorder's field names, so tools written for Trunk Recorder read it. It is written on a single line.
| Field | Meaning |
|---|---|
call_num |
The call's number |
transmission_id |
The same on every copy of one transmission saved from a system's sites: <shortName>-<talkgroup>-<radio>-<start ms> (the first radio heard talking on the best copy, with half a second of its audio, 0 for none; the first copy's start). With conversations on, the call's first transmission names it |
end_reason |
Why it ended: terminator (its voice channel's, with conversations off: P25, DMR, NXDN), squelch (analog, with conversations off: its squelch shut for half a second), next_transmission (the next one's audio on its channel), timeout (nothing heard of it for the call timeout), too_long (it carries on in the next call), reassigned (its channel given to another talkgroup, or a conventional channel's to another row), stopped (recording stopped). The log's Concluding Recorded Call line ends with it too |
freq |
Frequency, Hz |
freq_error |
How far off the channel the voice was, Hz (0 when not measured). Conventional P25, DMR and NXDN calls have it too; conventional analog receivers don't measure one |
signal, noise |
The channel's power during the call and the noise floor under it, dBFS, one decimal; null if not measured |
snr |
signal minus noise, dB |
clean_voice_pct |
Share of vocoder frames decoded cleanly, %; null for analog calls |
source_num |
The radio it was heard on: its position in sources, counting from 0 |
recorder_num |
Trunked: the recorder slot. Conventional: the index of the channel (frequency) it came on |
tdma_slot, phase2_tdma |
The slot, and 1 for a P25 Phase 2 call |
start_time, stop_time |
Start and end, seconds since 1970 |
start_time_ms, stop_time_ms |
The same in milliseconds |
emergency, encrypted |
1 or 0 |
algid, key_id |
P25: the cipher an encrypted call's voice named, as numbers (132 = 0x84, AES-256); -1 when none was heard |
decrypted |
1 when some of an encrypted call's voice was decrypted with a key, else 0 |
clock_off |
true when the clock calls are stamped by was off as the call ended: monitor.clockWarnMs (250 ms) or more from the time server (or, without one, a radio system's clock), or the operating system said it wasn't synchronized (see Clock). Then its times may be off too. Absent otherwise |
priority, mode, duplex |
As Trunk Recorder writes them (mode and duplex are always 0 on conventional calls) |
call_length, call_length_ms |
Length of the saved audio, seconds (rounded) and milliseconds |
talkgroup |
Talkgroup number. On a conventional channel, the row's TG Number if it has one, else the talkgroup the air named, else a default from the frequency: see Talkgroup numbers |
talkgroup_ota |
Conventional P25, DMR and NXDN calls only: the talkgroup the air named, whenever it named one, even when equal to talkgroup. Absent otherwise, and on trunked calls |
talkgroup_tag |
The talkgroup's alpha tag |
talkgroup_description |
Its description |
talkgroup_group_tag |
Its tag |
talkgroup_group |
Its category |
nac |
P25: the NAC its voice carried on a conventional channel, its site's on a trunked system, in hex as radios, RadioReference and channel files write it ("293", a string); "" for none |
color_code |
DMR colour code; -1 for none |
ran |
NXDN RAN; -1 for none |
tone_mode, tone_detected, tone_confidence |
Analog conventional calls' tone: see Tones |
audio_type |
analog, digital or digital tdma |
system_type |
The kind of system it came on: p25, smartnet, dmr, nxdn, edacs or conventional (the same words plugins get) |
voice_mode |
What its voice was: p25, p25_phase2, dmr, nxdn48, nxdn96, provoice, fm or am. With system_type, a conventional P25 call is conventional / p25, a SmartNet analog one smartnet / fm |
short_name |
The system's short name |
site |
The site the kept copy was heard on (a system of one site: its short name). Not on conventional calls. A call heard on several sites is saved once |
site_id |
The id of that site in the config: the same across renames. Not on conventional calls |
sites |
Every site the call was recorded on (id and name), site first. Not on conventional calls |
system_id |
The system's id in the config: the same across renames |
patched_talkgroups |
Only when the talkgroup was patched with others: all of them |
freqList |
One entry for the call: freq, time, pos (0), len (seconds of audio), error_count (FEC errors), spike_count (0) |
errorList |
Per 10 s of audio: pos, len, frames, error_count, bad_frames (repeated, muted or erased), max_frame_errors |
srcList |
Each radio heard: src (unit ID), time, pos (seconds into the call), emergency, signal_system (MDC1200 or FLEETSYNC for an analog radio's ID, else empty), tag (its name), tag_ota (its talker alias), and lat and lon when it sent its GPS position (P25, Motorola and L3Harris radios) |
tones |
Only when the voice carried any: each in-band tone in order, type (dtmf, knox, call_progress, or tone for a single tone), value (the digit, 350+440, or the tone's Hz), pos and len (seconds), src (the radio talking, 0 if not known), origin (frame: named by a half-rate vocoder's tone frames, so P25 Phase 2, DMR and NXDN; audio: found in the audio, so P25 Phase 1, analog FM and AM, and half-rate voice sent without tone frames), and level (dBm0, tone frames) |
tone_patterns |
Only when the voice carried any: what the tones make up, in order. pattern (two_tone, long, hi_low warble, pulsed, digits DTMF / KNOX, morse (a CW ID), sequence of short tones, beep), tones (Hz: two-tone A then B), lengths (seconds; Morse: its dot), digits and knox for digit strings (Morse: the text), cycles (hi-low tones, pulses), format (a two-tone page's timing, by Midian's paging timings: Quick Call II 1 s + 3 s, Quick Call II battery save 2.7 s + 0.8 s, Quick Call I 1 s, 0.2 s gap, 1 s, GE Type 99 1 s + 1.5 s, NEC A, …), pos, len, src, origin, text (it in words: two-tone 781.25 → 875 Hz, 0.98 + 2.98 s (Quick Call II)), and signals (the ids of the system's signals it is) |
signals |
Only when the call carried any of its system's signals: their ids, in the order first heard |
Compared with Trunk Recorder's JSON:
transmission_id,snr,clean_voice_pct,nac,ran,talkgroup_ota,system_type,voice_mode,errorList,tones,tone_patterns,signalsand the three tone fields are additions.signalandnoiseare in dBFS with a decimal, not whole numbers.freqListhas one entry for the whole call rather than one per transmission.- Trunk Recorder pretty-prints its JSON; this is one line. JSON readers don't mind.
How tag is chosen for each unit (your unit names first, or talker aliases first) is covered in
Talkgroups and units.
Audio processing
Before a call is saved:
- Short transmissions and encrypted ones are cut out. Transmissions shorter than Shortest transmission, s are removed. Encrypted transmissions are always removed: what a vocoder makes of them is noise.
- Loudness is evened out (Even out loudness, on by default). Each call's speech is brought to about -14 LUFS, louder than Trunk Recorder's uploads (about -18.6). The gain is limited to between -18 dB and +24 dB, and a limiter keeps peaks below -2.5 dBFS. A call with less than 0.2 s of speech (a keyed radio sending silence, a squelch tail) is left alone rather than having its hiss brought up.
- Your level adjustment is applied: Digital level, dB or Analog level, dB (-20 to +20 in the interface).
Analog FM audio is also de-emphasised (750 µs) and high-passed at 300 Hz when it is demodulated, which removes CTCSS tones from what you hear.
M4A files
M4A (AAC audio) is about a tenth the size of WAV. Some upload plugins send M4A, and Keep .m4a
(archiveM4a) keeps one of every call.
Nothing is built in for this: Trunk Recorder Pro runs an encoder installed on the computer. The M4A audio panel on the Recording tab picks it:
- Automatic (ffmpeg, then afconvert, then fdkaac) uses the first one it finds. ffmpeg works
everywhere;
afconvertcomes with macOS. Programs in/opt/homebrew/bin,/usr/local/bin,/usr/binand/snap/binare found even when the app wasn't started from a shell. - Or name one: ffmpeg, afconvert (macOS), fdkaac, or None: WAV only.
- Bitrate, kbps: 32 by default, as Trunk Recorder uses. ffmpeg and afconvert encode 16 kHz mono AAC.
The panel's header shows which encoder was found, or "no encoder found". If Keep .m4a
is on and there's no encoder, the log says No M4A encoder found (install ffmpeg): calls are kept as WAV only. If encoding a call fails, the error is logged and the call keeps its WAV. Either
way, a call whose M4A is to be kept but couldn't be made keeps its WAV in its place.
The WAV is fed to the encoder from memory. If the call's WAV isn't being kept, it is never written to disk at all.
Tags in the audio files
Every call's WAV and M4A carry tags, so a music player shows what the call was and a script can read it without opening the call JSON:
| Tag | ID3 frame (WAV) | MP4 atom (M4A) | Value |
|---|---|---|---|
| Title | TIT2 |
©nam |
The talkgroup's alpha tag, or its number |
| Artist | TPE1 |
©ART |
The system's short name |
| Date | TDRC |
©day |
The start, local time: 2026-11-25T14:03:11 |
| Genre | TCON |
©gen |
The talkgroup's group (left out when there is none) |
| Comment | COMM |
©cmt |
For people: TG 101 · 851.0125 MHz · Units 1234 (Engine 5), 5678 · Emergency |
TALKGROUP |
TXXX |
---- |
The talkgroup number |
UNITS |
TXXX |
---- |
The radio IDs that talked, in order: 1234, 5678. Left out when no radio was identified |
FREQUENCY |
TXXX |
---- |
Hz |
EMERGENCY |
TXXX |
---- |
1, only on an emergency call |
ENCRYPTED |
TXXX |
---- |
1, only on an encrypted call |
Title, artist and date are the three tags Trunk Recorder writes. The WAV's tags are an ID3v2.4 tag
in an id3 chunk after the audio. The M4A's are iTunes-style tags, with the last five as
com.apple.iTunes freeform atoms, and they are the same whichever encoder made the file.
In Python, mutagen reads both. This finds calls on which no radio was identified:
from mutagen.wave import WAVE
from mutagen.mp4 import MP4
def units(path):
if path.endswith(".wav"):
frame = (WAVE(path).tags or {}).get("TXXX:UNITS")
return frame.text[0] if frame else ""
value = (MP4(path).tags or {}).get("----:com.apple.iTunes:UNITS")
return value[0].decode() if value else ""The {source_num} file name token is the number of the radio source (the SDR) that recorded the
call, as in Trunk Recorder, not the talking radio's ID. The talking radios are in the UNITS tag
and in the call JSON's srcList.
The archive: what's kept and what's deleted
Four settings in Setup's Recording tab, under Archive, decide what of a call stays in the recordings folder once the plugins are done with it. Each system can set them again for itself (under Archive in the Recording group of its card).
| Setting | Key | Default | On | Off |
|---|---|---|---|---|
| Keep .wav | archiveWav |
on | The WAV is kept once the plugins are done | It's deleted then (with no plugin, never written) |
| Keep .m4a | archiveM4a |
off | An M4A of each call is kept once the plugins are done. Needs an encoder | The M4A made for a plugin that uploads M4A is deleted once the plugins are done |
| Keep call JSON | callLog |
on | The call JSON is kept | It's deleted once the plugins are done |
| Keep when a plugin fails | archiveFilesOnFailure |
on | If any plugin reports a failure, every file the call has (WAV, M4A, JSON, frames) is kept anyway | Failures change nothing |
What "the plugins are done" means:
- Every plugin that takes finished calls answers on each call: done (it uploaded, streamed or handled it), skipped (it deliberately didn't, for example a system it has no settings for, an encrypted call or a filtered talkgroup) or failed (it gave up). Done and skipped count the same: the plugin is finished with the call. Only a failure matters, and only with Keep when a plugin fails on.
- Nothing is deleted until every one of them has answered.
- A plugin that hasn't answered within an hour counts as having failed.
- With no plugin taking calls there's nothing to wait for: the Keep settings alone decide, as soon as the call ends. With Keep .wav and Keep .m4a off and no plugin, a call's audio is never saved at all; Setup says so under the settings.
- Keep when a plugin fails is greyed out when Keep .wav, Keep .m4a and Keep call JSON are all on: everything is kept anyway.
Some examples:
- Keep everything (the default): leave the first three on (Keep .m4a too, if you want M4As). Plugins get each call and the recordings folder keeps it all.
- Upload calls without keeping them: turn off Keep .wav, Keep .m4a and Keep call JSON, and leave Keep when a plugin fails on. Calls a plugin failed on stay, so you can see what went wrong and send them again. Calls the plugins skipped (a system they have no settings for, say) are deleted like the rest: if a system's calls should be kept, turn its Keep .wav back on under Archive on its card.
- Keep only the call log: turn off Keep .wav and Keep .m4a and leave Keep call JSON on.
- Keep only the M4A: turn off Keep .wav and turn on Keep .m4a.
Also:
- An M4A made only for a plugin (with Keep .m4a off) is deleted once the plugins are done.
- A call's audio is never all lost when some of it is to be kept: if the M4A is to be kept and none could be made, the WAV stays in its place.
- Nothing that won't be kept is written when no plugin takes calls. With plugins, the files they need are written (to the RAM spool, if it's on) and deleted once they're done.
These are desktop settings; the browser version keeps calls itself and doesn't show them. Plugins and their settings are covered in Plugins.
The RAM spool
A call that is only uploaded, then deleted, still gets written to disk and erased again. On an SSD or SD card that runs for months, that's wear for nothing. The RAM spool keeps those files in memory instead.
Turn on RAM spool on the Recording tab and set RAM spool size, MB (256 by default). It takes effect the next time recording starts.
- macOS: the app makes a RAM disk of that size (no administrator password needed), mounted out
of sight inside its data folder (
~/Library/Application Support/trunk-pro/spool). It doesn't appear in the Finder sidebar and isn't indexed by Spotlight. - Linux: run as a systemd service with a
RuntimeDirectory=(as the packaged service is), the service's own runtime folder under/run; otherwise a folder in/dev/shm. Both are RAM-backed. The app keeps its use under the size you set. If/dev/shmisn't a RAM filesystem on your machine, setramSpool.dirin the config to a tmpfs mount of your own. - Other systems (Windows): there's no automatic spool; set
ramSpool.dirto a RAM-backed folder if you have one.
What goes in it: only the files that may be deleted, because of the archive settings above. Files that will be kept go straight to the recordings folder. If a plugin fails and Keep when a plugin fails is on, the call's files are moved from the spool to the recordings folder.
When things go wrong, nothing is lost:
- Full: when the spool has less than 5% free, calls are written to the recordings folder as if there were no spool.
- Can't be made: recording goes ahead without it, and the log says
No RAM spool (...): calls go to the recordings folder. - Restarts: the spool outlives the app (not the computer), so plugins still find calls they had queued.
- Left behind: files still in the spool after two hours (a plugin that never reported) are moved to the recordings folder. This is checked every ten minutes.
- Turned off: the next time recording starts, anything left in the app's spool is moved to the recordings folder and the RAM disk or folder is removed.
The Overview page's Computer card shows how full the spool is. The dashboard's events report it as it fills, is full, is deleted and recovers: see Events.
Spotlight on macOS
macOS's Spotlight reads every file saved in an indexed folder into its search index. For a recordings folder that gains thousands of calls a day, that's a lot of disk writes for files nobody searches for.
The app checks once a day (and when you change the recordings folder) whether Spotlight indexes the folder. If it does, or might, the Platform page shows a note: Spotlight indexes recordings (or Spotlight may index recordings) with the steps to stop it:
- Open System Settings → Spotlight and click Search Privacy.
- Click + and choose the recordings folder (⇧⌘G in the dialog lets you type a path).
Apps can't read or change that list, so the app finds out by asking Spotlight, which can take a
couple of minutes. When it can't tell, the note has an I've done it button to hide it. A folder
whose name ends in .noindex is never indexed, which is another way to exclude it.
Call rules
These are under Call rules on the Recording tab. Each system and conventional system can override them under Recording in the Recording group of its card; each one left at Default follows the Recording tab.
What is recorded
- Unlisted talkgroups (
recordUnknown, on): applies only when a system has a talkgroup list. A talkgroup patched with a listed one is recorded anyway. - Unit-to-unit calls (
recordUnitToUnit, on): private calls between two radios. - Call timeout, s (
callTimeoutS, 3): a call ends this long after its last grant or audio. - Conversations (
conversationMode, on): a call is the talkgroup's whole conversation, until it has been quiet for the call timeout. Off, each transmission is a call of its own, ended by its voice channel's terminator (P25 Phase 1 and 2, DMR, NXDN; analog: its squelch shut for half a second), or the next transmission's audio on its channel, or the call timeout when neither comes. Trunked systems only. Setup suggests Off for a system with several sites; see Calls heard on several sites.
The first two and Conversations apply to trunked systems; they have no effect on conventional
channels. On the Recorder card, One copy per multi-site call (recording.dropDuplicateCalls,
on) saves only the best copy of a call heard on several sites; see
Calls heard on several sites.
Which calls are kept
- Shortest call, s (
minCallS, 0 = keep all): calls with less audio than this are deleted and not uploaded. This is measured after short and encrypted transmissions are removed. - Shortest transmission, s (
minTransmissionS, 0 = keep all): transmissions shorter than this (key-ups, data bursts) are removed from the call. A pause of more than half a second separates two transmissions. - Longest call, s (
maxCallS, 0 = no limit): a longer call is saved and a new one started, with nothing lost in between. Even with no limit, a call is split every 600 s, so a stuck carrier can't record forever. - Calls with no audio (
keepSilentCalls, off): keep calls that ended with no audio, such as encrypted or undecoded ones.
recordEncrypted (off) is in the config only, not the interface. Turned on, encrypted calls are
recorded and kept even with no audio, so you have a record of who talked and when; their
encrypted audio is still removed.
A call that isn't kept logs Call not saved - no audio, or shorter than the minimum.
Vocoder and frame capture
- P25 voice decoder (
vocoder): which IMBE vocoder turns P25 Phase 1 voice into audio. Fixed-point (the default) is Pavel Yazev's decoder, Trunk Recorder'ssoftVocoder: false, and usually sounds most natural. Enhanced is Trunk Recorder's floating-point synthesis. mbelib behaves exactly like mbelib. - Signal taps (
taps, none; Setup → Recording → Advanced): data from part-way through a channel's receiver, a file for each transmission with a.jsonlbeside it: the FM discriminator (for pager and data decoders), digital voice frames as they came off the air, each frame's errors. The Voice frames as vocoded tap (voice.frames) saves each digital transmission's voice still coded, about a tenth the size of the WAV, as an.sdr(MimoSDR's call file, sdr-stream) and a.jsonl: MimoSDR's tools read it, andtrunk-pro tool revoiceturns it back into a WAV with a different vocoder, so you can compare them on the same transmission. Seetaps.