Skip to main content

bevyra-avatar

Run a licensed BeVyra avatar locally from Python. Bring your own ASR, LLM and TTS. The 1.0.7 binary wheel supports CPython 3.12 on Linux x86_64 and contains a compiled CPU mesh renderer. Install it from PyPI; no repository clone is required. BeVyra's API authorizes the device and supplies signed avatar downloads. Verified cached bundles are reused without another download grant. Speech follows deterministic contiguous source segments; recorded silence begins after one continuous second of quiet audio, with four-frame transitions.

python -m pip install --only-binary=:all: bevyra-avatar
export BEVYRA_API_KEY=your_project_key
bevyra-avatar activate --name my-app
bevyra-avatar list
bevyra-avatar assign 1 noora # only on plans with avatar slots
bevyra-avatar download noora
bevyra-avatar serve

assign is needed on plans with avatar slots. download verifies the model and stores it under the user-writable ~/.local/share/bevyra-avatar directory by default. Set BEVYRA_AVATAR_HOME to another writable path. Existing revisions remain installed when the avatar catalog changes. Each API key may activate three installations. A verified local bundle is reused without spending another download grant, while each session still checks authorization with the API.

import asyncio, os
from bevyra_avatar import AvatarServer, ControlPlane

async def main():
    control = ControlPlane()
    await control.activate(os.environ['BEVYRA_API_KEY'])
    # On plans with avatar slots: await control.assign(1, 'noora')
    await control.download('noora')
    async with AvatarServer() as server:
        print(server.url, server.token)
        await asyncio.Event().wait()

asyncio.run(main())

The service binds only to loopback. Authenticate /v1/stream with Authorization: Bearer <token>. Send session.setup with an avatar ID and optional background, width, and height. background accepts #RRGGBB or a base64 data URL for JPEG, PNG, GIF, or WebP. GIF and animated WebP loop continuously across speech and idle frames. JPEG, PNG, and single-frame WebP are still images. Without a background, speech and idle JPEGs are composited over off-white #F5F3EE. Images fill the output by center cropping; the avatar keeps its aspect ratio. Both width and height must be 160–1920 pixels and output area may not exceed 2.07 megapixels. Image input is limited to 8 MiB and 64–4096 pixels per side. Animations are limited to 300 frames and 30 seconds. Then send clause.start with a clause ID and sample count, binary signed PCM16 mono at 16 kHz, and clause.end. It returns session.ready, clause.audio plus PCM, clause.frame plus JPEG for each 40 ms frame, and clause.done. Frames carry timestampMs relative to the clause audio. During idle, send session.idle with count from 1 to 9; the server returns idle.frame plus JPEG at 40 ms intervals and idle.done. session.interrupt cancels the current clause. Include natural pauses in each speech unit for planner context.

To send a local background file from Python: import base64, mimetypes, pathlib; path = pathlib.Path("background.gif"); background = f"data:{mimetypes.guess_type(path)[0]};base64,{base64.b64encode(path.read_bytes()).decode()}". Pass that value in session.setup.

Only prebuilt binary wheels are distributed. Activation, authorization refresh, and new avatar downloads require API access; rendering uses local CPU and installed files.

Metadata

Release files for bevyra-avatar 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for bevyra-avatar 1.0.8
File Interpreter ABI Platform Actions
bevyra_avatar-1.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for bevyra_avatar-1.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Release files / bevyra_avatar-1.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL bevyra_avatar-1.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 516.4 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
0166f49087ab15b7b429e5eb799e2717852ee3de977f54f43facbeba92040d66
BLAKE2b-256 checksum
How to use checksums
d3119118fcd337f2e8a41b440d60b6fed81f72a427c2645ce496bff30dc4254a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Security for bevyra-avatar 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page