Introduction
An .aup3 file is a project saved by
Audacity, the free audio editor, from
version 3.0 (2021) onwards. Unlike most music projects it holds the audio itself as
well as the edits, so a single file carries the whole project.
Before 3.0, Audacity saved an .aup XML file together with a
_data folder of many small audio block files. Audacity 3 can still open
those projects and converts them when saving.
Structure
An .aup3 file is a SQLite 3 database, so it starts with the text
SQLite format 3 and can be opened with any SQLite tool. The project
description (tracks, clips, labels, settings) is stored in a table as a compact binary
form of Audacity’s XML. The audio is split into blocks, stored as rows of a sample
blocks table with summary data used to draw the waveform quickly; nothing in the file
is compressed. A project saved by Audacity 4’s development builds (.aup4)
uses the same container and adds a table of earlier saves. While Audacity is
running, changes go to SQLite’s write-ahead log, kept as a .aup3-wal file
beside the project, with a .aup3-shm file too on Windows.
The pages in this reference describe the database, the binary XML the project is stored in, the elements of the project document and the sample blocks. Audacity’s source code defines all of them; it is the only specification.
Not described
These pages follow Audacity’s own open-source code (version 3.7.1, and the Audacity 4
development source for what it adds). No real .aup3 file exists on the machine
that made this reference and Audacity’s repository holds none; the only real file read
is Audacity’s empty.aup4 test file, so everything else was checked against
projects built to the writer’s code (a test builds mono, stereo, 16-bit, 24-bit and
float projects with the real sqlite3 tool).
Known, not yet covered
- Viewer: clips with a stretch ratio other than 1 or a pitch shift play unstretched and unshifted; Audacity’s Staffpad time-stretching is not reproduced.
- Viewer: the old
.aupXML files (before Audacity 3.0) are not read as projects; they have no audio in them (it is in the_datafolder) and open as plain XML. - Viewer: the
dataattribute of a note track (Allegro text) and the parameters of effects are shown as raw text; the file’s-walcontent, when the main file is copied without it, is not merged into the project. - Viewer: the waveform is not linked to bytes in the hex view (a block’s samples sit in an overflow chain, not in one run).
- Reference: project and track attributes written by Audacity modules and plug-ins that are not in the source read here (third-party builds).
Unknown
- Reference and viewer: a real
.aup3written by Audacity 3.x was not available to compare with; the layout was worked out from the source and from the one Audacity 4 test file.
Links
Software
- Audacity – the free audio editor that saves its projects as AUP3, from version 3.0 (Windows, macOS, Linux)
Developers
- SQLite – the database library and command-line tools that open the file (C)
- Audacity source code – defines the tables and the project data inside them (C++)
Reference
- Database File Format – SQLite’s own description of the file underneath