The Flutter app is Local Whisper’s mobile speech-to-text surface. It gives iPhone and Android a recorder app, on-device model packs, searchable history, modes, and a native keyboard for text fields. Record in the app, keep history and model packs on the phone, and use modes to shape the finished text. By default, audio is transcribed on the phone; it goes to a server only when you set up the remote server and choose it. The iOS app requires iOS 16 or later. Apple SpeechTranscriber requires supported iOS 26 hardware.

Status

First-run flow

First launch shows setup before the tab shell:
  1. Welcome
  2. Model (Server when the remote server is chosen)
  3. Microphone
  4. Keyboard
  5. Practice
You can replay setup from Settings. The progress indicator is read-only; navigation happens through explicit actions. Optional model choices open in place.

Model packs

The Models tab lists only packs that run on the phone in hand: Pack downloads:
  • A confirmation shows the size and free space first, and warns when the phone is on mobile data.
  • Stop pauses a download; Resume continues from the part already downloaded, also after the app was closed.
  • Every file is checked against its checksum at a pinned revision before the pack is marked ready. Transient failures are retried.
  • Errors appear on the pack’s card. Removing a pack asks first.
Packs live in the app’s private storage and are not included in iCloud or Android backups.

Languages

Settings offers Detect automatically, English (US), English (UK), German, Persian, French, and Spanish. The chosen language reaches the engine on both platforms. If the selected pack does not support it, the app warns and names a pack that does; Parakeet-TDT covers the European languages, and Qwen3-ASR or WhisperKit cover Persian. Apple SpeechTranscriber needs a chosen language, not Detect automatically.

Recording

  • A Preparing state shows while the model loads; you can start talking meanwhile.
  • Leaving the app, a call, another app taking the microphone, or a disconnected microphone stops the recording and transcribes what was captured instead of deleting it.
  • The recording is kept until its text is saved. If transcription fails, Try again or Delete it.
  • Stop transcribing ends a transcription in progress.
  • Android splits long recordings into short parts before transcribing them.

Remote server

The phone has the same remote server engine as the Mac, with the same services (OpenAI, Groq, Mistral, or your own server) and rules:
  • https:// is required for internet servers; http:// works only for the phone itself and private network addresses.
  • The API key is stored in the Keychain on iPhone and encrypted with a Keystore key on Android. It is only sent to the server it was saved for and is not included in backups.
  • Check connection tests the address, key, and model.
  • The first use of an internet server asks you to confirm and names the host.
  • The Record screen says where audio goes, and each history entry records the engine and host that produced it.

Text cleanup

The Local Cleanup Engine removes sounds such as um, uh, erm, and ah, applies spoken punctuation, and fixes spacing. It keeps “like”, “you know”, and “I mean”, leaves decimals, domains, and times intact, and handles Persian and CJK sentence marks. Custom modes use deterministic offline formatting. Instructions containing bullets, notes, or list select bullet formatting; concise, message, chat, or single-line instructions flatten line breaks; task, prompt, or instruction adds a task prefix. Other instructions keep the cleaned text unchanged. Edit or delete custom modes from the Modes tab.

History and clipboard

History stays on the phone, keeps the latest 500 entries, and is not included in backups. The History tab shows saved entry count, total recorded duration, and approximate saved-history size. You can export history as Markdown to the clipboard, delete one transcript, or clear all history after confirmation. Auto-copy is off for new installs. Copies are local-only on iPhone, so they do not sync to other devices, and marked sensitive on Android.

Keyboards

The iPhone keyboard works without Full Access, so it cannot read transcripts or app settings and has no haptics. Dictate in the app, then paste. The Android keyboard reads its settings from the app: Keyboard haptics, and Keyboard punctuation keys, which hides the punctuation row when off.

Network use

The mobile app contacts:
  • huggingface.co and its download CDN, for model packs.
  • Apple’s servers, for Apple SpeechTranscriber language assets managed by iOS.
  • The remote server you set up, only while it is the chosen engine.

Architecture

Flutter owns the app shell, model-pack management, history, modes, settings, clipboard output, the remote server engine (lib/src/remote_engine.dart), and deterministic cleanup. Native iOS uses:
  • ios/Runner/LocalSpeechBridge.swift for microphone recording, WhisperKit/Core ML, and Apple SpeechTranscriber.
  • ios/Runner/LocalSetupBridge.swift for keyboard status, backup exclusion, free space, network status, local-only copies, and Keychain keys.
  • LocalWhisperUI/Sources/AppleSpeechCore/AppleSpeechCore.swift for the shared macOS/iOS SpeechAnalyzer implementation.
  • ios/LocalWhisperKeyboard/ for Verify, punctuation, and editing keys.
Native Android uses:
  • MainActivity.kt for microphone status, 16 kHz mono WAV recording, app settings, input-method settings, keyboard status, preference sync, sensitive copies, and Keystore-encrypted keys.
  • LocalWhisperInputMethodService.kt for Insert latest transcript, Verify, punctuation, Space, New line, Delete, settings, and haptics.
  • AndroidManifest.xml for microphone, network, haptics, app identity, launcher identity, backup rules, and input-method service.
  • lib/src/sherpa_speech_service.dart for Flutter-side sherpa-onnx transcription in a background isolate.

Android notes

Android debug QA can seed the recommended pack and interaction data:
Android requests microphone permission, records local WAV audio, shows levels, stores data locally, verifies the native input method, and transcribes with the installed sherpa-onnx model pack or the remote server. Debug QA seeds interaction state so emulator passes can exercise the app and keyboard flow without downloading a large model each time. Large model downloads can fail on flaky networks or temporary Hugging Face edge responses. The app retries transient failures automatically. If the install still fails, tap Resume after the connection is stable.

Checks

Run from src/flutter/local_whisper:
Download and verify the selected pack as part of a native transcription test on an iOS simulator or Android emulator:
The test selects WhisperKit on iOS and Parakeet INT8 ONNX on Android. Model downloads need network access; speech inference uses the installed local pack. --no-uninstall keeps the pack after the test. To reuse an installed pack, pass its path inside the running app’s current container:
To exercise Apple SpeechTranscriber, use a supported physical iOS 26 device. Simulators can report the runtime unavailable, which the test treats as an explicit capability result: