Real-time AI character/companion creation and interaction codebase
Top 8.5% on sourcepulse
RealChar provides a unified platform for creating, customizing, and interacting with AI characters in real-time across web, mobile, and terminal interfaces. It targets AI enthusiasts and developers looking to build personalized AI companions, leveraging a modular architecture and a variety of leading AI services for natural language processing, speech, and data management.
How It Works
RealChar employs a modular architecture, allowing users to swap components for LLMs (OpenAI, Anthropic, Anyscale), Speech-to-Text (Whisper, Google), and Text-to-Speech (ElevenLabs, Edge TTS). It uses FastAPI for the backend, React for the web frontend, and Swift for the mobile app, with WebSockets for real-time communication. Data ingestion and LLM orchestration are handled by LlamaIndex and LangChain, with Chroma Vector DB for memory.
Quick Start & Requirements
docker compose up
(requires Docker installation).git clone
the repository, install dependencies (pip install -r requirements.txt
), set up .env
with API keys, and run python cli.py run-uvicorn
for the backend and python cli.py next-web-dev
for the frontend.portaudio
, ffmpeg
(>=4.4). Optional: CUDA for GPU acceleration.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 year ago
1 day