Back to Programming

AI Tutor

Lingua Loop

Same idea as Drill — but for teaching me things and talking to me. I wanted a tutor I could just open and start a conversation with, without scheduling a class or finding a person. Voice or text in, conversation back, in whatever language I'm learning.

Currently set up for Japanese, Mandarin, and a Universal mode that handles any subject — not just languages. Speech goes in through the browser's native speech recognition with a Whisper fallback for browsers that don't support it. Responses come back as text and can play through TTS if I want to hear them.

The thing that makes it actually useful is the memory. There's a SQLite layer that tracks what subjects I've covered, what skills I've practiced, what concepts I'm weak on, and where the curriculum is heading. Every request hydrates that state so the model sees the whole arc, not just the last message. New vocab and weak spots get pulled out of each response and persisted — so practice compounds across sessions instead of resetting every time.

Stack: Python server, SQLite memory, DeepSeek V4 for reasoning, OpenAI TTS, vanilla HTML/JS frontend.