A WAV file starts with a short header that says what format the sound is in and how long it is. Recorders write that header first, with the length left at zero, then the sound, and fill the length in when you press stop. If the power goes, the card fills, the battery is pulled or the app crashes, the length is never written: players then say the file is empty, damaged, or only a few seconds long, though every minute of sound is still in it. The same happens to recordings copied before they were finished, and to anything over 4 GB, more than a WAV header can say.
This page reads the file, works out the real length from its size, and writes a correct header in front of the sound, which is copied exactly as it was: no re-encoding, no change in quality. Broadcast WAV details - the recorder's name, date and time - are kept, so a multitrack session still lines up.
- Audacity says my .aup3 is corrupt or "not a database". Is the audio lost?
- Often not. An .aup3 is a database in which the audio is stored in blocks of a few seconds each and the list of tracks and clips is stored apart from it; Audacity refuses the whole file when any part of the database is damaged. This page reads the file page by page instead, without SQLite, so it gets past damage that stops Audacity, takes the newest pages from the .aup3-wal file, and uses the autosave copy Audacity keeps after a crash, which has the changes since the last save. Each track is put back together from its clips, at the same time positions, sample for sample as Audacity stored it.
- What is recovered, and what is not?
- The audio of every track, in the format Audacity kept it (16-bit, 24-bit or 32-bit float), with cuts, moved clips and trimmed ends as you left them, and the labels as an Audacity label file. Not applied: effects added to a track, volume envelopes drawn on a clip, and clip speed or pitch changes; the mixdown applies each track's volume, pan and mute. If the list of tracks itself is damaged beyond reading, the audio is still written, in the order Audacity stored it, which is the order it was recorded or imported; the page says so, as the order is then a guess and edits are lost.
- Can it recover an Audacity 2 project (.aup and a _data folder)?
- Not yet: this page handles Audacity 3 projects (.aup3) only.
- The .aup3 file is 0 bytes, or only a few KB. Can it be recovered?
- Not from that file: the audio was never written into it, or the file was replaced. Look for the .aup3-wal file beside it, which may hold the audio on its own (drop the two together), and for older copies of the project in your backup or the Recycle Bin.
- My recorder lost power and the file shows 0:00. Is the recording gone?
- Usually not. The sound was written to the card as it was recorded; only the length in the header was never filled in, which happens when you press stop. Drop the file here and the length is worked out from the file's size. Anything recorded in the last moments before the power went may be missing, as the recorder had not written it yet.
- The file is 0 bytes. Can it be repaired?
- No: a file of 0 bytes holds nothing, because the card's file table was never updated with where the sound went. The sound may still be on the card itself. Stop recording to that card, and run a recovery program such as PhotoRec on it; the recovered pieces can then be repaired here, including ones that come back without a header.
- How do I know the right sample rate when the header is gone?
- By listening. The bit depth and the number of channels can be worked out from the sound itself, but any rate plays - just at the wrong speed and pitch. Start with 48 kHz, which most recorders use; if voices are slow and deep, choose a higher rate, if they are fast and squeaky, a lower one. 44.1 kHz is usual for music made on a computer.
- Why is the repaired file RF64 rather than WAV?
- A WAV header holds the length in 4 bytes, so it cannot describe more than 4 GB - about 6 hours of 24-bit stereo at 48 kHz, or much less for multitrack. Recordings longer than that are saved as RF64, the broadcast standard for long WAV files, which has room for the true length. Audition, Reaper, Pro Tools, Logic, Audacity and VLC open it; some simpler players do not.
- Does it fix clicks, noise or distortion?
- No: it repairs the file, not the sound in it. To take out background noise, use Remove Background Noise; to cut a recording, the Audio Trimmer. For an .m4a recording from a phone that will not play, use Video Repair, which repairs those too; for an MP3 that skips or shows the wrong length, MP3 Repair.