HIGH story-speech-to-text-input-peer-mentor-006 3 pts
3
Story Points
High
Priority
Speech-to-Text Input
Feature

User Story

As a Peer Mentor (Likeperson)
I want the recognized text to be inserted into the text field as editable content so I can correct any recognition errors before saving
So that So that I can submit accurate activity notes even when the speech engine mishears a word, maintaining the quality of documentation without needing to retype everything from scratch

Acceptance Criteria

  • Given a recording session completes successfully, when the transcript is inserted, then the text field displays the recognized text as editable content with the cursor at the end
  • Given the transcript has been inserted, when the peer mentor taps any word in the field, then the cursor moves to that position for correction
  • Given the peer mentor edits the transcript, when they submit the activity form, then the edited (not original) transcript is saved as the activity summary
  • Given a transcript is inserted, when the peer mentor inspects device storage or network traffic, then no audio file or recording artifact is present — only the text string
  • Given the transcript is inserted into a field with existing content, when insertion occurs, then existing content is either appended to or replaced consistently according to the widget configuration for that field

Business Value

Speech recognition accuracy on mobile devices is high but not perfect. Making the transcript editable rather than final is essential for data quality — peer mentors must be able to correct errors before submitting reports that feed into Bufdir compliance documentation. This also reinforces the privacy model: users see exactly what was captured and can control it before it enters the database.