# Amharic Hospital Receptionist Voice Agent
A production-ready AI voice agent that acts as a hospital receptionist, communicating entirely in Amharic via speech input and speech output. Patients open a browser, press and hold to speak, and receive spoken Amharic responses. The agent queries a real SQLite database for doctor schedules, appointments, and patient records.
## Architecture
```
┌─────────────────────────────────────────────────────────────────────────┐
│ Browser (index.html) │
│ ┌──────────┐ ┌─────────────┐ ┌──────────────┐ ┌────────────────┐ │
│ │ Record │ │ Transcript │ │ Doctor List │ │ Audio Playback │ │
│ │ Button │ │ Display │ │ Panel │ │ (TTS response) │ │
│ └────┬─────┘ └─────────────┘ └──────────────┘ └───────▲────────┘ │
│ │ MediaRecorder │ │
└───────┼────────────────────────────────────────────────────┼──────────┘
│ POST /chat (audio blob) │ audio/wav
▼ │
┌───────────────────────────────────────────────────────────┼──────────────┐
│ FastAPI (main.py) │ │
│ ┌─────────┐ ┌─────────┐ ┌──────────┐ ┌──────────┐ │ │
│ │ STT │──▶│ Agent │──▶│ Tools │──▶│ TTS │─┘ │
│ │ (Groq │ │ (Groq │ │ (SQLite) │ │ (Azure │ │
│ │ Whisper)│ │ Llama) │ │ │ │ Speech) │ │
│ └─────────┘ └────┬────┘ └────┬─────┘ └──────────┘ │
│ │ │ │
│ ┌──────▼──────┐ ┌────▼─────┐ │
│ │ Session │ │ Database │ │
│ │ Manager │ │ (SQLite) │ │
│ │ (in-mem) │ │ │ …