Service Layer medium complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Business logic layer that wraps Flutter's speech_to_text package and manages the full recognition session lifecycle. Delegates to the platform's native engine (SFSpeechRecognizer on iOS, SpeechRecognition on Android), handles interim and final results, and exposes a clean API to UI components. No audio data leaves the device.

Feature: Speech-to-Text Input

speech-recognition-service

Responsibilities

  • Initialize and manage speech_to_text plugin session
  • Deliver interim and final transcript results via streams
  • Handle recognition errors and expose typed error states
  • Enforce session timeout and maximum duration limits

Interfaces

initialize()
startListening({required String locale})
stopListening()
cancelListening()
Stream<SpeechResult> get transcriptStream
Stream<SpeechStatus> get statusStream
bool get isAvailable
bool get isListening
dispose()