Dictate Activity Summary Using Speech
The activity wizard's summary field displays an inline microphone icon rendered by the Speech Input Widget. The peer mentor taps the icon to begin a dictation session, speaks their activity summary, and the recognized transcript is automatically inserted into the TextEditingController for the field. The mentor can then review and adjust the text before submitting. Recording is strictly post-conversation — not ambient capture during the actual peer support session. On-device speech recognition (SFSpeechRecognizer on iOS, SpeechRecognition on Android) processes audio locally with no data transmitted to external servers.
User Story
Acceptance Criteria
- Given the peer mentor is on the activity summary step of the wizard, when they tap the microphone icon, then the Voice Recording Control activates and a recording session begins with clear visual indication
- Given a recording session is active, when the peer mentor speaks aloud, then the Speech Recognition Service processes audio via the native engine and produces a recognized transcript
- Given recognition produces a transcript, when the session ends, then the full transcript is inserted into the activity summary text field replacing any placeholder text
- Given the transcript has been inserted, when the peer mentor reviews the field, then they can freely edit the text before tapping Save or Next
- Given a recording session is in progress, when audio processing occurs, then no audio data is transmitted to any external server — all processing is on-device
Business Value
Both Blindeforbundet and HLF explicitly requested speech-to-text for report writing. The activity summary is the most free-form and cognitively demanding field in the wizard. Removing the typing burden — especially on mobile — directly reduces underreporting and improves data quality for coordinator oversight and Bufdir documentation. Critical for visually impaired and motor-impaired peer mentors who may be unable to type independently.
Components
- Speech Input Widget ui
- Voice Recording Control ui
- Speech Recognition Service service
- Audio Processing Service service
- Speech API Gateway infrastructure