Repository navigation
Description
Summary
Upgrade and improve speech-to-text capabilities beyond the current WhisperKit implementation, potentially leveraging Apple's enhanced on-device speech recognition in iOS 18+.
Context
WhisperCode currently uses WhisperKit for voice input on iOS 18+, with a fallback to SFSpeechRecognizer (Apple's Speech framework) for older devices. While this works for basic voice input, there's potential for significant quality improvements.
Current Implementation
The app currently:
- Uses WhisperKit with the
openai_whisper-tiny.enmodel on iOS 18+ - Falls back to SFSpeechRecognizer for older iOS versions
- The fallback handles audio recording and resampling for Whisper compatibility
Motivation
- Better accuracy: Newer Apple speech recognition models may offer improved transcription quality
- On-device processing: iOS 18+ offers enhanced on-device speech recognition with better privacy
- Reduced latency: Apple's native speech framework may be faster than running Whisper locally
- Language support: Better multilingual support through native iOS speech recognition
- Battery efficiency: Potentially lower power consumption using Apple's optimized speech recognition
Considerations
-
iOS 26 Speech Recognition: Research what's new in Apple's speech recognition (SFSpeechRecognizer) for iOS 26 - there may be improved on-device models, better accuracy, or new APIs
-
Hybrid Approach: Consider using Apple Speech for most cases, with WhisperKit as a fallback or for specific use cases where it excels
-
Model Selection: If continuing with WhisperKit, evaluate larger/better models beyond "tiny"
-
Quality vs Speed Tradeoff: Balance transcription quality against latency for real-time voice input
-
Offline Support: Ensure robust functionality without network connectivity
Potential Improvements
- Upgrade to larger Whisper models (base, medium) if device permits
- Better handling of technical terminology (code-specific vocabulary)
- Improved punctuation and formatting
- Better handling of interruptions and corrections
- Multi-language support improvements
Scope
- Audit current speech-to-text quality and identify pain points
- Research iOS 26 speech recognition capabilities
- Benchmark Apple Speech vs WhisperKit accuracy
- Implement improvements with proper fallback handling
- Add settings for users to choose preferred engine
Labels
- enhancement
- ios-specific
Activity
m13v commentedon Mar 18, 2026
we use WhisperKit for on-device transcription in our macOS app and have been comparing it against Apple's SFSpeechRecognizer. the main advantage of WhisperKit is you get the Whisper model quality without sending audio to Apple's servers. but Apple's enhanced on-device recognition in macOS 15+ has gotten surprisingly close in accuracy for English. one thing worth exploring: a hybrid approach where you use SFSpeechRecognizer for real-time streaming (it handles partial results better) and WhisperKit for final transcription quality. the latency tradeoff depends on your use case.
m13v commentedon Mar 18, 2026
here's our WhisperKit transcription service that handles both streaming and batch modes: https://github.com/m13v/fazm/blob/main/Desktop/Sources/TranscriptionService.swift - the streaming setup handles partial results while WhisperKit processes the full audio buffer for final transcription.