How air-whisper/airwhisper works
AirWhisper is an assistive communication system: users compose text on Apple Watch through motion-based handwriting or quick phrases, then speak it, save it, or send it to a contact. An iPhone companion manages account setup, contacts, phrases, watch settings, and synchronization. The graph includes documented AirWrite recognition and OrientWrite motion paths, plus companion persistence and authentication. Some subsystem relationships are based on the SOURCE INDEX rather than complete source excerpts; unverified links are omitted.
Main entry points: QuickSpeakView.swift Quick Speak · WatchConnectivityClient.swift Watch connectivity · OrientWriteView.swift OrientWrite screen · ActionRequiredView.swift Text actions
Components 24
Watch experience
- Watch app
AirWhisper Watch App/App/WAAirWhisperApp.swift - Watch home
AirWhisper Watch App/Views/ContentView.swift - Quick Speak
AirWhisper Watch App/Views/QuickSpeakView.swift - AirWrite screen
AirWhisper Watch App/Views/AirWriteView.swift - OrientWrite screen
AirWhisper Watch App/Views/OrientWriteView.swift - Text actions
AirWhisper Watch App/Views/ActionRequiredView.swift - Contact selection
AirWhisper Watch App/Views/ContactSelectView.swift
Watch input and services
- AirWrite recorder
AirWhisper Watch App/Motion/AirWriteMotionRecorder.swift - Motion samples
AirWhisper Watch App/Motion/MotionSample.swift - Recognition runner
AirWhisper Watch App/ML/AirWriteMLRunner.swift - Stroke preprocessing
AirWhisper Watch App/ML/AirWritePreprocessor.swift - OrientWrite motion
AirWhisper Watch App/Motion/OrientWriteMotionManager.swift - Handwriting service
AirWhisper Watch App/Services/GoogleHandwritingService.swift - Phrase manager
AirWhisper Watch App/Services/PhraseManager.swift - Speech output
AirWhisper Watch App/Services/SpeechService.swift - Watch connectivity
AirWhisper Watch App/Services/WatchConnectivityClient.swift
iPhone companion
- Companion home
AirWhisperCompanionApp/HomeViewController.swift
Account and sync
- Authentication
AirWhisperCompanionApp/Services/AuthService.swift - Companion data
AirWhisperCompanionApp/DataModels/DataManager.swift - Local and cloud storage
AirWhisperCompanionApp/DataModels/StorageManager.swift - iPhone connectivity
AirWhisperCompanionApp/Services/WatchConnectivityManager.swift
Other components
- Watch user
- iPhone user
- Authentication backend
Connections 29
- Watch user → Watch app: opens
- Watch app → Watch home: shows
AirWhisper Watch App/App/WAAirWhisperApp.swift - Watch app → Watch connectivity: initializes
AirWhisper Watch App/App/WAAirWhisperApp.swift - Watch home → Quick Speak: opens
AirWhisper Watch App/Views/ContentView.swift - Quick Speak → AirWrite screen: opens
AirWhisper Watch App/Views/QuickSpeakView.swift - Quick Speak → OrientWrite screen: opens
AirWhisper Watch App/Views/QuickSpeakView.swift - Quick Speak → Text actions: opens
AirWhisper Watch App/Views/QuickSpeakView.swift - Quick Speak → Phrase manager: uses
AirWhisper Watch App/Views/QuickSpeakView.swift - AirWrite screen → AirWrite recorder: records strokes
- AirWrite recorder → Motion samples: produces samples
AirWhisper Watch App/Motion/AirWriteMotionRecorder.swift - Recognition runner → Stroke preprocessing: preprocesses with
AirWhisper Watch App/ML/AirWriteMLRunner.swift - Recognition runner → Motion samples: consumes
AirWhisper Watch App/ML/AirWriteMLRunner.swift - OrientWrite screen → OrientWrite motion: tracks movement
AirWhisper Watch App/Views/OrientWriteView.swift - OrientWrite screen → Handwriting service: requests recognition
AirWhisper Watch App/Views/OrientWriteView.swift - OrientWrite screen → Watch connectivity: reads settings
AirWhisper Watch App/Views/OrientWriteView.swift - Text actions → Contact selection: opens
AirWhisper Watch App/Views/ActionRequiredView.swift - Text actions → Phrase manager: saves phrase
AirWhisper Watch App/Views/ActionRequiredView.swift - Text actions → Speech output: speaks text
AirWhisper Watch App/Views/ActionRequiredView.swift - Contact selection → Watch connectivity: sends message
AirWhisper Watch App/Views/ContactSelectView.swift - Phrase manager → Watch connectivity: syncs phrases
AirWhisper Watch App/Services/PhraseManager.swift - Watch connectivity → iPhone connectivity: exchanges data
- iPhone user → Companion home: uses
- Companion home → Companion data: reads settings
AirWhisperCompanionApp/HomeViewController.swift - Companion data → Local and cloud storage: persists data
AirWhisperCompanionApp/DataModels/DataManager.swift - Companion data → iPhone connectivity: syncs watch data
AirWhisperCompanionApp/DataModels/DataManager.swift - iPhone connectivity → Companion data: updates from watch
AirWhisperCompanionApp/Services/WatchConnectivityManager.swift - iPhone connectivity → Authentication: refreshes credentials
AirWhisperCompanionApp/Services/WatchConnectivityManager.swift - Authentication → Authentication backend: sends auth requests
AirWhisperCompanionApp/Services/AuthService.swift - Authentication → Local and cloud storage: stores credentials
AirWhisperCompanionApp/Services/AuthService.swift