Give your colonists unique AI-generated voices that react to their emotions, situations, and personalities!
Steam Workshop | Discord Server | Report Issues
- Emotionally Expressive Speech - Colonists laugh, sigh, whisper, and express emotions naturally
- Context-Aware Dialogue - Speech based on mood, health, relationships, and current activities
- Unique Voices - Each colonist gets their own AI-generated voice
- No Setup Required - Everything works out of the box
- Free Demo - 10 speeches/month for unregistered users
- Unlimited Access - Free for Discord community supporters
- Managed Backend - No API keys needed, all handled server-side
colonist-voices/
โโโ frontend/ # RimWorld mod (C#)
โ โโโ About/ # Mod metadata
โ โโโ Assemblies/ # Compiled DLL (not in repo)
โ โโโ Source/ # C# source code
โโโ backend/ # Node.js API server
โ โโโ services/ # Service modules
โ โโโ server.js # Main server file
โ โโโ schema.sql # Database schema
โโโ docs/ # Documentation
โโโ README.md
- Subscribe to the mod on Steam Workshop
- Launch RimWorld and enable the mod
- Play! First 10 speeches are free
- Join Discord for unlimited access codes
See the detailed setup guides:
- Frontend Development Guide - Building the RimWorld mod
- Backend Development Guide - Running the API server
- Contributing Guide - How to contribute
The mod is written in C# and integrates with RimWorld using Harmony patches. It:
- Monitors colonist thoughts, moods, and activities
- Builds contextual information about each colonist
- Sends requests to the backend API
- Plays received audio in-game
- Manages user authentication and speech history
Key Files:
SpeechController.cs- Main mod controllerBackendAPIHandler.cs- API communicationColonistContextBuilder.cs- Context generationAudioManager.cs- Audio playbackVoiceSelector.cs- Voice assignment
The backend handles all AI communication and manages API keys. It:
- Manages user registrations and authentication
- Pools multiple ElevenLabs API keys with intelligent selection
- Handles OpenAI GPT-4 requests for dialogue generation
- Provides admin dashboard for monitoring
- Tracks usage and enforces quotas
Key Files:
server.js- Main API serverservices/userManager.js- User authenticationservices/keyPoolManager.js- ElevenLabs key poolservices/database.js- Database connectionschema.sql- PostgreSQL database schema
- Frontend: Visual Studio 2019+, RimWorld 1.6, .NET Framework 4.7.2
- Backend: Node.js 18+, PostgreSQL 14+
cd frontend/Source
build_simple.bat # Windows
# or
msbuild ColonistVoices.csproj # Cross-platformThe compiled DLL will be output to frontend/Assemblies/.
cd backend
npm install
cp .env.example .env
# Edit .env with your configuration
npm startSee Backend Setup Guide for detailed instructions.
Configure via Mod Options โ Colonist Voices in-game:
- Speech frequency and cooldowns
- Voice settings (stability, similarity)
- OpenAI model selection
- Context options (thoughts, health, memories)
- Account management (registration, codes)
# Database
DATABASE_URL=postgresql://user:pass@localhost/colonist_voices
# API Keys
OPENAI_API_KEY=sk-proj-xxxxx
ELEVENLABS_API_KEY=sk_xxxxx
# Server
PORT=3000
HTTPS_PORT=3443
USE_HTTPS=true
# Discord Webhooks (optional)
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...- In-Game Trigger - Colonist mood/activity triggers speech generation
- Context Building - Mod collects colonist info (thoughts, health, relationships)
- API Request - Sends context to backend with user authentication
- Dialogue Generation - Backend calls OpenAI GPT-4 to create contextual speech
- Voice Synthesis - Backend uses ElevenLabs to generate audio
- Audio Playback - Mod receives base64 audio and plays in-game
The backend uses an intelligent ElevenLabs API key pool:
- Load Balancing - Distributes requests across multiple keys
- Priority System - Routes users to appropriate tier keys
- Health Monitoring - Tracks success rates and auto-pauses failing keys
- Quota Management - Prevents exceeding monthly limits
- Automatic Failover - Switches to backup keys on failure
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- ๐ Report bugs
- ๐ก Suggest features
- ๐ง Submit pull requests
- ๐ Improve documentation
- ๐จ Create preview images/videos
- ๐ Add translations (coming soon)
This project is licensed under the MIT License - see LICENSE for details.
Note: This mod requires API access to OpenAI and ElevenLabs, which have their own terms of service.
Created by: Tempperment 22
Powered by:
- OpenAI GPT-4 - Dialogue generation
- ElevenLabs - Voice synthesis
- Harmony - RimWorld modding framework
Special Thanks:
- RimWorld modding community
- All beta testers and supporters
- Discord community members
- API key contributors
- Discord: Join our server
- Issues: GitHub Issues
- Steam: Workshop Page
This mod is not affiliated with Ludeon Studios or the Vanilla Expanded mod series. It is an independent community project.
Enjoy your talking colonists! ๐ค๐ฎ