⚠️ Before you begin: Please make sure you have completed the Get Started section first to set up all required API keys and environment variables.
avatar_id
.id
in the JSON response is the image asset id which can be used as avatar_id
.Note: You might need to use a virtual environment when installing dependencies using pip:
agents/examples/avatar_agents/hedra
..env
file with the necessary environment variables into this directory.agent_worker.py
example to pass the image properly:agents/examples/avatar_agents/hedra
directory, run the following to start your agent in production mode:Note: You may need to install missing dependencies with pip. Consider using a virtual environment:
.env
.Your session request will not be queued until after a user connects to the room. It may take several seconds for your avatar to load.
NOTE: this is currently disabled
disconnect
in the Livekit Playground and your session will stop.
NOTE: if you disconnect this way, you will incur an additional 20-30 seconds of billing charges because the session is designed to prevent immediate termination in the event of disconnects that may occur due to network instability
agent_worker.py
process using your favorite SIGINT, SIGKILL, etc. mechanism.