Feat: Voice recording automation: auto-record (front), auto-save (flip), auto-play (back)

Current behavior

When voice playback is running on the back of a card, pressing an answer button (Again / Hard / Good / Easy) interrupts playback and shows the record button. This is convenient since you’re moving to a different card.

However, when you move front → back on the same card while recording, the recording keeps going (and is not automatically saved/stopped).

Requested behavior (summary)

1. Auto-interrupt & auto-save on flip (front → back) If the user is recording on the front, automatically stop and save the recording when they flip to the back.

2. Optional auto-play on back (dependent on auto-save) When the back is shown, automatically play the just-saved recording so the user can hear it without extra taps.

3. Optional auto-record on front A setting to automatically start recording when the front of the card appears (for fast workflow).

Why this helps

Fewer taps, faster practice. Example flow for a single card with current manual steps:

  1. Start recording

  2. Tap Show Answer

  3. Stop recording

  4. Tap Play to hear it

  5. Tap an answer (Again/Hard/Good/Easy) → 5 taps

With Auto-start recording + Auto-save on flip + Auto-play on back:

  1. Tap Show Answer (recording auto-stopped & saved; playback auto-starts)

  2. Tap an answer → 2 taps (same tap count as if you weren’t recording)