Repository navigation
Conversation
|
|
…ce when no video arrives
…r-plugin # Conflicts: # uv.lock
Contributor
|
A few things outside the code that block this, in case they're not on your radar:
Also, the Devin thread on I didn't run the avatar itself. |
…r-plugin # Conflicts: # uv.lock
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
livekit-plugins-callyourai, an avatar plugin for callyour.ai: a lip-synced, photo-real avatar made from one photo, rendered into the agent's room.The usual avatar flow: the plugin mints a token for the avatar participant through
JobContext.create_participant_token(so token mode works), withlk.publish_on_behalfset to the agent, and the agent's speech goes to the avatar throughDataStreamAudioOutput. Beyond that:avatar_lost/avatar_recovered/avatar_recovery_failed).wait_secondswaits for a free avatar instead of failing. If the session already publishes its own audio, the agent talks voice-only until the avatar is live, then switches between two sentences.hd=True, orupgrade_to_hd=Trueto start right away on a normal avatar and switch to HD mid-call. Frontends can follow the agent'scallyourai.avatarattribute.set_mood()andset_action()(one-shot gestures such aswave).The API client only retries session creation when the connection could not be opened, so a session is never started twice. Reads are retried on 5xx.
Sign-up works through the API too, so a coding agent can get a key on its own (https://api.callyour.ai/llms.txt). New accounts get free credit after confirming their email, and there is a ready-made avatar to try without a photo.
Testing
tests/test_plugin_callyourai.py: retry rules, error codes, the request body, the avatar token (identity, kind, publish-on-behalf), and ending the session onaclose().ruff check,ruff format --checkand mypy pass for the package.AgentSession(Soniox STT/TTS, an OpenRouter LLM): the avatar's audio and video arrived ascallyourai-avataron behalf of the agent after about 6 s, the greeting played, and the session was billed and ended when the room closed.The plugin is also published from our own repo as
livekit-plugins-callyouraion PyPI (0.4.x). Once this is merged, we'll move users to the version published from here.