Prerequisites
- An Anam API key (get one here)
- A persona ID from Anam Lab
- The
anampackage installed (pip install anam)
Connect and stream
print calls with your own rendering logic.
When you save SDK video frames to a file, set the output writer or muxer to 25 fps. This is an output encoding hint;
session.video_frames() yields frames as they arrive. Encoding saved output at 30 fps can make audio and video drift out of sync.Send a message
You can send text to the persona during a session:Use the event-driven API
If you prefer callbacks over async iterators:Next steps
GitHub Repository
Source code, full API reference, and examples
Cookbook: Python BYO LLM
Bring your own LLM with the Python SDK

