CRITICAL story-speech-to-text-input-peer-mentor-003 3 pts
3
Story Points
Critical
Priority
Speech-to-Text Input
Feature

User Story

As a Peer Mentor (Likeperson)
I want the speech-to-text feature to be available only on fields designated for dictation and not on sensitive identity or credential fields
So that personal data such as names, national identity numbers, and encrypted content is never inadvertently routed through third-party speech recognition services

Acceptance Criteria

  • Given a field is of type 'password', 'encrypted', or is flagged as sensitive in org field config, When the report screen renders, Then no microphone button appears on that field
  • Given a notes or description field is not restricted, When the report screen renders, Then the microphone button is visible and accessible with a minimum touch target of 44x44dp
  • Given a coordinator attempts to dictate into a field dynamically added by org field config that is marked restricted, When the field renders, Then dictation is suppressed without any error being shown to the user
  • Given the app is configured for an organisation that has all free-text fields unrestricted, When a peer mentor views the report, Then all free-text fields show the microphone button
  • Given a screen reader user navigates to a dictation-enabled field, When they focus the microphone button, Then the accessible label reads 'Activate voice dictation for [field name]'

Business Value

GDPR compliance and partner trust depend on ensuring that no sensitive personal information — particularly medical data processed by Blindeforbundet and NHF — is routed through external speech recognition APIs. Restricting dictation to appropriate fields is a prerequisite for all partner organisations to enable this feature.