Skip to main content

Generate real-time video avatars for your Pipecat AI agents with Beyond Presence

Project description

Pipecat Beyond Presence Integration

Generate real-time video avatars for your Pipecat AI agents with Beyond Presence.

Maintainer: Beyond Presence team (@bey-dev)

Installation

pip install pipecat-ai-bey

Prerequisites

Usage with Pipecat Pipeline

The BeyTransport integrates with the Beyond Presence platform to create conversational AI applications where a Beyond Presence avatar provides synchronized video and audio output while your bot handles the conversation logic.

from pipecat_bey import BeyParams, BeyTransport

transport = BeyTransport(
    bot_name="Pipecat bot",
    session=session,
    bey_api_key=os.environ["BEY_API_KEY"],
    daily_api_key=os.environ["DAILY_API_KEY"],
    avatar_id="b9be11b8-89fb-4227-8f86-4a881393cbdb",  # Default "Ege" avatar
    room_url=os.environ["DAILY_ROOM_URL"],
    params=BeyParams(
        audio_in_enabled=True,
        audio_out_enabled=True,
        microphone_out_enabled=False,
        vad_analyzer=SileroVADAnalyzer(params=VADParams(stop_secs=0.2)),
    ),
)

pipeline = Pipeline([
    transport.input(),
    stt,
    context_aggregator.user(),
    llm,
    tts,
    transport.output(),
    context_aggregator.assistant(),
])

See example.py for a complete working example.

Running the Example

  1. Install dependencies:

    uv sync
    
  2. Set up your environment

    cp env.example .env
    
  3. Run:

    uv run python example.py
    

The bot will create a Daily room with a video avatar that responds to your voice.

Compatibility

Tested with Pipecat v0.0.89

  • Python 3.10+
  • Daily transport (generic WebRTC support coming soon)

License

BSD-2-Clause - see LICENSE

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipecat_ai_bey-0.0.2.tar.gz (214.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipecat_ai_bey-0.0.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pipecat_ai_bey-0.0.2.tar.gz.

File metadata

  • Download URL: pipecat_ai_bey-0.0.2.tar.gz
  • Upload date:
  • Size: 214.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.31

File hashes

Hashes for pipecat_ai_bey-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a4013bc9fe08ca1c04154401b4171518d3f8f58857b47325aa26d2af6332294b
MD5 5d22e68108fcd356c2988e1512b136b8
BLAKE2b-256 6ddd1944f8f599b6b192fab61aa1ca3cf443b38920e0326aabe6ce2d9ad2d334

See more details on using hashes here.

File details

Details for the file pipecat_ai_bey-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pipecat_ai_bey-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63e7feea176f5527eace5992d5e31b408f47c17666162dd8573f4c1be070d88a
MD5 d93c72ad11d9cf4683604cb18da7c60a
BLAKE2b-256 65a662b8308d773d0b1de417e71869be904c81519701b1b2d1e86613c94be7c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page