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

User Story

As a Peer Mentor (Likeperson)
I want to receive clear, accessible error messages when speech recognition fails
So that So that I understand what went wrong and know how to recover — whether that means retrying, adjusting my environment, or falling back to typing

Acceptance Criteria

  • Given the peer mentor taps the mic but does not speak within the timeout window, when the session expires, then a 'No speech detected' message is shown with a retry prompt
  • Given microphone permission was revoked in device Settings between sessions, when the peer mentor taps the mic, then a 'Microphone access required' message is shown with a link to device Settings
  • Given the native speech engine fails to initialize (e.g., locale not supported), when recording is attempted, then an accessible error message is shown and the field remains unchanged
  • Given any error occurs, when a screen reader is active, then the error message is announced automatically without requiring navigation
  • Given an error has been displayed, when the peer mentor taps the mic again, then the error clears and a new session can begin

Business Value

For users with visual impairments or cognitive challenges, silent or cryptic failures are especially disorienting. Clear, actionable error messages prevent users from assuming the feature is broken, and ensure the fallback path (manual typing) is obvious. This is particularly important for Blindeforbundet users who may be relying on speech input as their primary input method.