Infrastructure medium complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Platform abstraction layer that wraps the speech_to_text Flutter package and the underlying native speech recognition engines (SFSpeechRecognizer on iOS and android.speech.SpeechRecognizer on Android). Isolates platform-specific initialization, locale enumeration, and permission negotiation from the service layer, enabling testability and future engine substitution.

Feature: Speech-to-Text Input

speech-api-gateway

Responsibilities

  • Abstract platform-specific speech recognition initialization
  • Enumerate available recognition locales from native engine
  • Negotiate and cache microphone permission state
  • Translate native recognition callbacks into typed Dart events

Interfaces

initialize()
List<LocaleName> getAvailableLocales()
startRecognition(SpeechConfig config)
stopRecognition()
cancelRecognition()
PermissionStatus getMicrophonePermission()
requestMicrophonePermission()
Stream<NativeSpeechEvent> get eventStream
bool get isPlatformSupported
dispose()