Skip to main content
Stream transcription provides real-time results as audio is being processed, enabling responsive voice interfaces.

Basic Usage

Method Signature

Parameters

Returns

STTOutput with the final complete transcription.

STTTranscriptionResult

Live Transcription Example

SwiftUI Integration

Voice Command Detection

Use streaming STT to detect commands in real-time:

Performance Tips

Process audio in chunks of 1-2 seconds for best balance of latency and accuracy.
Clear audio buffers after processing to prevent memory growth during long sessions.
Transcription runs in background threads automatically. Update UI on MainActor.

Error Handling

Basic Transcription

Non-streaming transcription →

STT Options

Configure transcription →