From 5090b55eb7bc3a98b678e21b859fd01d2e30e554 Mon Sep 17 00:00:00 2001 From: Tom Cooks Date: Mon, 16 Nov 2026 09:34:52 -0500 Subject: Release RECCoon 1.1.2 - Refreshable MIC/SPK pickers with labels above the selectors. - WAV/M4A, MONO/STEREO and Silence alerts on one harmonised row. - Waveform and L/R meters under the record button, with Swap L/R. - Recordings saved in Downloads/RECCoon. - Confirmation before discarding and timer reset. - Player export next to Transcribe, transcript save timestamp. - Signed release APK for the F-Droid Binaries URL. --- README.md | 88 +++--- TODO.md | 139 +++++++++ app/build.gradle.kts | 4 +- .../com/tomcooks/reccoon/DeviceSpinnerAdapter.java | 48 +++ .../main/java/com/tomcooks/reccoon/Formats.java | 25 +- .../java/com/tomcooks/reccoon/LevelMeterView.java | 28 +- .../java/com/tomcooks/reccoon/MainActivity.java | 322 +++++++++++++++------ .../java/com/tomcooks/reccoon/PlayerActivity.java | 51 ++-- .../java/com/tomcooks/reccoon/RecordingStore.java | 42 ++- .../java/com/tomcooks/reccoon/TranscriptStore.java | 13 + .../com/tomcooks/reccoon/TranscriptionEngine.java | 2 + app/src/main/res/color/option_text.xml | 5 + app/src/main/res/drawable/bg_option.xml | 24 ++ app/src/main/res/drawable/bg_refresh_item.xml | 15 + app/src/main/res/drawable/bg_toggle.xml | 24 ++ app/src/main/res/drawable/ic_bell_off.xml | 14 + app/src/main/res/drawable/ic_mic.xml | 10 + app/src/main/res/drawable/ic_refresh.xml | 10 + app/src/main/res/drawable/ic_speaker.xml | 10 + app/src/main/res/drawable/ic_swap.xml | 10 + app/src/main/res/layout/activity_main.xml | 296 ++++++++++++------- app/src/main/res/layout/activity_player.xml | 37 +-- app/src/main/res/layout/item_spinner_refresh.xml | 27 ++ app/src/main/res/values-sw600dp/bools.xml | 4 + app/src/main/res/values/bools.xml | 5 + app/src/main/res/values/strings.xml | 35 ++- app/src/main/res/values/themes.xml | 22 ++ .../java/com/tomcooks/reccoon/FormatsTest.java | 6 + fastlane/metadata/android/en-US/changelogs/2.txt | 8 + fastlane/metadata/android/en-US/changelogs/3.txt | 7 + fastlane/metadata/android/en-US/changelogs/4.txt | 4 + .../metadata/android/en-US/full_description.txt | 12 +- releases/RECCoon-1.1.2.apk | Bin 0 -> 33007220 bytes 33 files changed, 1025 insertions(+), 322 deletions(-) create mode 100644 app/src/main/java/com/tomcooks/reccoon/DeviceSpinnerAdapter.java create mode 100644 app/src/main/res/color/option_text.xml create mode 100644 app/src/main/res/drawable/bg_option.xml create mode 100644 app/src/main/res/drawable/bg_refresh_item.xml create mode 100644 app/src/main/res/drawable/bg_toggle.xml create mode 100644 app/src/main/res/drawable/ic_bell_off.xml create mode 100644 app/src/main/res/drawable/ic_mic.xml create mode 100644 app/src/main/res/drawable/ic_refresh.xml create mode 100644 app/src/main/res/drawable/ic_speaker.xml create mode 100644 app/src/main/res/drawable/ic_swap.xml create mode 100644 app/src/main/res/layout/item_spinner_refresh.xml create mode 100644 app/src/main/res/values-sw600dp/bools.xml create mode 100644 app/src/main/res/values/bools.xml create mode 100644 fastlane/metadata/android/en-US/changelogs/2.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/3.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/4.txt create mode 100644 releases/RECCoon-1.1.2.apk diff --git a/README.md b/README.md index d8b31c1..58d61b0 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,37 @@ # RECCoon -A minimal Android app that records uncompressed WAV audio and transcribes it +A minimal Android app that records audio (WAV or M4A) and transcribes it on device. -- **Format:** 44.1 kHz, 16-bit PCM (stereo when the device supports it), no compression -- **Compact mode:** an optional switch saves a small AAC-LC `.m4a` instead of the WAV +- **Capture:** 44.1 kHz, 16-bit PCM (stereo when the device supports it) +- **Format:** choose **WAV** or a small AAC-LC `.m4a` radio on the main screen (~22 MB/hour mono instead of ~317 MB); transcription still works because the decoder streams the M4A back to PCM (`PcmAudioSource`) - **Controls:** one big round button — tap to start recording (timer starts), tap again to stop and save -- **Meters:** live scrolling waveform plus left/right peak level meters with a clip indicator while recording -- **Mono switch:** optionally record a single channel (half the file size) -- **Swap L/R:** exchange the stereo channels when a device reports them inverted in - landscape; applies to the meters and the saved file -- **Mic picker:** choose Auto, the built-in mic, or a specific input (Bluetooth SCO, - USB, wired headset ...) — the BT-Mic-Force feature folded into RECCoon -- **Live monitoring:** an optional **Monitor** switch plays the microphone through a - chosen output (built-in speaker, wired, USB, Bluetooth ...). Use headphones — the - speaker causes feedback. A dedicated thread and a bounded queue keep a slow output - from ever stalling the recording -- **Discard:** stop a recording and throw it away without saving +- **Meters:** live scrolling waveform and left/right peak strips directly under the + record button, each with a microphone icon; a **Swap L/R** icon button sits on the right +- **MONO / STEREO radios:** record one channel (half the file size) or two +- **Mic / speaker pickers:** **MIC** and **SPK** labels sit above their selectors, + which list Auto, the built-in device, and every detected input/output. The first + entry in each list refreshes the device scan; phones show the two pickers side by + side, tablets stack them +- **Live monitoring:** with a concrete output selected, the microphone is played + through that SPK device while recording. Auto means no monitoring. Use + headphones — the speaker causes feedback. A dedicated thread and a bounded queue + keep a slow output from ever stalling the recording +- **Discard:** asks for confirmation, then stops the recording and throws it away + without saving; the timer returns to `00:00` - **Markers:** place labelled cue points while recording; they are embedded in the WAV (`cue ` + `LIST/adtl`) and shown in the player -- **Silence:** optional Do Not Disturb total silence (no notifications, no vibration) while recording -- **Recordings list:** scrollable list at the bottom of the main screen, newest first -- **Player:** scrubber, ±10 s jumps, speed control, delete / rename / share / export, no autoplay +- **Silence alerts:** barred-bell chip that enables Do Not Disturb total silence + (no notifications, no vibration) while recording +- **Recordings list:** scrollable list at the bottom of the main screen, newest first, + read from `Downloads/RECCoon` +- **Player:** scrubber, ±10 s jumps, speed control, delete / rename / share; Export + sits next to Transcribe and stays greyed out until a transcript exists; no autoplay - **Transcription:** on-device, offline speech recognition with [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) using multilingual **NVIDIA Parakeet v3** — works with English, Italian and 23 other languages -- **Name:** RECCoon · **by** Tom Cooks · **version** 1.0.0 +- **Name:** RECCoon · **by** Tom Cooks · **version** 1.1.2 - **Icon:** raccoon with a microphone ## Requirements @@ -52,8 +57,8 @@ Outputs: F-Droid submission status, the release-signing key and the build/reproducibility gotchas are documented in `FDROID.md`. -A prebuilt copy is available at `dist/RECCoon-1.0.0.apk` (release, signed with -the maintainer key). The APK in `dist/` is **not** tracked in git. The sherpa-onnx +A prebuilt copy of the previous release is available at `dist/RECCoon-1.0.0.apk` +(release, signed with the maintainer key). The APK in `dist/` is **not** tracked in git. The sherpa-onnx runtime comes from [JitPack](https://jitpack.io) (an F-Droid-trusted Maven repository), so no prebuilt binary lives in this repository. @@ -68,11 +73,13 @@ repository), so no prebuilt binary lives in this repository. - `RecordingService` is a microphone-typed foreground service started while recording, so capture continues when the app is in the background. - `MainActivity` handles the runtime permissions, the timer, the level meters - and copying the finished file into Downloads. On Android 10+ this uses - `MediaStore`; on older versions it writes directly to the public Downloads - directory and notifies the media scanner. -- Files are named `reccoon-YYYY-MM-DD-HHMMSS-XXXXX.wav`, where `XXXXX` is a - persistent 5-digit progressive counter. + and copying the finished file into `Downloads/RECCoon`. On Android 10+ this + uses `MediaStore` with `RELATIVE_PATH`; on older versions it writes directly + to that public subdirectory and notifies the media scanner. +- Files are named `RECCoon_YYYY-MM-DD_HH-MM-SS_XXXXX.wav` (or `.m4a`), where + `XXXXX` is a persistent 5-digit counter. The folder is the source of truth: + the recordings list accepts every `.wav` / `.m4a` in it, and still shows old + `reccoon-*` files from the root of Downloads after an upgrade. ## Waveform, meters and markers @@ -94,8 +101,9 @@ repository), so no prebuilt binary lives in this repository. (`SeekBar`), ±10 s jumps and a playback speed control (0.5×–2×). Playback does **not** start automatically. - Library actions: **Share** (FileProvider on Android 9 and older), **Rename** - (MediaStore or file), **Export** (writes `.txt` and `.srt` to Downloads) and - **Delete** (removes the WAV and its sidecars). + (MediaStore or file) and **Delete** (removes the recording and its sidecars). + **Export** (writes `.txt` and `.srt` to Downloads) sits next to Transcribe and + is enabled only when a transcript exists. - Transcript words are clickable: tapping a word seeks the player to it. Word timings come from the model's token timestamps when available, otherwise the segment is divided between its words. @@ -123,12 +131,15 @@ repository), so no prebuilt binary lives in this repository. and handles language detection itself (no language picker). It needs ~670 MB of storage and a large-heap device. - Transcripts are stored as JSON sidecars in app-private storage - (`filesDir/transcripts/.json`). + (`filesDir/transcripts/.json`). The sidecar records `savedAt`, shown + as **Transcript saved yyyy-mm-ddThh:mm:ss** in the player. +- The model spinner is hidden while Parakeet v3 is the only model. Transcribe is + disabled once a transcript exists; Export is enabled at the same moment. ## Compact (compressed) recordings -- The **Compressed (small M4A)** checkbox transcodes the finished WAV to - AAC-LC (48 kbps per channel) with `AudioCompressor` and saves that instead. +- The **M4A** radio transcodes the finished WAV to AAC-LC (48 kbps per channel) + with `AudioCompressor` and saves that instead. **WAV** keeps the original PCM. Markers are kept as a JSON sidecar. Use it when storage matters more than bit-exact audio. - `tools/whistle-eval/` contains a desktop harness that compares Whisper, @@ -136,14 +147,15 @@ repository), so no prebuilt binary lives in this repository. ## Live monitoring and discard -- **Monitor** plays the incoming audio back through the selected output device while - recording. The output picker mirrors the mic picker (Auto, phone speaker, wired, - USB, Bluetooth). `LiveMonitor` owns an `AudioTrack` on its own thread with a small - bounded queue, so a slow output (for example Bluetooth A2DP) drops monitor chunks - instead of blocking the capture loop and corrupting the recording. Headphones are - strongly recommended — the phone speaker feeds back. -- **Discard** stops the recording and deletes the temporary file without saving it, - for takes that are obviously bad. +- Monitoring plays the incoming audio back through the selected SPK device while + recording. The SPK picker mirrors the MIC picker (Auto, phone speaker, wired, USB, + Bluetooth). A concrete output enables monitoring; **Auto** means no live playback. + `LiveMonitor` owns an `AudioTrack` on its own thread with a small bounded queue, + so a slow output (for example Bluetooth A2DP) drops monitor chunks instead of + blocking the capture loop and corrupting the recording. Headphones are strongly + recommended — the phone speaker feeds back. +- **Discard** asks for confirmation, then stops the recording and deletes the + temporary file without saving it, for takes that are obviously bad. ## License diff --git a/TODO.md b/TODO.md index 76c4ea6..6161d89 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,144 @@ # RECCoon TODO +## Version 1.1.2 — layout spacing (2026-11-09) + +Semver: **1.1.2** (patch). + +- [x] Centre the Silence alerts chip between WAV/M4A and MONO/STEREO. + - [x] Add wider gaps between the three groups. +- [x] Move the recording status text directly below the record button. +- [x] Bump `versionName` to **1.1.2** and `versionCode` to **4**. +- [x] Rebuild the debug APK. + +## Version 1.1.1 — follow-up polish (2026-11-09) + +Semver: **1.1.1** (patch). Refines the 1.1.0 layout after on-device feedback. + +- [x] Remove the redundant **Monitor** checkbox. + - [x] Live monitoring is enabled whenever a concrete SPK output is selected. + - [x] Auto output means no monitoring. +- [x] Add vertical spacing and a hairline below the L/R meters. +- [x] Change the Swap L/R icon to up/down arrows. +- [x] Put the **[icon] MIC** and **[icon] SPK** labels above their spinners. + - [x] Give both spinners the full width of their column. +- [x] Add padding to the WAV/M4A, MONO/STEREO and Silence alerts chips. + - [x] Give each chip an equal share of the row so they line up. +- [x] Move Mark / Discard below the meters. + - [x] Add vertical spacing and a hairline below those buttons. +- [x] Bump `versionName` to **1.1.1** and `versionCode` to **3**. +- [x] Rebuild the debug APK for on-device testing. + +## Version 1.1.0 — UI/UX refresh (requested 2026-11-02) + +Semver: **1.1.0** (minor). All changes are UI/behaviour additions and fixes; +nothing removes data or breaks the saved-file format. `versionCode` 2. + +### 1. Refreshable MIC / SPK device pickers + +- [x] Add a **Refresh inputs** item as the first entry of the MIC spinner. + - [x] Show the refresh icon before the label. + - [x] Draw a bottom border on the item so its purpose is obvious. + - [x] Re-scan `AudioManager.getDevices(GET_DEVICES_INPUTS)` when tapped. +- [x] Add a **Refresh outputs** item as the first entry of the SPK spinner. + - [x] Show the refresh icon before the label. + - [x] Draw a bottom border on the item so its purpose is obvious. + - [x] Re-scan `AudioManager.getDevices(GET_DEVICES_OUTPUTS)` when tapped. +- [x] Keep the current device selected after a refresh (fall back to Auto if it vanished). + +### 2. Responsive MIC / SPK layout + +- [x] Place the MIC and SPK pickers side by side on small screens. +- [x] Stack them vertically on larger screens (`sw600dp` and up), as today. + +### 3. MIC / SPK labels + +- [x] Replace the words **Mic** and **Out** with a microphone icon + **MIC**. +- [x] Replace **Out** with a speaker icon + **SPK**. + +### 4. Waveform, L/R meters and Swap L/R + +- [x] Move the waveform directly below the record button. +- [x] Move the L/R level meters below the waveform. +- [x] Put the **Swap L/R** control to the right of the meters. + - [x] Replace the checkbox with an icon button that shows arrows. + - [x] Keep the persisted swap setting and selected visual state. +- [x] Draw a microphone icon to the left of each **L** / **R** meter label. + +### 5. Recording format radio + +- [x] Replace the **Compressed (small M4A)** checkbox with a WAV / M4A radio. + - [x] WAV on the left, M4A on the right. + - [x] Keep the persisted preference and the existing compression pipeline. + +### 6. Live monitoring behaviour + +- [x] Explain what happens when **Monitor** is off (recording still works, but the + chosen output is not used; Monitor only feeds the mic back to an output). +- [x] Automatically switch Monitor on when a non-default output is selected, + so the output picker never looks broken. + - [x] Keep the feedback warning. + - [x] Let the user turn Monitor off again manually. + +> **What Monitor off means:** recording and saving still work normally; the app +> simply does not play the microphone back through the SPK device, so the SPK +> picker has no effect. Monitor is only a confidence/level aid, not a +> requirement. Selecting any concrete output (even the phone speaker) now turns +> Monitor on automatically and shows the feedback warning; you can turn it off +> again at any time. + +### 7. Mono / stereo radio + +- [x] Replace the **Mono** checkbox with a microphone-icon **MONO** radio. +- [x] Add a microphone-icon **STEREO** radio. +- [x] Check that the radios really change `WavRecorder.setForceMono(...)` and the + saved channel count. + +### 8. Silence alerts icon + +- [x] Add a barred-bell icon to the **Silence alerts** control. + +### 9. One-line options row + +- [x] Place WAV/M4A, MONO/STEREO and Silence alerts on the same line. +- [x] Keep the row usable on narrow screens (compact segmented controls). + +### 10. Discard confirmation + +- [x] Add a confirmation dialog before discarding: + **Do you really want to discard the current recording?** + - [x] OK discards. + - [x] Cancel keeps recording. +- [x] Reset the timer to `00:00` after a discard. + +### 11. Downloads/RECCoon recordings folder + +- [x] Save new recordings to `Downloads/RECCoon` on Android 10+ (MediaStore + `RELATIVE_PATH`). +- [x] Save new recordings to `Downloads/RECCoon` on Android 8–9 (direct file). +- [x] Stop depending on the `reccoon-*` filename prefix: + - [x] List every `.wav` / `.m4a` inside `Downloads/RECCoon`. + - [x] Keep old `reccoon-*` files in the root of Downloads visible for migration. + - [x] Give new files a readable `RECCoon__