Configure Speech Input Preferences
Speech input preferences are accessible from the app's Settings screen. Available settings include: recognition locale (defaults to device locale, can be overridden to a supported language), noise gate threshold (adjustable for noisy environments), and a global enable/disable toggle for the speech input microphone icons. Preferences are stored locally using shared_preferences via the Speech Preferences Repository — no backend dependency. Settings take effect immediately on the next recording session. The locale selector only shows languages supported by the device's native recognition engine.
User Story
Acceptance Criteria
- Given the peer mentor navigates to Settings, when they select Speech Input, then a settings panel is shown with locale, noise gate, and enable/disable options
- Given the peer mentor selects a different recognition locale, when they start a new recording session, then the Speech Recognition Service uses the selected locale for recognition
- Given the peer mentor disables speech input globally, when they view text fields that previously showed a microphone icon, then no microphone icon is displayed
- Given the peer mentor adjusts the noise gate threshold, when they record in a noisy environment, then audio below the threshold is filtered before being passed to the recognition engine
- Given preferences have been saved, when the peer mentor closes and reopens the app, then all speech input preferences are restored from local storage without requiring re-configuration
Business Value
Preference control is important for inclusivity — some peer mentors may use the app in group settings, public spaces, or quiet hospitals where speaking aloud is inappropriate. A global disable toggle ensures those users are not inconvenienced by microphone icons they do not want. Locale configuration ensures accurate recognition for mentors who prefer to dictate in languages other than the device default, relevant for potential future multilingual support including Sami language (noted by NHF).
Components
- Speech Preferences Repository data
- Speech Recognition Service service
- Speech API Gateway infrastructure