Lectura is a one-button page in Spanish: tap Hablar, speak, tap Detener, and the text you said appears on screen. The next tap clears it and starts again. That's the whole app.
How easy it was
Getting Lectura from idea to live on lectura.marso.ar took about 5 minutes of my attention and work. Almost none of it went into infrastructure, because the infrastructure already existed:
- The app was a copy, not a rewrite. The Thai practice app already
recorded audio in the browser and sent it to a speech-to-text API. Lectura keeps that
shape and drops the rest: no exercises, no scoring, just audio in and Spanish text out
(
language=eson the Orchardrun transcription API). - The delivery pipeline was a copy too. The same GitHub Actions workflow runs the
tests, builds the image to GHCR and commits the new tag to the Kubernetes manifests.
The only new piece was one Argo CD Application pointing at the new repo. From then on,
every push to
maindeploys itself. - The domain was one line. DNS for marso.ar is code (DNSControl), so
lectura.marso.arwas a singleArecord in one commit. Cloudflare proxies it and provides HTTPS. - The manual steps were a handful of one-time clicks and commands: create the GitHub repo, apply the Argo CD Application, and create the Kubernetes Secret with the Orchardrun API key by hand on the cluster, so it never touches git.
I built it with Claude Code as a pair: I described what I wanted (the button, the Spanish wording, the clear-and-record-again behaviour) and reviewed each step, and the reusable pieces above did the rest.
This is the prompt that started it:
OK, now let's create a new project based on the thai language transcription. But it's for spanish ASR. The fqdn will be lectura.marso.ar and the frontend will provide a button (in spanish language all the site) to push to talk, and then send it to the orchard api and write the text reconized. That's it. Next time user push the button, the former text is deleted and new voice is being recorded until stoped and send again to orchard api.
What's inside
- Frontend: one static page with plain JavaScript.
MediaRecorderrecords in the browser's own format (WebM/Opus in Chrome and Firefox, MP4 in Safari) and stops on its own after 60 seconds. - Backend: FastAPI with one endpoint,
POST /api/transcribir, which forwards the audio and returns{"texto": "..."}. Recordings and transcripts are never stored or logged. - Limits: every request is a paid API call, so uploads are capped at 2 MB, each visitor gets 6 a minute and 60 a day, and the whole app 500 a day.
- Hardening: a non-root container with a read-only filesystem, health probes, and tests that fake the speech-to-text API so CI needs no key.