STT Service
Component Detail
Service Layer
medium complexity
Shared Component
mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Shared speech-to-text service that delegates to the platform-specific STT Provider Adapter. Accepts a start-recording command, streams partial transcription results, and emits a final text string on stop. The Note Editor Screen calls injectTranscribedText() to insert the result at the current cursor position.
stt-service
Responsibilities
- Start and stop voice recording sessions on user command
- Stream partial transcription results to the caller in real time
- Emit final transcribed text on recording completion
- Report STT errors and permission-denied states to the caller
Interfaces
startListening(locale: String)
stopListening(): Future<String>
onPartialResult(callback: (String) => void)
onFinalResult(callback: (String) => void)
onError(callback: (SttError) => void)
requestMicrophonePermission(): Future<bool>
isAvailable(): bool