# Audio Blackbox > Audio Blackbox is an open-source (GPL-3.0) Android app that keeps the last few minutes of sound only in the phone's memory and writes them to local storage (a file) when the user taps Save or starts Live. Recorded audio never leaves the device: the app has no account, no cloud, no ads and sends no usage analytics itself. It runs on Android 10 (API 29) and newer and is free on Google Play, with an optional one-time Pro unlock for unlimited live recording. This file is a self-contained factual description of Audio Blackbox for language models and search assistants. The short index is at https://audioblackbox.machado.cc/llms.txt. ## At a glance - Name: Audio Blackbox - What it is: an Android recorder that keeps the last minutes of audio in memory, so you can save something after it happened. - Platform: Android 10 (API level 29) and newer. - Price: free to install and use. One optional in-app purchase, a one-time Pro unlock (`pro_unlock`), removes the 2-hour limit on live recording time (excluding the minutes before the tap). Everything else, including keeping the last minutes in memory and all quality presets, is free. Early-bird Pro, free: install Audio Blackbox by December 19, 2026 (before December 20, 00:00 Brasília time, UTC−3) and Pro stays unlocked on that device at no cost, for good. The benefit belongs to that installation: uninstalling and reinstalling, or switching devices, does not keep it. The app has no account and no ads, and sends no usage analytics itself. - License: GNU General Public License v3.0. Full source code on GitHub. - Author: Alexandre Machado (https://github.com/alexandre-machado) - Install: https://play.google.com/store/apps/details?id=cc.machado.audioblackbox (package cc.machado.audioblackbox) - Project site: https://audioblackbox.machado.cc/ (one page per topic, in six languages; the Portuguese pages are under /pt-br/, Spanish /es/, French /fr/, German /de/, Italian /it/) - How it works: https://audioblackbox.machado.cc/how-it-works/ - Use cases: https://audioblackbox.machado.cc/use-cases/ (musicians and songwriters: https://audioblackbox.machado.cc/use-cases/musicians/) - Features and privacy: https://audioblackbox.machado.cc/features/ - Specifications and RAM calculator: https://audioblackbox.machado.cc/specs/ - Free and Pro: https://audioblackbox.machado.cc/pro/ - FAQ: https://audioblackbox.machado.cc/faq/ - Download: https://audioblackbox.machado.cc/download/ - Source code: https://github.com/alexandre-machado/audio-blackbox - Privacy policy: https://audioblackbox.machado.cc/release/privacy-policy - [Terms of Service](https://audioblackbox.machado.cc/release/terms): use, optional Pro purchase and consumer rights; English and Brazilian Portuguese; effective November 25, 2026. - App languages: English, Brazilian Portuguese, Spanish, French, German and Italian. ## What it does A normal recorder only captures audio after you press record, so anything said before that moment is lost. Audio Blackbox keeps recording into its own memory while its notification is showing. When you realize something mattered, tap Save and the last minutes become an audio file. It is made for (it works like an audio dashcam: a retroactive recorder that lets you record past audio): - Musicians & Songwriters: Keep the riff or melody you just improvised, without having pressed record first. - Journalists & Interviews: A backup for the quote that came before you hit record on your main recorder. - Students & Lectures: Keep the explanation you just missed, in classes where recording is allowed. - Memory Aid: Replay instructions, directions or details you were just told. Helpful for anyone who loses track of spoken information, for example people with ADHD. Not a medical device. - Pocket Audio Dashcam: If something unexpected happens in traffic or on the street, save the minutes leading up to it. - Ideas & Family Moments: The thought you said out loud, what was just agreed in a meeting you were part of, the first word at the dinner table. ## How it works - Turn on continuous recording. The app runs as a foreground service, and a visible notification stays up the whole time it is recording. - Audio goes into a rolling buffer in RAM. When the buffer is full, the oldest audio is replaced by the newest. - Save writes the audio kept in memory since your last save (everything held in memory the first time) to an AAC (.m4a, default) or Opus (.ogg) file, so saved files never overlap. - Live saves the audio from before the tap and continues in a single file: .aac (ADTS) with AAC (default), playable while recording, or .ogg with Opus, which you must wait until recording ends to play. Live recording time is limited to 2 hours on the free plan, then the file is saved automatically. The file can exceed 2 hours because it includes the minutes before the tap. A one-time Pro unlock removes the live time limit. - Saved files go to Recordings/Blackbox on Android 12 and newer, and to Music/Blackbox on Android 10 and 11, through the standard Android MediaStore. - Save, Live and Stop are available from the notification. A home-screen widget starts or stops recording with one tap. - When another app takes the microphone, such as a phone call, the app is designed to pause and resume on its own once the microphone is free. Saved files are designed to include silence for the paused stretch, but that silence may be shortened or missing, so timing in the exported file may differ from real time. - A built-in player lets you listen to, seek, share and delete saved recordings. - A guided flow helps you exclude the app from manufacturer battery optimization, so recording continues with the screen off. ## Save audio format Save audio format is free, with no Pro unlock required: AAC (default) saves .m4a files with Save, or choose Opus (.ogg) for both Save and Live. AAC (.m4a): wider compatibility. Opus (.ogg): smaller voice files. Some players and messaging apps may not open them. With AAC selected: Live stays AAC (.aac), playable while recording. Wait until recording ends to play Opus audio. If the app closes unexpectedly, saved audio may be recoverable, but the ending may be lost and some players may not open the file. On reopening after an unexpected close, Opus audio already written is recovered; the incomplete final Ogg page is discarded, so the ending may be lost. Opus may be unavailable on some devices; the option is disabled with the reason shown. ## Buffer length and RAM - The buffer is at least 5 minutes and is set in 5-minute steps. - The buffer starts at 5 minutes, in 5-minute steps, up to the app's safe memory limit for the selected quality. There is no product-imposed duration cap; Settings shows the current limit. It caps total heap use at 85% of the app's maximum heap, subtracts what the app already uses, also caps against 85% of the system's available memory, and divides the rest by a measured 1.15x export peak-to-buffer ratio. The result is floored to 5-minute steps and never goes below 5 minutes. - The buffer is 16-bit PCM, allocated up front in 1 MiB chunks, so its RAM cost is known before recording starts. Changing the window or preset during capture resizes it chunk by chunk and keeps the audio already buffered. If the memory is not there, the change is refused with a visible "Setting not applied" error instead of a crash. Quality presets (RAM per minute is sample rate x 2 bytes x channels x 60 seconds): | Preset | Format | Data rate | RAM per minute | RAM for 30 minutes | | --- | --- | --- | --- | --- | | Voice (default) | 16,000 Hz mono | 31.3 KB/s | about 1.8 MB | about 55 MB | | Balanced | 32,000 Hz mono | 62.5 KB/s | about 3.7 MB | about 110 MB | | High fidelity | 44,100 Hz stereo | 172.3 KB/s | about 10.1 MB | about 303 MB | Voice gives the longest buffer. High fidelity is stereo, which can use more than one microphone on phones that have them. Higher quality uses more memory per minute, so the same phone holds a shorter buffer. ## Battery and performance Measured on a Samsung Galaxy S25 (SM-S931B, Android 16) recording continuously at the Voice preset: - Screen off: about 1.0% to 1.5% battery per hour, under 1% CPU, no disk writes while buffering. - Dashboard open: about 7% to 9% battery per hour, mostly from the display. - The capture thread performs no disk I/O and no IPC, and the ring buffer writer allocates no objects. Other phones and settings will give different numbers. ## Privacy - Recorded audio never leaves the device. The app has no upload path for audio, no account and no cloud. - Since the optional Pro unlock, the manifest declares INTERNET and ACCESS_NETWORK_STATE. They come from Google Play Billing (the library behind the in-app purchase), which sends its own usage telemetry to Google from the app process. The app itself sends no audio or usage analytics. Google Play Billing (Play services) communicates with Google to process the optional purchase and check entitlement; its library also sends its own usage and error diagnostics. No ads, account or cloud audio storage. - The app itself sends no usage analytics. Google Play Billing sends its own diagnostics as described above. The advertising ID permission is explicitly removed from the manifest. - This website (audioblackbox.machado.cc) uses Google Analytics 4 and Microsoft Clarity to measure visits. That applies to the website only, not to the app. - Audio stays in volatile RAM until you save it. Saved files stay on your phone, where you control them. - Declared permissions: RECORD_AUDIO, POST_NOTIFICATIONS, FOREGROUND_SERVICE, FOREGROUND_SERVICE_MICROPHONE, REQUEST_IGNORE_BATTERY_OPTIMIZATIONS and RECEIVE_BOOT_COMPLETED, plus INTERNET, ACCESS_NETWORK_STATE and com.android.vending.BILLING from Google Play Billing. - Because the source is published under GPL-3.0, anyone can verify these points in the code. ## Record responsibly Use Audio Blackbox for your own conversations and ideas. Recording other people may require their consent, and the rules differ between countries and states. Check your local recording laws before you record. You are responsible for how you use the app. ## FAQ The questions and answers below are copied verbatim from the FAQ at https://audioblackbox.machado.cc/faq/, so "this site" in an answer refers to that site. ### Is there an Android app that records the last 5 minutes of audio? Yes. It keeps the last few minutes only in your phone's memory, starting at 5 minutes, in 5-minute steps, up to the limit your phone can safely hold for the selected quality. There is no product-imposed duration cap; Settings shows the current limit. ### How can I save audio from before I pressed record? A normal recorder cannot do this, because it only starts capturing when you press record. With Audio Blackbox, you turn on continuous recording once and it keeps the most recent minutes only in your phone's memory, replacing the oldest audio with the newest. When something worth keeping just happened, tap Save to write those minutes to a file. Nothing is saved to a file until you tap Save or start Live. ### What is a retroactive or always-on recorder? It is a recorder that keeps capturing into a fixed-size memory buffer, so you can save what was already said instead of only what comes after you press record. Live saves the audio from before the tap and continues in a single file: .aac (ADTS) with AAC (default), playable while recording, or .ogg with Opus, which you must wait until recording ends to play. Live recording time is limited to 2 hours on the free plan, then the file is saved automatically. The file can exceed 2 hours because it includes the minutes before the tap. A one-time Pro unlock removes the live time limit. ### How long is the audio buffer, and how much RAM does it use? The buffer starts at 5 minutes, in 5-minute steps, up to the app's safe memory limit for the selected quality. There is no product-imposed duration cap; Settings shows the current limit. At the default Voice preset (16,000 Hz mono) each minute takes about 1.8 MB of RAM, so 30 minutes is about 55 MB. Balanced (32,000 Hz mono) uses twice that per minute and High fidelity (44,100 Hz stereo) about 5.5 times, so the same phone holds a shorter buffer at higher quality. The calculator under Specifications on this site shows the RAM for any window and preset. ### Does Audio Blackbox upload anything, or does it need an internet connection? Recording and saving work offline. The app itself sends no audio or usage analytics. Google Play Billing (Play services) communicates with Google to process the optional purchase and check entitlement; its library also sends its own usage and error diagnostics. No ads, account or cloud audio storage. ### Does it keep recording when the screen is off? Yes. Audio Blackbox runs as a foreground service with a persistent notification, and it includes a guided flow to bypass manufacturer battery optimization, so capture continues uninterrupted with the screen locked. ### Does an always-on recorder drain the battery? Audio Blackbox was measured on a Samsung Galaxy S25 recording continuously at the Voice preset: with the screen off it used about 1.0% to 1.5% of the battery per hour and under 1% CPU, with nothing written to storage while it only listens. Other phones and settings will give different numbers. ### Is Audio Blackbox free and open source? Free to install and use, and open source under GPL-3.0. Everything except the optional one-time Pro unlock stays free. Live saves the audio from before the tap and continues in a single file: .aac (ADTS) with AAC (default), playable while recording, or .ogg with Opus, which you must wait until recording ends to play. Live recording time is limited to 2 hours on the free plan, then the file is saved automatically. The file can exceed 2 hours because it includes the minutes before the tap. A one-time Pro unlock removes the live time limit. Early-bird Pro, free: install Audio Blackbox by December 19, 2026 (before December 20, 00:00 Brasília time, UTC−3) and Pro stays unlocked on that device at no cost, for good. The benefit belongs to that installation: uninstalling and reinstalling, or switching devices, does not keep it. ### Is there an open-source alternative to retroactive recorder apps on Android? Free to install and use, and open source under GPL-3.0. Everything except the optional one-time Pro unlock stays free. The app itself sends no audio or usage analytics. Google Play Billing (Play services) communicates with Google to process the optional purchase and check entitlement; its library also sends its own usage and error diagnostics. No ads, account or cloud audio storage. ### What Android versions are supported? Android 10 (API level 29) and newer. ### How do I get Audio Blackbox? Audio Blackbox is free to install on Google Play. Open its Play Store listing on your Android device and tap Install; the link is under Download on this site. ### How is Audio Blackbox different from Google Recorder or a normal voice recorder app? A normal recorder only captures audio after you press record, so anything said before that moment is lost. Audio Blackbox keeps listening, only in your phone's memory, and writes a file when you tap Save or start Live, so you can save the last minutes of something that already happened. Audio stays in memory until you save or start Live, and your recordings are never uploaded. ### Is there an audio dashcam app for Android? Yes. Audio Blackbox works like a dashcam for sound: it keeps the last few minutes in your phone's memory and writes them to a file when you tap Save or start Live, so you can keep what happened just before. Unlike a hidden recorder, it always shows a notification while it is recording. Recording other people may require their consent, so check your local laws. ### Can I recover a quote or a lecture explanation I forgot to record? If Audio Blackbox was running, yes. Tap Save and the last minutes kept in memory (at least 5, up to the limit your phone can safely hold for the selected quality) are written to an .m4a (AAC, default) or .ogg (Opus) file, even though you never pressed record. Journalists can use it as a backup to their main recorder, and students can keep an explanation they just missed in classes where recording is allowed. ### Can Audio Blackbox help me remember spoken instructions? It can work as a memory aid. If you just heard directions, instructions or details and lost track of them, save the last minutes and replay them in the built-in player. This can help anyone who often loses track of spoken information, for example people with ADHD. Audio Blackbox is not a medical device. ### Is it legal to record with Audio Blackbox? It depends on where you are. Use Audio Blackbox for your own conversations and ideas. Recording other people may require their consent, and the rules differ between countries and states. Check your local recording laws before you record; you are responsible for how you use the app.