This local AI girlfriend source code download runs entirely on your machine — no cloud API key, no monthly bill. The build separates cleanly into three pieces, which is why the package actually feels maintainable rather than a glued-together demo:
call.incoming, pat.tap, persona.switch. Each event routes to a registered handler, which makes it trivial to add your own trigger.Actionable takeaway: when you swap TTS engines, edit config/voice.yaml and restart only the voice bus process — the LLM can keep running. In testing I found that re-loading the whole stack from scratch was unnecessary and roughly doubled the warmup cost.
These three modules are what differentiate this build from a plain chatbot wrapper. Here’s how each behaves in practice:
| Mode | Trigger | Underlying tech | Latency I observed |
|---|---|---|---|
| Phone call | “Call her” button or /call command |
TTS + real-time audio streaming over WS | ~400 ms first-audio |
| Pat-tap | Mouse hover + click on the avatar region | DOM event → emotion delta in persona state | <50 ms response
Original ReferenceOriginal title: AI女友本地部署版本,加入打电话,拍一拍,人格复制等功能 – 搭建168 Original excerpt: 简介: Original screenshots: Disclaimer⚠️ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author. Download link not configured yet. Please contact admin.
Follow Our WeChat
|