Face Animations

DeskBot's face animations produce timed sequences of face-model deltas (gaze, mouth shape, eye openness, etc.) that the FaceOrchestrator applies to the face renderer. They are standalone, stateless animation objects that can be driven independently of the event bus.

The three built-in face animations are:

Animation Purpose Trigger
ThinkingDotsAnimation Periodic gaze-shift pattern LLM streaming response
SpeakingAnimation Viseme-based mouth shapes TTS playback
WakeAnimation 4-phase attention-getting flash Wake word detection

All animations follow the same pattern: construct, then call step(dt) in a loop to get the current frame.


ThinkingDotsAnimation

Produces a gentle left-right-up gaze-shift pattern that gives the face a "thinking" look while the LLM is generating a response. The animation cycles through 7 keyframes, holding each for a configurable duration and smoothly interpolating between positions.

from robot.face.animations.thinking_dots import ThinkingDotsAnimation

anim = ThinkingDotsAnimation()

# In a render loop, advance by dt seconds each tick:
gaze = anim.step(dt=0.033)
# gaze.x, gaze.y - feed these into the face model

# Reset when LLM streaming finishes
anim.reset()

Keyframe pattern

The default pattern cycles through these gaze positions:

# Gaze (x, y) Hold (s) Description
1 (0.20, -0.20) 0.40 Up-right - classic "thinking" pose
2 (0.05, -0.15) 0.30 Slightly left
3 (-0.10, -0.10) 0.35 Look left
4 (0.00, -0.05) 0.25 Center-up
5 (-0.05, 0.05) 0.30 Slightly down-left
6 (0.15, -0.25) 0.40 Up-right again
7 (0.00, 0.00) 0.50 Return to center

Transitions begin at 70% of each hold period and use a smoothstep interpolation for a natural feel.

Custom patterns

You can provide your own keyframe pattern:

custom_pattern = [
    (-0.3, 0.1, 0.5),   # left, slightly down
    (0.3, -0.2, 0.5),   # right, slightly up
    (0.0, 0.0, 0.3),    # center
]
anim = ThinkingDotsAnimation(pattern=custom_pattern)

SpeakingAnimation

Produces mouth open/close keyframes driven by a simplified viseme model that maps English text to mouth shapes. Each viseme has a target openness and width, and the animation steps through frames at a configurable speed.

Viseme set

The animation uses 13 simplified visemes:

Viseme Sound Openness Width
IDLE silence 0.0 0.5
PP p, b, m 0.0 0.4
FF f, v 0.15 0.45
TH th 0.2 0.5
DD t, d 0.25 0.5
KK k, g 0.3 0.5
CH ch, j, sh 0.35 0.45
SS s, z 0.15 0.5
NN n, ng 0.2 0.5
RR r 0.25 0.4
AA a 0.7 0.7
EE e, i 0.3 0.7
OO o, u 0.4 0.35

Usage

from robot.face.animations.speaking import SpeakingAnimation

# From text
anim = SpeakingAnimation(text="Hello there!", speed=1.0)

while anim.has_frames:
    frame = anim.step(dt=0.033)
    # frame.openness  - mouth openness (0.0–1.0)
    # frame.width     - mouth width (0.0–1.0)
    # frame.viseme    - current Viseme enum
    # frame.duration_s - how long this frame should be held

# From explicit viseme sequence
from robot.face.animations.speaking import SpeakingAnimation, Viseme

anim2 = SpeakingAnimation.from_visemes(
    [(Viseme.AA, 0.1), (Viseme.PP, 0.06), (Viseme.SS, 0.08)],
    speed=1.2,
)

Timing defaults

Parameter Default Description
default_phoneme_duration 0.08 s Duration per phoneme
pause_duration 0.15 s Duration for commas/semicolons
sentence_pause_duration 0.25 s Duration for periods/exclamation marks
speed 1.0 Speed multiplier (0.5 = half speed, 2.0 = double)

WakeAnimation

A 4-phase attention-getting animation that plays when the robot detects a wake word. The sequence creates a bright "I'm awake!" effect:

Phase Duration What happens
Eyes open 0.10 s Eyes snap to center and open wide
Double blink 0.30 s Two rapid blinks
Mouth surprise 0.20 s Mouth opens to an "O" shape
Transition 0.30 s Smooth transition to a "curious" look

Usage

from robot.face.animations.wake import WakeAnimation

anim = WakeAnimation()

while not anim.done:
    frame = anim.step(dt=0.033)
    # frame.gaze          - Gaze(x, y) target
    # frame.eye_openness  - how open the eyes are (0.0–1.2)
    # frame.eyelid_top     - eyelid position
    # frame.mouth_shape   - MouthShape enum
    # frame.mouth_openness - mouth openness
    # frame.mouth_width    - mouth width
    # frame.eyebrow_shape  - EyebrowShape enum
    # frame.eyebrow_raise  - eyebrow raise amount
    # frame.phase          - current WakePhase

# Reset for next wake
anim.reset()

Standalone usage

All three animations are pure data objects with no dependencies on the event bus or hardware. You can use them independently:

import time
from robot.face.animations.thinking_dots import ThinkingDotsAnimation

anim = ThinkingDotsAnimation()
last = time.monotonic()

while True:
    now = time.monotonic()
    dt = now - last
    last = now

    gaze = anim.step(dt)
    # Apply gaze to your own face model or renderer
    print(f"Gaze: ({gaze.x:.2f}, {gaze.y:.2f})")

API reference

robot.face.animations.thinking_dots.ThinkingDotsAnimation dataclass

Produces a sequence of gaze positions for the "thinking dots" effect.

The animation advances through keyframes each time :meth:step is called, returning the current gaze position. The caller is responsible for applying the gaze to the face model and publishing any events.

Source code in src/robot/face/animations/thinking_dots.py
@dataclass(slots=True)
class ThinkingDotsAnimation:
    """Produces a sequence of gaze positions for the "thinking dots" effect.

    The animation advances through keyframes each time :meth:`step`
    is called, returning the current gaze position. The caller is
    responsible for applying the gaze to the face model and publishing
    any events.
    """

    pattern: Sequence[tuple[float, float, float]] = _THINKING_PATTERN
    _index: int = 0
    _elapsed: float = 0.0

    def step(self, dt: float) -> Gaze:
        """Advance the animation by ``dt`` seconds and return the current gaze.

        Parameters
        ----------
        dt:
            Time elapsed since the last call, in seconds.
        """
        if not self.pattern:
            return Gaze(0.0, 0.0)

        self._elapsed += dt
        _, _, hold = self.pattern[self._index]

        # Advance to the next keyframe when the hold time expires.
        while self._elapsed >= hold:
            self._elapsed -= hold
            self._index = (self._index + 1) % len(self.pattern)
            _, _, hold = self.pattern[self._index]

        # Lerp between the current and next keyframe for smooth transitions.
        x, y, _ = self.pattern[self._index]
        next_idx = (self._index + 1) % len(self.pattern)
        nx, ny, _ = self.pattern[next_idx]

        # Transition ratio: how far we are into the hold period.
        transition_start = hold * 0.7  # start transitioning at 70% of hold
        if self._elapsed >= transition_start:
            t = (self._elapsed - transition_start) / max(0.001, hold - transition_start)
            t = max(0.0, min(1.0, t))
            # Smooth the transition.
            t = t * t * (3.0 - 2.0 * t)  # smoothstep
            x = x + (nx - x) * t
            y = y + (ny - y) * t

        return Gaze(x=x, y=y)

    def reset(self) -> None:
        """Reset the animation to the beginning."""
        self._index = 0
        self._elapsed = 0.0

    @property
    def current_position(self) -> tuple[float, float]:
        """Return the current gaze (x, y) without advancing."""
        if not self.pattern:
            return 0.0, 0.0
        x, y, _ = self.pattern[self._index]
        return x, y

current_position property

Return the current gaze (x, y) without advancing.

reset()

Reset the animation to the beginning.

Source code in src/robot/face/animations/thinking_dots.py
def reset(self) -> None:
    """Reset the animation to the beginning."""
    self._index = 0
    self._elapsed = 0.0

step(dt)

Advance the animation by dt seconds and return the current gaze.

Parameters

dt: Time elapsed since the last call, in seconds.

Source code in src/robot/face/animations/thinking_dots.py
def step(self, dt: float) -> Gaze:
    """Advance the animation by ``dt`` seconds and return the current gaze.

    Parameters
    ----------
    dt:
        Time elapsed since the last call, in seconds.
    """
    if not self.pattern:
        return Gaze(0.0, 0.0)

    self._elapsed += dt
    _, _, hold = self.pattern[self._index]

    # Advance to the next keyframe when the hold time expires.
    while self._elapsed >= hold:
        self._elapsed -= hold
        self._index = (self._index + 1) % len(self.pattern)
        _, _, hold = self.pattern[self._index]

    # Lerp between the current and next keyframe for smooth transitions.
    x, y, _ = self.pattern[self._index]
    next_idx = (self._index + 1) % len(self.pattern)
    nx, ny, _ = self.pattern[next_idx]

    # Transition ratio: how far we are into the hold period.
    transition_start = hold * 0.7  # start transitioning at 70% of hold
    if self._elapsed >= transition_start:
        t = (self._elapsed - transition_start) / max(0.001, hold - transition_start)
        t = max(0.0, min(1.0, t))
        # Smooth the transition.
        t = t * t * (3.0 - 2.0 * t)  # smoothstep
        x = x + (nx - x) * t
        y = y + (ny - y) * t

    return Gaze(x=x, y=y)

robot.face.animations.speaking.SpeakingAnimation dataclass

Produces a sequence of mouth shapes for lip-synced speech.

The animation converts text into a sequence of :class:VisemeFrame objects, one per phoneme, with timing that approximates natural speech cadence.

Usage::

anim = SpeakingAnimation(text="Hello there!")
while anim.has_frames:
    frame = anim.step(dt=0.033)
    face_model = face_model.with_mouth(
        Mouth(shape=MouthShape.NEUTRAL, openness=frame.openness, width=frame.width)
    )
Source code in src/robot/face/animations/speaking.py
@dataclass(slots=True)
class SpeakingAnimation:
    """Produces a sequence of mouth shapes for lip-synced speech.

    The animation converts text into a sequence of :class:`VisemeFrame`
    objects, one per phoneme, with timing that approximates natural
    speech cadence.

    Usage::

        anim = SpeakingAnimation(text="Hello there!")
        while anim.has_frames:
            frame = anim.step(dt=0.033)
            face_model = face_model.with_mouth(
                Mouth(shape=MouthShape.NEUTRAL, openness=frame.openness, width=frame.width)
            )
    """

    text: str = ""
    # Default duration per phoneme in seconds. Real speech varies but
    # this gives a reasonable approximation for visual animation.
    default_phoneme_duration: float = 0.08
    # Duration for pauses (spaces, commas, periods).
    pause_duration: float = 0.15
    sentence_pause_duration: float = 0.25
    # Speed multiplier (1.0 = normal, 0.5 = half speed, 2.0 = double).
    speed: float = 1.0

    _frames: list[VisemeFrame] = field(default_factory=list, init=False)
    _index: int = field(default=0, init=False)
    _elapsed: float = field(default=0.0, init=False)

    def __post_init__(self) -> None:
        if self.text:
            self._frames = self._text_to_frames(self.text)

    @classmethod
    def from_visemes(
        cls,
        visemes: Sequence[tuple[Viseme, float]],
        speed: float = 1.0,
    ) -> SpeakingAnimation:
        """Create an animation from an explicit viseme sequence.

        Each tuple is ``(viseme, duration_s)``.
        """
        anim = cls(speed=speed)
        for viseme, duration in visemes:
            openness, width = _VISEME_TARGETS.get(viseme, (0.3, 0.5))
            anim._frames.append(
                VisemeFrame(
                    openness=openness,
                    width=width,
                    duration_s=duration / speed,
                    viseme=viseme,
                )
            )
        return anim

    def step(self, dt: float) -> VisemeFrame:
        """Advance the animation by ``dt`` seconds.

        Returns the current :class:`VisemeFrame`. If the animation has
        finished, returns :class:`Viseme.IDLE` frame.
        """
        if not self._frames or self._index >= len(self._frames):
            return VisemeFrame(openness=0.0, width=0.5, duration_s=0.0)

        self._elapsed += dt

        # Advance to the next frame when the current frame's duration
        # expires.  Unlike a simple ``elapsed + duration <= dt`` check,
        # we accumulate time across calls so that frames with durations
        # longer than a single ``dt`` are held for their full duration.
        while (
            self._index < len(self._frames)
            and self._elapsed >= self._frames[self._index].duration_s
        ):
            self._elapsed -= self._frames[self._index].duration_s
            self._index += 1

        if self._index >= len(self._frames):
            return VisemeFrame(openness=0.0, width=0.5, duration_s=0.0)

        return self._frames[self._index]

    @property
    def has_frames(self) -> bool:
        """Whether there are still frames to animate."""
        return self._index < len(self._frames)

    @property
    def total_duration(self) -> float:
        """Total animation duration in seconds."""
        return sum(f.duration_s for f in self._frames)

    def reset(self) -> None:
        """Reset the animation to the beginning."""
        self._index = 0
        self._elapsed = 0.0

    # ------------------------------------------------------------------ text->viseme
    def _text_to_frames(self, text: str) -> list[VisemeFrame]:
        """Convert text into a list of viseme frames."""
        frames: list[VisemeFrame] = []
        i = 0
        while i < len(text):
            ch = text[i].lower()

            # Handle punctuation as pauses.
            if ch in ".!?":
                frames.append(
                    VisemeFrame(
                        openness=0.0,
                        width=0.5,
                        duration_s=self.sentence_pause_duration / self.speed,
                    )
                )
                i += 1
                continue
            if ch in ",;:":
                frames.append(
                    VisemeFrame(
                        openness=0.0, width=0.5, duration_s=self.pause_duration / self.speed
                    )
                )
                i += 1
                continue
            if ch in " \n\t":
                frames.append(VisemeFrame(openness=0.0, width=0.5, duration_s=0.05 / self.speed))
                i += 1
                continue

            # Try two-character digraphs first.
            if i + 1 < len(text):
                digraph = text[i : i + 2].lower()
                if digraph in _CHAR_TO_VISEME:
                    viseme = _CHAR_TO_VISEME[digraph]
                    openness, width = _VISEME_TARGETS[viseme]
                    frames.append(
                        VisemeFrame(
                            openness=openness,
                            width=width,
                            duration_s=self.default_phoneme_duration / self.speed,
                            viseme=viseme,
                        )
                    )
                    i += 2
                    continue

            # Single character.
            viseme = _CHAR_TO_VISEME.get(ch, Viseme.IDLE)
            openness, width = _VISEME_TARGETS[viseme]
            frames.append(
                VisemeFrame(
                    openness=openness,
                    width=width,
                    duration_s=self.default_phoneme_duration / self.speed,
                    viseme=viseme,
                )
            )
            i += 1

        return frames

has_frames property

Whether there are still frames to animate.

total_duration property

Total animation duration in seconds.

from_visemes(visemes, speed=1.0) classmethod

Create an animation from an explicit viseme sequence.

Each tuple is (viseme, duration_s).

Source code in src/robot/face/animations/speaking.py
@classmethod
def from_visemes(
    cls,
    visemes: Sequence[tuple[Viseme, float]],
    speed: float = 1.0,
) -> SpeakingAnimation:
    """Create an animation from an explicit viseme sequence.

    Each tuple is ``(viseme, duration_s)``.
    """
    anim = cls(speed=speed)
    for viseme, duration in visemes:
        openness, width = _VISEME_TARGETS.get(viseme, (0.3, 0.5))
        anim._frames.append(
            VisemeFrame(
                openness=openness,
                width=width,
                duration_s=duration / speed,
                viseme=viseme,
            )
        )
    return anim

reset()

Reset the animation to the beginning.

Source code in src/robot/face/animations/speaking.py
def reset(self) -> None:
    """Reset the animation to the beginning."""
    self._index = 0
    self._elapsed = 0.0

step(dt)

Advance the animation by dt seconds.

Returns the current :class:VisemeFrame. If the animation has finished, returns :class:Viseme.IDLE frame.

Source code in src/robot/face/animations/speaking.py
def step(self, dt: float) -> VisemeFrame:
    """Advance the animation by ``dt`` seconds.

    Returns the current :class:`VisemeFrame`. If the animation has
    finished, returns :class:`Viseme.IDLE` frame.
    """
    if not self._frames or self._index >= len(self._frames):
        return VisemeFrame(openness=0.0, width=0.5, duration_s=0.0)

    self._elapsed += dt

    # Advance to the next frame when the current frame's duration
    # expires.  Unlike a simple ``elapsed + duration <= dt`` check,
    # we accumulate time across calls so that frames with durations
    # longer than a single ``dt`` are held for their full duration.
    while (
        self._index < len(self._frames)
        and self._elapsed >= self._frames[self._index].duration_s
    ):
        self._elapsed -= self._frames[self._index].duration_s
        self._index += 1

    if self._index >= len(self._frames):
        return VisemeFrame(openness=0.0, width=0.5, duration_s=0.0)

    return self._frames[self._index]

robot.face.animations.speaking.Viseme

Bases: str, Enum

Simplified viseme set for English speech.

Maps approximately to the Prestonon viseme set (13 visemes) but grouped for a small round display. Each viseme has a target mouth openness (0.0 = closed, 1.0 = wide open) and width.

Source code in src/robot/face/animations/speaking.py
class Viseme(str, Enum):
    """Simplified viseme set for English speech.

    Maps approximately to the Prestonon viseme set (13 visemes) but
    grouped for a small round display. Each viseme has a target mouth
    openness (0.0 = closed, 1.0 = wide open) and width.
    """

    IDLE = "idle"  # mouth closed, neutral
    PP = "pp"  # p, b, m - lips together
    FF = "ff"  # f, v - lower lip to upper teeth
    TH = "th"  # th - tongue between teeth
    DD = "dd"  # t, d, n - tongue to alveolar ridge
    KK = "kk"  # k, g - back of tongue to soft palate
    CH = "ch"  # ch, j, sh - lips rounded
    SS = "ss"  # s, z - teeth together
    NN = "nn"  # n, ng - mouth slightly open
    RR = "rr"  # r - lips rounded
    AA = "aa"  # a - mouth open wide
    EE = "ee"  # e - mouth stretched wide
    OO = "oo"  # o, u - mouth rounded

robot.face.animations.speaking.VisemeFrame dataclass

A single frame of the speaking animation.

Attributes

openness: How open the mouth is (0.0 = closed, 1.0 = wide open). width: How wide the mouth is (0.0 = narrow, 1.0 = wide). duration_s: How long this viseme should be held, in seconds. viseme: The viseme this frame represents.

Source code in src/robot/face/animations/speaking.py
@dataclass(slots=True, frozen=True)
class VisemeFrame:
    """A single frame of the speaking animation.

    Attributes
    ----------
    openness:
        How open the mouth is (0.0 = closed, 1.0 = wide open).
    width:
        How wide the mouth is (0.0 = narrow, 1.0 = wide).
    duration_s:
        How long this viseme should be held, in seconds.
    viseme:
        The viseme this frame represents.
    """

    openness: float
    width: float
    duration_s: float
    viseme: Viseme = Viseme.IDLE

robot.face.animations.wake.WakeAnimation dataclass

Produces a sequence of :class:WakeFrame objects for the wake animation.

Usage::

anim = WakeAnimation()
while not anim.done:
    frame = anim.step(dt=0.033)
    # Apply frame to face model...
Source code in src/robot/face/animations/wake.py
@dataclass(slots=True)
class WakeAnimation:
    """Produces a sequence of :class:`WakeFrame` objects for the wake animation.

    Usage::

        anim = WakeAnimation()
        while not anim.done:
            frame = anim.step(dt=0.033)
            # Apply frame to face model...
    """

    _phase: WakePhase = WakePhase.EYES_OPEN
    _elapsed: float = 0.0

    def step(self, dt: float) -> WakeFrame:
        """Advance the animation by ``dt`` seconds and return the current frame."""
        if self._phase == WakePhase.DONE:
            return self._idle_frame()

        self._elapsed += dt
        phase_duration = _PHASE_DURATIONS.get(self._phase, 0.3)

        frame = self._frame_for_phase(self._phase)

        # Transition to next phase when duration expires.
        if self._elapsed >= phase_duration:
            self._elapsed -= phase_duration
            self._phase = self._next_phase(self._phase)

        return frame

    @property
    def done(self) -> bool:
        """Whether the animation has completed."""
        return self._phase == WakePhase.DONE

    def reset(self) -> None:
        """Reset the animation to the beginning."""
        self._phase = WakePhase.EYES_OPEN
        self._elapsed = 0.0

    def _next_phase(self, phase: WakePhase) -> WakePhase:
        order = [
            WakePhase.EYES_OPEN,
            WakePhase.DOUBLE_BLINK,
            WakePhase.MOUTH_SURPRISE,
            WakePhase.TRANSITION,
            WakePhase.DONE,
        ]
        idx = order.index(phase) if phase in order else 0
        next_idx = idx + 1
        if next_idx >= len(order):
            return WakePhase.DONE
        return order[next_idx]

    def _frame_for_phase(self, phase: WakePhase) -> WakeFrame:
        if phase == WakePhase.EYES_OPEN:
            return WakeFrame(
                gaze=Gaze(0.0, 0.0),
                eye_openness=1.2,
                eyelid_top=0.0,
                eyebrow_shape=EyebrowShape.RAISED,
                eyebrow_raise=0.8,
                phase=phase,
            )
        if phase == WakePhase.DOUBLE_BLINK:
            # The blink cycle happens within the 0.3s window.
            # First 0.15s: eyes closed. Next 0.15s: eyes open, then closed again.
            blink_t = self._elapsed / max(0.001, _PHASE_DURATIONS[WakePhase.DOUBLE_BLINK])
            if blink_t < 0.15:
                openness = max(0.1, 1.0 - blink_t * 6.0)
            elif blink_t < 0.30:
                openness = 0.1 + (blink_t - 0.15) * 6.0
            elif blink_t < 0.50:
                openness = max(0.1, 1.0 - (blink_t - 0.30) * 5.0)
            else:
                openness = 0.1 + (blink_t - 0.50) * 1.8
            openness = max(0.1, min(1.2, openness))
            return WakeFrame(
                gaze=Gaze(0.0, 0.05),
                eye_openness=openness,
                eyelid_top=1.0 - openness,
                mouth_shape=MouthShape.NEUTRAL,
                mouth_openness=0.1,
                phase=phase,
            )
        if phase == WakePhase.MOUTH_SURPRISE:
            return WakeFrame(
                gaze=Gaze(0.0, 0.05),
                eye_openness=1.1,
                eyelid_top=0.05,
                mouth_shape=MouthShape.WIDE_OPEN,
                mouth_openness=0.7,
                mouth_width=0.6,
                eyebrow_shape=EyebrowShape.RAISED,
                eyebrow_raise=0.6,
                phase=phase,
            )
        if phase == WakePhase.TRANSITION:
            # Smooth transition to "curious" look.
            return WakeFrame(
                gaze=Gaze(0.1, 0.1),
                eye_openness=1.0,
                eyelid_top=0.0,
                mouth_shape=MouthShape.OPEN,
                mouth_openness=0.2,
                mouth_width=0.4,
                eyebrow_shape=EyebrowShape.RAISED,
                eyebrow_raise=0.3,
                phase=phase,
            )
        return self._idle_frame()

    @staticmethod
    def _idle_frame() -> WakeFrame:
        return WakeFrame(gaze=Gaze(0.0, 0.0), phase=WakePhase.DONE)

done property

Whether the animation has completed.

reset()

Reset the animation to the beginning.

Source code in src/robot/face/animations/wake.py
def reset(self) -> None:
    """Reset the animation to the beginning."""
    self._phase = WakePhase.EYES_OPEN
    self._elapsed = 0.0

step(dt)

Advance the animation by dt seconds and return the current frame.

Source code in src/robot/face/animations/wake.py
def step(self, dt: float) -> WakeFrame:
    """Advance the animation by ``dt`` seconds and return the current frame."""
    if self._phase == WakePhase.DONE:
        return self._idle_frame()

    self._elapsed += dt
    phase_duration = _PHASE_DURATIONS.get(self._phase, 0.3)

    frame = self._frame_for_phase(self._phase)

    # Transition to next phase when duration expires.
    if self._elapsed >= phase_duration:
        self._elapsed -= phase_duration
        self._phase = self._next_phase(self._phase)

    return frame

robot.face.animations.wake.WakeFrame dataclass

A single frame of the wake animation.

Provides target values for the face model at a given animation time. The caller interpolates between the current state and this target.

Source code in src/robot/face/animations/wake.py
@dataclass(slots=True, frozen=True)
class WakeFrame:
    """A single frame of the wake animation.

    Provides target values for the face model at a given animation
    time. The caller interpolates between the current state and
    this target.
    """

    gaze: Gaze
    eye_openness: float = 1.0
    eyelid_top: float = 0.0
    mouth_shape: MouthShape = MouthShape.NEUTRAL
    mouth_openness: float = 0.0
    mouth_width: float = 0.5
    eyebrow_shape: EyebrowShape = EyebrowShape.NEUTRAL
    eyebrow_raise: float = 0.0
    phase: WakePhase = WakePhase.IDLE

robot.face.animations.wake.WakePhase

Bases: str, Enum

Phases of the wake animation.

Source code in src/robot/face/animations/wake.py
class WakePhase(str, Enum):
    """Phases of the wake animation."""

    IDLE = "idle"
    EYES_OPEN = "eyes_open"
    DOUBLE_BLINK = "double_blink"
    MOUTH_SURPRISE = "mouth_surprise"
    TRANSITION = "transition"
    DONE = "done"