r/FunMachineLearning • u/ice1905 • 9d ago
Llama 3.2 1B, Kokoro TTS and Whisper all running in the browser for a racing game's team radio
I built Pitwall, an open-source race-strategy game where the team radio is fully on-device. It uses Transformers.js with WebGPU, and there's no backend.
- Llama 3.2 1B (q4f16): answers free-form questions in character, grounded in a per-car fact sheet. Replies quoting numbers that aren't in the facts are dropped, and the model can't issue game commands.
- Kokoro-82M: seven voices, rendered sentence by sentence.
- Whisper tiny.en: prompted with the game's vocabulary. On a synthetic benchmark this raised command accuracy from 53% to 87%.
Code (MIT): https://github.com/rajvardhan19/pitwall · Play: https://rajvardhan19.github.io/pitwall/