View and Edit Live Transcription Before Inserting
Raw speech recognition output frequently contains errors on names, medical terms, and organisation-specific vocabulary. This story provides a dedicated transcription preview overlay where the user can see the transcribed text as it appears and make corrections before committing it to the underlying form field. The overlay supports standard text editing gestures and a clear 'Insert' and 'Cancel' action. Partial transcription segments are persisted to the repository so that if the app is backgrounded mid-dictation, the session can be partially recovered.
User Story
Acceptance Criteria
- Given dictation is active, When the peer mentor speaks, Then interim transcription results appear in the preview field within 500ms of each spoken word
- Given transcription is complete, When the peer mentor reviews the preview, Then they can tap, long-press, and edit any word in the transcription using standard OS text editing
- Given the peer mentor has reviewed and corrected the transcription, When they tap 'Insert', Then the edited text is placed into the originating report field and the overlay closes
- Given the peer mentor taps 'Cancel', When the overlay closes, Then no changes are made to the originating field and any in-progress transcription is discarded
- Given the app is sent to background during active dictation, When the user returns, Then any partial transcription stored in the repository is restored in the preview field
Business Value
Ensuring transcription quality before submission prevents inaccurate records from entering the database, which is critical for Bufdir reporting integrity and for organisations like Blindeforbundet that have structured, formalized report schemas. Correctable previews also increase user trust and adoption of the feature.
Components
- Transcription Preview Field ui
- Transcription State Manager service
- Partial Transcription Repository data
- Speech Recognition Service service
- Speech-to-Text Field Overlay ui
- Speech-to-Text Adapter infrastructure