STAGE 1 · main.dart
Flutter mobile call-state bridge
- Monitors hardware PhoneState.stream on Android.
- A declined call fires a WebSocket trigger over an encrypted Tailscale tunnel to wake the host PC.
⚡ 100% SOVEREIGN LOCAL AI • SUB-800MS LATENCY • ZERO CLOUD VOICE LEAKAGE
An end-to-end, self-hosted telecommunications pipeline engineered in Python (FastAPI), Flutter and local Gemma-2 LLMs. It intercepts declined mobile calls over a private Tailscale mesh, holds multi-turn voice conversations through virtual audio hardware, and logs structured intelligence to an SQLite ledger in real time.
● LIVE CALL PIPELINE STATUS
STAGE 1 · main.dart
STAGE 2 · server.py
STAGE 3 · Whisper + Ollama
STAGE 4 · docker-compose
A browser-only demonstration with sample callers — no real calls or AI requests are made.
HANDSET
Total entries logged
0
High urgency flags
0
Latest person extracted
—
| Timestamp | Caller identity | Urgency | Core issue | Reworded summary | Raw transcript |
|---|---|---|---|---|---|
| Choose a caller scenario to populate the ledger. | |||||
📥 Latest caller audio
🗣️ Latest Gemma spoken reply
@app.websocket("/ws/voice-agent")
async def voice_agent(ws: WebSocket):
await ws.accept()
pcm = await capture_cable_output(silence_ms=900)
audio = resample(pcm, 16_000).astype(np.float32)
text = whisper_model.transcribe(audio, fp16=False)["text"]
reply = ollama.chat(model="gemma2-local:latest",
format=CALL_SCHEMA, messages=[SYSTEM, {"role": "user", "content": text}])
data = json.loads(reply["message"]["content"])
await speak(data["spoken_reply"]) # edge-tts -> CABLE Input
ledger.commit(data, transcript=text)Simplified excerpts of the architecture; private network addresses and credentials are omitted.
Explore other builds: Focus-Manager Execution Core, PLC & automation, full portfolio.
Back homeBuilt & engineered by Justin Samuel Parsons