MEDIUM story-speech-to-text-input-peer-mentor-007 5 pts
5
Story Points
Medium
Priority
Speech-to-Text Input
Feature

User Story

As a Peer Mentor (Likeperson)
I want speech dictation to be available in any text field across the app that has opted in to the Speech Input Widget
So that So that I can dictate not just the activity summary but also contact notes, event descriptions, and other free-text areas without switching to a separate tool

Acceptance Criteria

  • Given a text field has been wrapped with the Speech Input Widget, when the peer mentor views the field, then a microphone icon is visible adjacent to the field
  • Given multiple text fields on the same screen are wrapped with Speech Input Widget, when the peer mentor taps the mic on one field, then only that field's session is activated and the others remain inactive
  • Given a recognition session completes on a wrapped field, when the transcript is inserted, then the text is injected into the correct TextEditingController for that field
  • Given a new text field in a future screen needs speech input, when a developer wraps it with SpeechInputWidget passing the controller, then speech input becomes available without modifying the Speech Recognition Service or Voice Recording Control
  • Given the app is on a screen with no opted-in speech fields, when the peer mentor navigates the screen, then no microphone icon is displayed

Business Value

The composable widget architecture ensures speech input is not a one-off feature bolted onto the activity wizard but a reusable capability that reduces typing load across the entire app. This is especially valuable for contact notes — another free-text field where peer mentors document important personal and health context. Reducing typing friction across all notes fields directly supports the accessibility and low-cognitive-load design principles central to the project.