Activate Voice Dictation for Report Fields
Peer mentors frequently complete post-session reports immediately after emotionally and physically demanding sessions. Typing long notes is a barrier that leads to underreporting. This story enables a dictation microphone button to appear on applicable text fields (notes, way-forward, description), triggering native device speech recognition. The user taps the button, speaks naturally, and the transcribed text populates the field. The feature must work in Norwegian and respect org-specific field configurations so that only appropriate fields offer dictation.
User Story
Acceptance Criteria
- Given a post-session report is open, When the peer mentor taps the microphone icon on a notes or free-text field, Then the dictation overlay activates and the device microphone begins recording
- Given dictation is active, When the peer mentor speaks in Norwegian, Then transcribed text appears in real time in the transcription preview field with at least 85% accuracy on common Norwegian vocabulary
- Given dictation is complete, When the peer mentor taps 'Done' or the field loses focus, Then the transcribed text is inserted into the originating field and the overlay closes
- Given a field is configured as sensitive by org field config, When dictation is triggered on that field, Then a warning dialog informs the peer mentor that the content will be processed by speech recognition before proceeding
- Given the user is using a screen reader (TalkBack/VoiceOver), When dictation completes, Then the live region announcer reads the inserted text aloud so the user can confirm the result without looking at the screen
Business Value
Speech-to-text directly addresses the single most cited barrier to consistent reporting across all three partner organisations. HLF recorded 380 individual registrations per peer mentor in one year — voice input dramatically lowers the effort required per entry, increasing data completeness for Bufdir reporting and reducing administrative burden on volunteers.
Components
- Dictation Microphone Button ui
- Recording State Indicator ui
- Transcription Preview Field ui
- Speech Recognition Service service
- Transcription State Manager service
- Native Speech API Bridge infrastructure
- Accessibility Live Region Announcer infrastructure
- Speech-to-Text Field Overlay ui
- Speech-to-Text Adapter infrastructure
- Organisation Field Config Loader infrastructure
- Sensitive Field Warning Dialog ui