๐งธ Solace.ai
A real-time, voice-based AI companion designed to provide emotional comfort and gentle companionship to children in hospice care.
๐ฏ Project Overview
Solace.ai is not just a chatbotโit is a voice-first companion built to feel like a calm, caring presence.
It allows children to:
speak naturally (no buttons required) receive warm, emotionally-aware responses engage in continuous, back-and-forth conversation
The system is designed to feel like:
a plush companion, a bedside friend, a comforting voice that stays with you
๐ก Why This Matters
Children in hospice care often experience isolation, fear, and emotional distress.
Solace.ai provides:
a constant, gentle presence emotionally safe responses a natural interface (voice) that requires no physical effort ๐ง Core Concept
Traditional systems:
speech โ response
Solace.ai:
continuous, emotionally-aware conversation
Key difference:
prioritizes presence over productivity focuses on comfort, not tasks ๐๏ธ System Architecture ๐ง Backend (AI Brain)
Built with FastAPI, the backend handles the full real-time voice pipeline:
๐ Core Pipeline Wake word detection Voice activity detection (records until silence) Speech-to-text (Whisper) LLM response generation (OpenAI) Text-to-speech (OpenAI TTS) Audio playback Follow-up listening (multi-turn conversation) โ๏ธ Key Features Multi-turn conversation No wake word required after initial activation Interrupt handling User can speak while AI is talking Emotional safety layer Detects distress signals and adapts responses Conversation memory Maintains recent context for natural dialogue Real-time event streaming WebSocket-based updates to frontend ๐ Frontend (Control Dashboard)
Built with React + Vite
Purpose: Start / stop / reset the system Display real-time system state: listening thinking speaking Show: user transcript AI responses live logs
๐งฉ Design Philosophy Laptop = Brain Runs all AI components for speed and flexibility Frontend = Interface Provides transparency and control (Future) Raspberry Pi + Plush Physical embodiment of the companion Acts as an interaction trigger device ๐ Interaction Flow User says wake word System begins listening Speech is recorded and transcribed AI generates a gentle, emotionally-aware response Response is spoken aloud System waits for follow-up Conversation continues naturally ๐ Personality: Rhasspy
Solace.ai features a soft, child-friendly character:
Rhasspy โ a kind monkey with a red cape
Design goals:
warm and calming tone gentle storytelling emotionally supportive responses encourages continued conversation ๐ Current Status โ Core voice pipeline implemented โ Backend fully functional โ Frontend integrated and polished โ Real-time interaction working โ Multi-turn conversation enabled โ Demo-ready ๐ฎ Future Improvements ๐งธ Physical plush integration (Raspberry Pi trigger system) โค๏ธ More advanced emotional detection (tone + sentiment analysis) ๐ฅ Clinical feedback integration (hospice care specialists) ๐ Deployment for broader accessibility ๐ญ Expanded personality behaviors and storytelling depth ๐ ๏ธ Tech Stack
Backend
FastAPI OpenAI API (LLM + TTS) Whisper (Speech-to-Text) WebSockets
Frontend
React Vite Tailwind (optional styling layer)
Hardware (Planned)
Raspberry Pi 4 Model B
Bluetooth speaker
Plush companion enclosure
This project is designed with emotional safety as a priority.
Responses are constrained to be: non-harmful age-appropriate comforting The system is not a replacement for human care, but a supportive supplement ๐ Getting Started (Basic)
cd backend pip install -r requirements.txt uvicorn main:app --reload
cd frontend npm install npm run dev
Then open:
http://localhost:5173 ๐ค Acknowledgements
Built as part of a hackathon project focused on:
human-centered AI accessibility emotional well-being ๐ฌ Contact
For questions, collaboration, or feedback:
GitHub Issues Direct outreach