uezo / aiavatarkit

🥰 Building AI-based conversational avatars lightning fast ⚡️💬
Apache License 2.0
261 stars 22 forks source link

Add support for animation in VRChat #25

Closed uezo closed 8 months ago

uezo commented 8 months ago
* You can express your emotions through the following animations:

- angry_hands_on_waist
- concern_right_hand_front
- waving_arm
- nodding_once

* If you want to express emotions with gestures, insert the animation into the response message like [animation:waving_arm].

Example
[animation:waving_arm]Hey, over here!
from aiavatar.animation.vrchat import VRChatAnimationController
animation_controller = VRChatAnimationController(animations={
    "idling": 0,
    "angry_hands_on_waist": 1,
    "concern_right_hand_front": 2,
    "waving_arm": 3,
    "nodding_once": 4
})
app = AIAvatar(
    openai_api_key=OPENAI_API_KEY,
    system_message_content=system_message_content,
    model="gpt-4-0125-preview",
    request_listener=request_listener,
    voicevox_url=VV_URL,
    voicevox_speaker_id=VV_SPEAKER,
    animation_controller=animation_controller
)