Skip to main content
Community-maintained integration. This service is built and maintained by jupiterspins. Pipecat does not test or officially support it. Please report issues and request changes on the source repository. Learn more about community integrations.

Overview

Stork Live is a talking avatar that the visitor’s browser draws itself. The avatar is a file of about 8 MB. A small model in the page moves the lips from the audio track the page already receives from your bot. The bot keeps its own STT, LLM, TTS and transport: the pipeline carries no video frames, and the bot’s audio is not changed. StorkLiveAvatar is a pass-through processor. It tells the page which face to draw, with a stork-avatar RTVI server message, sent when a client connects and each time the bot starts to speak. The bot calls no external service and needs no API key, and nothing is billed per minute. In the page, the stork-live client reports each session to Stork with a free site key (see Prerequisites). The library faces are free and carry a “Powered by stork.ai” mark. In the page, attachToPipecat(client, canvas) from the open source stork-live npm package draws the named face and follows the bot’s audio track. The lips follow whatever audio the bot sends, so an interruption needs nothing special: when the bot stops, the lips stop.
The face is drawn by the stork-live web client in your page. A client without it, such as Pipecat’s prebuilt UI, plays the bot’s voice but shows no face. See Browser.

Source Repository

Source code, the example bot and page, tests and issues

PyPI Package

The pipecat-stork package on PyPI

Web Client

The Apache-2.0 client that draws the avatar, with TypeScript types

Try It

Talk to the avatar in your browser, no sign-up

Installation

This is a community-maintained package distributed separately from pipecat-ai:
The page loads the web client from npm (npm install stork-live) or from a CDN at https://cdn.jsdelivr.net/npm/stork-live@0.2/src/pipecat.js.

Prerequisites

Nothing for the bot. For the page on a real site, a free site key from stork.ai/dashboard/live, passed as siteKey; on localhost none is needed. The client reports the key, the face and its version when an avatar is mounted, and how long it speaks; nothing about the visitor. RTVI must be enabled on the task, which is Pipecat’s default.

Environment Variables

  • STORK_AVATAR (optional): the avatar to draw when the constructor is given none

Configuration

str
default:"\"a\""
A face from the free library ("a" to "d"), or the https address of an avatar file of your own, without its extension. Falls back to STORK_AVATAR, then "a".
await avatar.set_avatar("c") switches the face during a call.

Usage

Browser

The avatar plays the bot’s voice itself, about a third of a second late, so lips and sound line up. Do not also attach the bot’s audio track to an <audio> element, or the voice is heard twice.

Notes

  • The avatar shows head and shoulders at 512 pixels. The lip model was trained on English.
  • If the named face cannot be loaded, the page reports the error and draws the default face.
  • An avatar of your own, made from one photo and without the mark, is a paid option; see stork.ai/live.

Compatibility

Tested with Pipecat v1.17.0, @pipecat-ai/client-js 1.18 and @pipecat-ai/small-webrtc-transport 1.11 in Chrome.