Inspiration

People with ALS/MND, cerebral palsy, a removed voice box or speech loss after a stroke often still spell perfectly — but typing every letter with one finger, a switch or eye-gaze is far slower than speech, and conversations move on without them. Many others can't spell at all, and most people with aphasia also find fast speech hard to follow. Speech therapists answer that with "Supported Conversation": write down key words, point to pictures. AAC apps help people speak; almost none help with the listening half.

These are conversations with doctors, partners and carers — private, all day, often offline. That's why the AI had to run on the device first.

What it does

Voicebridge is an AAC app for iPhone and the web.

  • A few letters become the sentence you mean. ok bt tird → "It was okay, but I'm tired." Three choices stream in; tap one and it's spoken — in your own Personal Voice on iPhone.
  • Pictures for people who can't spell. Tap me · drink · tea → "I want tea." With Balanced or Best quality, Gemini draws your own tiles (your dog, your mug) in the same style, once; after that they work offline.
  • Help me understand. When the other person speaks, Voicebridge shows the key words with pictures and one plain sentence: "Your appointment with the physio moved to Thursday at three, Meena will drive you" → Meena · physio · Thursday · 3 pm and "Meena will drive you to your physio on Thursday at 3 pm." Pictures come from the tile set and 46 pre-drawn common words; with Balanced or Best quality, a missing one is drawn by Gemini on demand. A key word is kept only if it was actually said, so the key words never show a name or time nobody mentioned.
  • Instant replies. It hears the other person (on-device speech recognition) and offers answers before a letter is typed: "Do you want tea or coffee?" → Tea, please. · Coffee, please.
  • Sounds like you. It learns how you shorten words (bd → "Bruno, down!"). What it learns is stored on the device and never synced.
  • Look. Point the camera at a menu; suggestions know Masala dosa is in front of you.
  • Real details from real sources (iPhone): your next appointment from Calendar and where you are, looked up by the app (a sentence stating a time or place that didn't come from them is dropped), and texts to a carer (tell mna tired → a text to Meena) — you always press Send.
  • Urgent detection, tones, read-along, sync between iPhone and web.
  • One privacy choice: Private (on-device only, the default), Balanced (cloud only when the device can't), Best quality (cloud first, device as backup). A badge always shows where the last suggestion ran.

How we built it

Every generative AI call (text, images and the cloud voice) goes through Firebase AI Logic, with the hybrid SDK on both platforms. Speech recognition and text-in-photo reading use the platform's own on-device APIs.

  • iOS (SwiftUI): HybridModel(primary: SystemLanguageModel(...), secondary: geminiModel) — Apple Foundation Models on the iPhone first, Gemini as the fallback. Best quality flips it to HybridModel(primary: gemini, secondary: system).
  • Web (TypeScript): InferenceMode.PREFER_ON_DEVICE / ONLY_ON_DEVICE with Chrome's built-in Gemini Nano, and PREFER_IN_CLOUD for Best quality. inferenceSource drives the on-device badge.
  • Structured output on both: @Generable structs on iOS, one JSON Schema for Nano (responseConstraint) and the cloud (responseJsonSchema) — for suggestions {sentences, urgent} and for Help me understand {simple, words}.
  • Streaming — the first sentence shows before the rest is written.
  • Image generation for picture tiles (the shipped sets were drawn this way; personal tiles and missing key-word pictures are drawn in the app with gemini-3.1-flash-lite-image); image input for Look; function calling (a whereAmI tool with Best quality); Gemini TTS for expressive tones.
  • Remote Config holds the main prompts (suggestions, replies, pictures, Help me understand) and the model names — when an OS update changed Apple's model, most fixes shipped without an app release. App Check (reCAPTCHA Enterprise on the hosted web app; the debug provider on iOS, with judges' token instructions in the README), Authentication (email and password) + Firestore for opt-in sync of profile and quick phrases, Hosting for the web app.
  • A shared, pure core (prompt building, parsing, safety guards) is implemented twice — TypeScript and Swift — and both are tested against the same shared/vectors.json.

Challenges we ran into

  • The on-device model changed under us. After updating the phone to iOS 27, our unchanged build fell from ~80% to 28% on our typing eval: the new OS shipped a new system model. Apple's adapter toolkit doesn't support it, so we re-measured on the phone after every change and fixed it with prompts delivered by Remote Config (held-out 35% → 60%), plus the Best quality switch.
  • Small models invent facts. Given tools, Apple's model often answered without calling them ("My appointment is at 1700 hours"); asked for key words, it once added a name nobody said. For someone whose words these are, a wrong detail is worse than none — so the app looks up the calendar and place itself, drops any time or place that didn't come from a real source, and keeps a key word only if it was said.
  • Guardrails: Apple's default guardrails refused 31 of 50 ordinary prompts ("Thanks for today"); rewriting the user's own text is a content transformation, and the permissive setting fixed it.
  • Image rate limits: the image model returns 429 after a couple of quick pictures, so tiles are pre-drawn and shipped, and on-demand drawing is one at a time with retries and a word card meanwhile.

Accomplishments that we're proud of

One app, two on-device models (Apple Foundation Models and Gemini Nano), one hybrid SDK, measured on our own eval set (typing is scored strictly: the exact expected sentence must be in the top 3):

  • Held-out typing (never tuned on): iPhone on-device 60%, Chrome Gemini Nano 75%, Best quality 80%.
  • Sounds like you (without → with learned examples): iPhone 0 → 8, Gemini Nano 0 → 9 out of 10.
  • Help me understand (12 lines): iPhone 9/12, Gemini Nano 10/12, Best quality 11/12.
  • Calendar, place and texts to carers (iPhone): 8/10 on-device, 10/10 with Best quality.
  • Zero wrong texts to carers in every run; no invented names or times in Help me understand.
  • A complete product: onboarding, settings in plain language, keyboard-only web use, dark mode, sync.

What we learned

  • A hybrid app must re-measure its on-device model after every OS update — and keep prompts in Remote Config so the fix ships the same day.
  • Retrieval beats rules for small models: showing the model the user's own past abbreviations took personal items from 0/10 to 8–9/10.
  • Guard in code, not just in the prompt. The reliable fixes for invented details were small, tested functions that check the model's output against what was actually said or looked up.

What's next for Voicebridge

Testing with AAC users and speech-language therapists; Android (with a Nano-capable device); calendar and carer texts on the web; core-vocabulary picture layouts.

Built With

Share this project:

Updates

Submission history