Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Forward OpenAI Realtime audio into an avatar while keeping your event handler.
pip install 'openai==2.54.0' openspline
from openspline import Openspline from openspline.integrations import OpenAIRealtime async with Openspline().avatar("portrait.jpg") as avatar: print(avatar.viewer_url) await avatar.wait_for_viewer() adapter = OpenAIRealtime(avatar, connection) try: async for event in adapter.wrap(connection): await handle_event(event) finally: adapter.close()
OPENAI_API_KEY=... python examples/python/openai_realtime.py portrait.jpg