Lingora
Real-time speech translation for live events. The speaker talks once, and listeners scan a QR code, pick a language and hear the translation in their browser.
The problem
Some gatherings have people who speak different languages listening to the same speaker at the same time: church services, conferences, sports events, lectures, company all-hands. For translation to work there, it has to arrive fast enough to still feel live, and nobody in the room should need to install anything.
What I built
Lingora is the whole product in one monorepo: a Next.js web app, the database schema in Drizzle, Stripe metered billing, and a standalone Node worker that handles the audio.
The speaker talks into a phone or laptop. Listeners scan a QR code, choose their language from more than 100, and hear the speaker translated in their browser, with a target of under a second. There’s no app to install and no limit on listeners per event.
How it works
The worker runs one streaming chain per target language:
- The speaker’s microphone goes over WebRTC into a LiveKit Cloud room, one room per event (for example
lingora-ABC123). - The worker, a long-lived Node process, subscribes to the speaker’s audio.
- Gladia Solaria-1 transcribes it over a WebSocket and streams partial results.
- Gemini 2.5 Flash translates the text as it streams in.
- Cartesia Sonic-3 turns the translation into speech over a WebSocket.
- The worker publishes that audio back into the room as a track named
translation-<lang>. - Each listener’s browser subscribes to the one language track it needs.
Every 30 seconds the worker reports usage to /api/usage. The API stores the event in Postgres and forwards it to Stripe’s billing meter. Free-trial quotas are enforced at the API layer.
| Layer | Choice |
|---|---|
| Web app | Next.js 15, React 19, TypeScript, Tailwind CSS v4, shadcn/ui |
| Auth | Clerk |
| Database | Neon serverless Postgres with Drizzle ORM |
| Billing | Stripe Billing Meters (metered subscriptions) |
| Audio transport | LiveKit Cloud (WebRTC fan-out) |
| Speech to text | Gladia Solaria-1, streaming |
| Translation | Gemini 2.5 Flash, streaming |
| Text to speech | Cartesia Sonic-3, streaming |
| Monorepo | pnpm workspaces and Turborepo |
| Hosting | Vercel for the web app, Docker on Railway, Fly.io or Render for the worker |
Decisions and trade-offs
The worker is a separate service. It keeps WebSocket connections open for as long as an event runs, which doesn’t fit a serverless function, so it runs as its own Node process in Docker while the web app stays on Vercel.
Every stage streams. Transcription sends partial results, translation streams tokens, and speech synthesis streams audio, so each stage starts before the previous one has finished. Waiting for full sentences at every step would put the under-a-second target out of reach.
Adding a listener costs one more WebRTC subscriber on a LiveKit track. Adding a language costs one more transcription, translation and speech chain. So the cost of an event grows with the number of languages much more than with the size of the audience.
Billing is metered. The worker reports usage every 30 seconds and Stripe’s meter turns it into the invoice.
LiveKit, Clerk and Neon cover WebRTC fan-out, auth and Postgres hosting, so the code in the repo is the product itself. The trade-off is more vendors in the critical path.
Status
The full monorepo is on GitHub, linked above. This page describes the architecture as it is in the repo.