Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ optionally) in the background.
other apps (you'll see an ongoing notification).
- **Pause / resume** — while recording, a pause button appears next to the
stop button.
- **Stop** — finalizes the recording as an AAC `.m4a` file (small files,
playable everywhere) named like `recording_2026-07-09_14-30-00.m4a`.
- **Stop** — finalizes the recording as an AAC `.m4a` file named like
`recording_2026-07-09_14-30-00.m4a`. Encoding is tuned for speech — mono,
22.05 kHz, 32 kbps — so an hour of journalling is roughly 14 MB.
- **Automatic cloud upload** — when you stop, the file is queued with
WorkManager and uploaded to your **Google Drive** (or an AWS S3 bucket if
you switch backends). If you're offline, the upload waits for connectivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ class MediaRecorderAudioRecorder(private val context: Context) : AudioRecorder {
recorder.setAudioSource(MediaRecorder.AudioSource.MIC)
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4)
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC)
recorder.setAudioSamplingRate(44_100)
recorder.setAudioEncodingBitRate(128_000)
// Voice-oriented settings: a spoken-word journal does not need music
// fidelity, and these keep a one-hour entry around 14 MB instead of 58 MB.
recorder.setAudioChannels(1)
recorder.setAudioSamplingRate(22_050)
recorder.setAudioEncodingBitRate(32_000)
recorder.setOutputFile(output.absolutePath)
try {
recorder.prepare()
Expand Down
Loading