Skip to content

AI triggered animation duration. #407

@kirelisaurimas

Description

@kirelisaurimas

I am not sure if this is a bug or missconfiguration somewhere. I would like to ask guidance here. Problem is animations that are triggered with AI input last only part of a second and then goes back directly to idle animation. Same behavior is on example project as well. The first animation (wave) that is triggered works correcly, but then after it any animations triggered via chat is super short. Note that facial emotions doesn't have this problem.

2024-12-09.16-15-22.mp4

If it possible could you guide me how to control this behavior? Or maybe it is a bug? Could it be that I don't use TTS so as it don't get audio file it automaticly finishes the animation?

EDIT 1:

if (request.StartIdlingOnEnd && !token.IsCancellationRequested)
{
    // Stop running animation not to keep the current state to the next turn (prompting)
    // Do not start idling when cancel requested because the next animated voice request may include animations
    StartIdling();
}

It seems that AnimatedSay() was the culprit, that if I dont use audio it sees that sentence is automaticly ended and that resets animation to idle. However I have not find how to disable lip sync or dont use AI voice easily. And example without TTS would be great to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions