What problem does it solve?
Speech-to-text integration is hard because you must handle microphone/speech authorization, wire audio capture or file input, and correctly manage partial vs final transcription results.
Core Features & Use Cases
- Live microphone transcription: Connect
AVAudioEngine to SFSpeechAudioBufferRecognitionRequest and stream recognized text while recording.
- Pre-recorded audio transcription: Recognize speech from local audio files using
SFSpeechURLRecognitionRequest (server-based behavior).
- iOS 26+ modern pipeline: Use the actor-based
SpeechAnalyzer with modular SpeechTranscriber components, including required asset installation via AssetInventory.
- On-device vs server recognition: Select offline/on-device recognition when supported and configure request options appropriately.
- Practical result handling: Process best transcription, alternatives, confidence segments, punctuation, and contextual strings.
Quick Start
Ask the AI to provide an end-to-end Swift example that requests both speech and microphone permissions, starts live transcription from the microphone, and prints the final recognized text.