# FREESTREAM ๐Ÿš€ > **Free-tier avatar-meeting agent** โ€” joins calls, speaks with an on-device voice, > wears an animated avatar, and roleplays as an agent that can work a real terminal. > CLI-compatible drop-in for [Pika's pikastream-video-meeting](https://github.com/Pika-Labs/Pika-Skills) > ($0.20โ€“0.28/min hosted) at **$0/min marginal cost**. [![demo](https://img.shields.io/badge/-%20live%20demo%20-blue)](https://huggingface.co/spaces/LoveLogicAI/freestream-demo) [![license](https://img.shields.io/badge/license-Apache--2.0-green)](LICENSE) [![e2e](https://img.shields.io/badge/e2e--livekit-13%2F13%20%E2%9C%94-brightgreen)](docs/LATENCY.md) [![e2e](https://img.shields.io/badge/e2e--roleplay-17%2F17%20%E2%9C%94-brightgreen)](docs/LATENCY.md) **Try the cognition layer in-browser:** [freestream-demo Space](https://huggingface.co/spaces/LoveLogicAI/freestream-demo) โ€” talk to Captain Vera Steel (safe mode). **A universal, free-tier avatar-meeting skill.** Clean-room reimplementation, CLI-compatible with [`Pika-Labs/Pika-Skills` โ€” pikastream-video-meeting](https://github.com/Pika-Labs/Pika-Skills) (Apache-2.0). Same CLI surface, same exit codes, same output JSON โ€” any agent trained on the Pika skill works unchanged. The metered hosted pipeline is replaced by swappable local drivers. ## Measured results (8 vCPU, CPU-only โ€” docs/LATENCY.md) | Metric | Result | |---|---| | Win condition (assistant profile) | **t_perceived 2.94s โ‰ค 4.0s โ€” PASS** | | Agentic roleplay e2e | **17/17 โ€” ROLEPLAY E2E OK** | | ASR finalize (whisper tiny.en int8, 1 thread) | 1.33s | | First-audio TTS path (cached disclosure) | ~0.2s | | Full turn (14.9s of speech) | 18.9s, pipelined | | Session replay | both hash chains verify | This is **v0.1.0 โ€” MVP slice working and measured**: the LiveKit presence driver, faster-whisper ASR (utterance VAD โ†’ transcribe), Piper TTS with sentence-level streaming, and the audio-reactive procedural avatar all run end to end. The win condition โ€” *agent joins, answers within 4s with a moving mouth, leaves, and produces a valid replay log* โ€” **passes: t_perceived = 2.94s on 8 vCPU, CPU-only, both turns answered via speculative dispatch** (measured 2026-10-04, job 6ac2e756404719ba37651973, see docs/LATENCY.md). Remaining stubs: the browser join-pack (Meet/Zoom), the SIP driver, and local portrait-model rungs. ## The three-layer split | Layer | Job | Drivers (preference order) | |---|---|---| | Presence | Get a participant into the call, own an A/V track | `livekit` (free, low jitter) โ†’ `browser` (Playwright + virtual cam) โ†’ `sip` (audio-only) | | Persona | A face and a voice | Fidelity ladder: FULL_PORTRAIT โ†’ VISEME_STILL โ†’ AUDIO_REACTIVE_WAVE โ†’ STATIC_CARD; Piper TTS, local-only clones | | Cognition | The agent, unchanged | MCP: `session.observe` / `speak` / `listen` / `leave` | ## Quick start ```bash pip install -r requirements.txt # What can this host deliver? python scripts/freestream.py probe # Join (MVP slice targets Jitsi / LiveKit first) python scripts/freestream.py join --meet-url --bot-name \ --image identity/videomeeting-avatar.png # Drive the session as an agent python -m freestream.mcp_server ``` ## CLI surface (Pika-compatible) ``` freestream join --meet-url --bot-name --image [--voice-id ] [--system-prompt-file ] [--system-prompt ] [--meeting-password ] [--platform jitsi|livekit|google_meet|zoom] [--timeout-sec 90] freestream leave --session-id freestream generate-avatar --output [--prompt ] freestream clone-voice --audio --name [--noise-reduction] freestream probe # FREESTREAM addition: capability negotiation ``` **Exit codes** โ€” preserved from Pika, one repurposed: - `0` ok ยท `1` configuration (FREESTREAM addition) ยท `2` validation ยท `3` transport ยท `4` session ยท `5` timeout - `6` **capability shortfall** (was Pika's *funding*). Stdout JSON carries `capability` + `remediation` instead of `checkout_url`. `join` emits `{"session_id", "platform", "status": "created"}` immediately, then status-change lines, exactly like the Pika CLI โ€” agents that parse that stream keep working. ## Latency trade-off ~2.5โ€“4.5s perceived turn on CPU vs. Pika's ~1.5s hosted (~1.2โ€“2.0s with GPU). Mitigated by 600ms speculative dispatch, sentence-level pre-roll, and avatar motion starting ~150ms before audio. See `docs/LATENCY.md`. ## Privacy Face and voice clones never leave the device. Hosted clones (Pika/MiniMax) expire after 7 days of non-use; FREESTREAM clones are local files. Consent and disclosure defaults: `docs/CONSENT.md`. ## Attribution & license Apache-2.0. Clean-room reimplementation of the CLI contract of [pikastream-video-meeting](https://github.com/Pika-Labs/Pika-Skills/tree/main/pikastream-video-meeting) by Pika Labs โ€” no source code ported; the interface (CLI flags, exit codes, output JSON, SKILL.md agent flow, `life/` identity-file conventions) is preserved for agent compatibility. The hosted PikaStreaming service is replaced, not reimplemented.