User Interface medium complexity mobile
1
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

A reusable Flutter widget that provides a microphone button, real-time recording indicator, and stop control for voice dictation. It attaches to any text field (activity notes, structured report fields) and streams partial transcription results into the field as the user speaks, with full editing capability before submission.

Feature: Speech-to-Text Input

speech-input-widget

Responsibilities

  • Display microphone toggle button with clear recording state indicator
  • Show real-time partial transcription text as speech is recognized
  • Provide prominent stop button to end dictation session
  • Insert final transcribed text into the active text field at cursor position
  • Request and handle microphone permission with user-friendly explanation

Interfaces

startDictation(targetFieldController: TextEditingController)
stopDictation()
onTranscriptionUpdate(String partial)
onTranscriptionComplete(String final)
onError(STTError error)
isRecording: ValueNotifier<bool>
requestMicrophonePermission()

Relationships

Dependencies (1)

Components this component depends on