Inspiration

My grandma was struggling to read the labels on her medications, and she often didn't know how much of the medicine to take. This is extremely dangerous and can lead to overdose or significant underdosing.

Prescription labels are some of the smallest and most important text people deal with every day. Misreading one, or forgetting a dose, can send someone to the hospital. Older adults and people with low vision take the most medications and have the hardest time reading the labels. I wanted a tool that reads the label out loud and then makes sure you actually take the medication.

What it does

DoseVoice turns a prescription label into a spoken, organized daily plan.

  • Scan: Tap Take a photo and a live camera opens right in the browser. Gemini reads the label in seconds, and DoseVoice speaks it in plain language: drug, strength, directions, and warnings, with units spelled out ("500 milligrams", not "500 mg").
  • "Turn the bottle": Labels wrap around bottles. If the photo shows only the name and not the directions, DoseVoice says so out loud: "I can see the medication name, but not the directions. Turn the bottle and take a photo of the side with the directions." It then reads both photos together into one result.
  • Remind: Reminder times come straight from the label ("twice daily" becomes 9 AM and 9 PM), and you can edit them. At dose time DoseVoice speaks the reminder, shows a full-screen alert, and sends a browser notification with I took it and Snooze 10 min buttons.
  • Today: A "next dose" card, a progress ring, and a morning/afternoon/evening schedule. Take, Skip and Undo are one tap each, and overdue doses are highlighted.
  • Safety check: Gemini looks across all your saved medications for documented interactions (for example warfarin plus ibuprofen) and turns each one into a plain-language question to ask your pharmacist.
  • Honest by design: If part of a label is hard to read, DoseVoice says so and asks you to confirm with your pharmacist. It never invents directions, and it never tells anyone to stop a medication.
  • Accessible by design: three text sizes, high-contrast mode, light/dark themes, adjustable speaking speed, large touch targets, screen-reader announcements, keyboard navigation and reduced-motion support.

How I built it

  • Next.js 15, React 19 and TypeScript, with a custom design system (no UI library) built accessibility-first.
  • Google Gemini API (multimodal vision) with strict JSON response schemas for label reading and interaction checks, so the output is structured data rather than free text. The schema includes a confidence field and a missing field, which lets the app know when not to trust a read and what to ask for next. Multiple photos go in one request so Gemini can combine the sides of a bottle.
  • MongoDB Atlas stores medications and a per-day dose log (taken / skipped), which powers the Today view and progress tracking.
  • Browser APIs: getUserMedia for the in-page camera, the Web Speech API for text-to-speech, and a service worker for notifications with action buttons (which also makes them work on Android Chrome).
  • Deployed for free on Vercel, with HTTPS so phone cameras and notifications work.
  • I used Claude (Anthropic) to help us design the UI and debug the code.

Challenges I ran into

  • Labels wrap around bottles. One photo often shows only half the information. I had Gemini report exactly which fields are missing, and built a flow that asks for the other side and reads all photos together.
  • Trusting AI output for medication. A strict response schema plus confidence and missing-field signals made the results reliable and told us when to warn the user instead of guessing.
  • Designing for people who can't see the screen. Every action (scan, save, take, skip, snooze) gives spoken feedback, not just visual feedback.
  • Keeping it safe. The interaction checker only reports documented interactions and always frames them as questions for a pharmacist, never as instructions.
  • Model changes mid-hackathon. The Gemini model I started with was retired for new API keys, so I added automatic fallback between models.

Accomplishments that I'm proud of

  • From a photo to a spoken, structured result and a full daily schedule in seconds.
  • The "turn the bottle" flow, which feels like having a helper reading over your shoulder.
  • A polished, cohesive UI that also works with your eyes closed.
  • A built-in sample label, so anyone can try DoseVoice without a pill bottle.

What I learned

  • Structured output (JSON schemas) is what makes an LLM dependable enough for a health-adjacent app.
  • Accessibility is a design constraint from the start, not a feature you add later. Building for low vision made the app better for everyone.
  • Browser APIs (camera, speech, service workers) can deliver an app-like experience without an app store.
  • Deploying off of a free provider like Vercel allows a real-life demo, and is cost free. ## What's next for DoseVoice
  • Pill identification by shape and color, to catch mix-ups.
  • Caregiver alerts when a dose is missed.
  • Refill reminders using the "refills remaining" field.
  • Multilingual speech for non-English speakers.
  • An installable app (PWA) with push reminders even when the browser is closed.

Built With

Share this project:

Updates

Submission history