LoveLogicAI commited on
Commit
6bf8d45
·
verified ·
1 Parent(s): 845883f

Scaffold v0.1.0: Pika-compatible CLI, drivers, event log, MCP, docs

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FREESTREAM
2
+
3
+ **A universal, free-tier avatar-meeting skill.** Clean-room reimplementation,
4
+ CLI-compatible with [`Pika-Labs/Pika-Skills` — pikastream-video-meeting](https://github.com/Pika-Labs/Pika-Skills)
5
+ (Apache-2.0). Same CLI surface, same exit codes, same output JSON — any agent
6
+ trained on the Pika skill works unchanged. The metered hosted pipeline is
7
+ replaced by swappable local drivers.
8
+
9
+ This is **v0.1.0 scaffold**: working CLI + event log + MCP protocol skeleton +
10
+ driver interface contracts. The MVP slice (Jitsi/LiveKit, Piper TTS,
11
+ faster-whisper ASR, viseme-animated still) lands on top of these interfaces.
12
+
13
+ ## The three-layer split
14
+
15
+ | Layer | Job | Drivers (preference order) |
16
+ |---|---|---|
17
+ | Presence | Get a participant into the call, own an A/V track | `livekit` (free, low jitter) → `browser` (Playwright + virtual cam) → `sip` (audio-only) |
18
+ | Persona | A face and a voice | Fidelity ladder: FULL_PORTRAIT → VISEME_STILL → AUDIO_REACTIVE_WAVE → STATIC_CARD; Piper TTS, local-only clones |
19
+ | Cognition | The agent, unchanged | MCP: `session.observe` / `speak` / `listen` / `leave` |
20
+
21
+ ## Quick start
22
+
23
+ ```bash
24
+ pip install -r requirements.txt
25
+
26
+ # What can this host deliver?
27
+ python scripts/freestream.py probe
28
+
29
+ # Join (MVP slice targets Jitsi / LiveKit first)
30
+ python scripts/freestream.py join --meet-url <url> --bot-name <name> \
31
+ --image identity/videomeeting-avatar.png
32
+
33
+ # Drive the session as an agent
34
+ python -m freestream.mcp_server
35
+ ```
36
+
37
+ ## CLI surface (Pika-compatible)
38
+
39
+ ```
40
+ freestream join --meet-url <url> --bot-name <name> --image <path>
41
+ [--voice-id <id>] [--system-prompt-file <path>]
42
+ [--system-prompt <text>] [--meeting-password <pw>]
43
+ [--platform jitsi|livekit|google_meet|zoom] [--timeout-sec 90]
44
+ freestream leave --session-id <id>
45
+ freestream generate-avatar --output <path> [--prompt <text>]
46
+ freestream clone-voice --audio <file> --name <name> [--noise-reduction]
47
+ freestream probe # FREESTREAM addition: capability negotiation
48
+ ```
49
+
50
+ **Exit codes** — preserved from Pika, one repurposed:
51
+
52
+ - `0` ok · `1` configuration (FREESTREAM addition) · `2` validation ·
53
+ `3` transport · `4` session · `5` timeout
54
+ - `6` **capability shortfall** (was Pika's *funding*). Stdout JSON carries
55
+ `capability` + `remediation` instead of `checkout_url`.
56
+
57
+ `join` emits `{"session_id", "platform", "status": "created"}` immediately,
58
+ then status-change lines, exactly like the Pika CLI — agents that parse that
59
+ stream keep working.
60
+
61
+ ## Latency trade-off
62
+
63
+ ~2.5–4.5s perceived turn on CPU vs. Pika's ~1.5s hosted (~1.2–2.0s with
64
+ GPU). Mitigated by 600ms speculative dispatch, sentence-level pre-roll, and
65
+ avatar motion starting ~150ms before audio. See `docs/LATENCY.md`.
66
+
67
+ ## Privacy
68
+
69
+ Face and voice clones never leave the device. Hosted clones (Pika/MiniMax)
70
+ expire after 7 days of non-use; FREESTREAM clones are local files. Consent
71
+ and disclosure defaults: `docs/CONSENT.md`.
72
+
73
+ ## Attribution & license
74
+
75
+ Apache-2.0. Clean-room reimplementation of the CLI contract of
76
+ [pikastream-video-meeting](https://github.com/Pika-Labs/Pika-Skills/tree/main/pikastream-video-meeting)
77
+ by Pika Labs — no source code ported; the interface (CLI flags, exit codes,
78
+ output JSON, SKILL.md agent flow, `life/` identity-file conventions) is
79
+ preserved for agent compatibility. The hosted PikaStreaming service is
80
+ replaced, not reimplemented.