Inspiration

Speech runs at about 150 words a minute. Typing into a communication app is often under 10. For someone with ALS, after a stroke or after throat cancer, the reply is ready when the conversation has already moved on. Sending every word a person says to a server is not an answer either: that is their whole voice. So the phone has to do the work.

What it does

Halfway is an iPhone app for adults who can read and spell but can't speak, or can't speak reliably.

  • Letters. Type the first letter of each word (iwtgh) and tap the sentence you meant ("I want to go home"). Only sentences that match your letters are shown.
  • Listen and reply. The phone hears the other person, on the device, and offers three replies. If the question is about your calendar or a note you saved ("When is your physio?"), the reply uses the real entry and shows the line it came from.
  • My people. Saved names turn wib into "Where is Bruno?" with no model at all.
  • Boards. Describe a situation ("dentist appointment tomorrow") and Gemini builds a phrase board, saved on the phone so it works offline.
  • Look. Photograph a menu or a sign and get three things to say about it. Photos never leave the phone.
  • Help, Show it, Introduce me, Everyday phrases, and a choice of languages.
  • A privacy choice the user makes. "Only this phone" keeps every word on the device. "This phone first" adds Gemini as a fallback, and every cloud answer is labelled.

How I built it

Swift and SwiftUI, with one Apple API for both models: a LanguageModelSession runs either on Apple's on-device model (Apple Foundation Models) or on Gemini through Firebase AI Logic's geminiLanguageModel. One small, unit-tested router picks the model for each request from three things: the user's privacy choice, whether the on-device model is available, and a Firebase Remote Config switch.

Feature Runs on
Letters, replies, Look Apple's on-device model
Letters and replies in "This phone first", when the phone can't answer or its model doesn't speak the language Gemini through Firebase AI Logic
Boards Gemini through Firebase AI Logic

Also used: App Check (enforced for AI Logic), Remote Config (the on-device switch and the model names), Anonymous Authentication and Cloud Firestore (a copy of each board, owner-only rules with emulator tests).

The part I'm proudest of: small on-device models ignore "one word per letter". Halfway turns the typed letters into a pattern and gives it to the model as a constraint (guided generation), then checks every suggestion again in code. On a 20-sentence test set the intended sentence was in the top three 16 times, against 11 with plain prompting (measured with Apple's on-device model on a Mac). In the video the iPhone answers in two to three seconds with airplane mode on.

Challenges I ran into

  • Instructions alone did not make the on-device model follow the letters; constrained output did.
  • The on-device model did not reliably choose to look at the calendar, so the app finds the matching entry in code and hands it to the model with the question.
  • An example sentence in a prompt was repeated by the model as if it were on a photographed menu. The example is gone, and the model is told to name only what is in the picture.
  • One cloud model accepted requests and never answered on the free tier. The model name is a Remote Config value, so switching needed no app update.

Accomplishments that I'm proud of

In "Only this phone", nothing the person types, hears or is offered reaches the cloud, including when the on-device model fails or refuses. The router can only return "on-device" or "unavailable" in that mode, and unit tests pin it. Saved names, notes, the calendar, photos and the other person's voice never leave the phone in any mode. 230 unit tests.

What I learned

Hybrid is not a fallback checkbox. The phone should do the conversation, because that is private and works with no signal; the cloud should do the one job that needs knowledge of the world.

What's next for Halfway

Testing with AAC users and speech-language therapists (none has tried it yet), restoring boards from the cloud copy, App Attest for release builds, and the Chrome version: a web preview is in the repository, but its on-device path is not verified, so this entry is for iOS.

Everything was written during the submission period (Nov 17 to 30, 2026) with AI coding assistants. The web preview's build setup starts from Sourcecheck, an earlier project of mine for this same hackathon, as the repository's NOTICE says. Halfway is a communication aid, not a medical device.

Built With

  • apple-foundation-models
  • cloud-firestore
  • firebase-ai-logic
  • firebase-app-check
  • firebase-authentication
  • firebase-remote-config
  • gemini
  • swift
  • swiftui
Share this project:

Updates

Submission history