Github: Ollama Voice Chess

Voice-controlled chess using Ollama.

ollama-voice-chess

https://github.com/abaj8494/ollama-voice-chess

Notes

Backend

the tech-stack used FastAPI on the back-end. usually I use Flask for everything, but the requirements of this project are asynchronous, real-time requests.

FeatureFastAPIFlask
SpeedVery fast (async, based on Starlette)Slower (sync by default)
Async supportNative async/awaitRequires extensions
Type hintsRequired, powers validationOptional
Auto docsBuilt-in Swagger UI at /docsManual setup
ValidationAutomatic via PydanticManual or extensions
WebSocketsBuilt-inRequires Flask-SocketIO

Frontend

the front-end was refactored from one huge index.html file into a Svelte front-end served with Vite.