LangLearn
2026 — ongoing
A voice-agent platform built to practise languages and rehearse interviews. One hosted conversational agent becomes a different character on every run, because the persona is pushed as a conversation override during the handshake rather than provisioned as a new agent.
- Python
- ElevenLabs
- Gemini Live
- Ollama
- mlx-whisper
- Voice agents
- One ElevenLabs agent serves every persona: `talk.py` pushes a persona markdown file as a `conversation_config_override` at connection time, so switching from a Swedish tutor to a mock interviewer creates nothing new.
- Three backends behind the same interface: ElevenLabs hosted, Gemini Live, and a fully local pipeline of Ollama with mlx-whisper.
- Personas for Swedish, German, tutoring and interviewing, with transcripts saved per session.
- Used to build a browser-based mock interviewer for another candidate's interview — Cloudflare Worker, Deepgram Flux, Gemini and Cloud TTS.
The problem
Language practice needs a conversation partner who will not switch to English the moment you struggle, and interview practice needs someone who asks the questions you are avoiding. Both are hard to arrange on demand, and neither needs a different product.
I also wanted to avoid the obvious architecture: one agent per character. That means provisioning, naming and paying for a new agent every time the scenario changes, and it makes the interesting part — the persona — a piece of platform configuration instead of a file in the repo.
How it works
- A persona is a markdown file: who the agent is, what language it speaks, how it should correct you, what it is trying to get out of the conversation.
- `talk.py` opens the voice session and pushes that file as a `conversation_config_override` in the handshake. The same hosted agent becomes a Swedish tutor, a German tutor or a mock interviewer without provisioning anything.
- The hosted ElevenLabs path is the default. A Gemini Live backend and a fully local backend (Ollama for the model, mlx-whisper for transcription, local turn-taking) sit behind the same interface.
- Each session writes a transcript, so what was said is reviewable afterwards rather than lost when the call ends.
- The interview personas run from a `jobs/` folder, which is where the Zenseact mock and the tutor launchers live.
Where it went
The original use was my own language practice and interview prep. It then became a browser-based mock interviewer for someone else's interview — a Cloudflare Worker with Deepgram Flux for streaming transcription, Gemini for the interviewer and Cloud TTS for the voice. Building a tool for my own rehearsal and then being able to hand a version of it to another person was the most useful test of whether the abstraction held.
What I learned
Pushing the persona at connection time is the whole design. It keeps the scenario in version control, makes a new character a markdown edit rather than a platform task, and means the cost of trying a different interview style is zero.
The second lesson was that the local backend is not a fallback in the usual sense. It is slower and less polished, but it made the pipeline legible: once the model, the transcriber and the turn-taking were separate pieces I could run myself, debugging the hosted version stopped being guesswork.