An AI-powered voice-based hospital receptionist built using FastAPI and Google Gemini. This system allows users to interact using voice, check doctor availability, and book appointments seamlessly.
- Voice interaction using browser speech recognition
- AI-powered responses using Gemini
- Doctor listing and appointment booking
- Text-to-Speech responses
- Multi-language support (English, Hindi, Telugu)
- SQLite database for storing appointments
- Backend: FastAPI (Python)
- Frontend: HTML, TailwindCSS, JavaScript
- AI Model: Google Gemini
- Database: SQLite
- Text-to-Speech: gTTS
hospital-ai/
│
├── app.py # FastAPI backend
├── frontend.html # UI for voice interaction
├── .env # API keys (not pushed to GitHub)
├── README.md # Project documentation
git clone <your-repo-url>
cd hospital-aipython -m venv venv
.\venv\Scripts\activatepip install fastapi uvicorn python-dotenv google-genai gttsCreate a .env file in the root directory:
GEMINI_API_KEY=your_api_key_here
uvicorn app:app --reloadhttp://127.0.0.1:8000
- Enter your name and email
- Select preferred language
- Start voice interaction
- Ask about doctors or book an appointment
- Deploy the application online
- Integrate real hospital APIs
- Add chat-based fallback UI
- Improve mobile responsiveness
Sanjana Capstone Project – Hospital AI Assistant