👁️

AEye Playground

STATE_ENGINE: ACTIVE
Idle
Developer System Logs ● CONNECTED

Simulate AI processing output. This sends mock frequency signals directly to AEye.

Interactive Tracking Eye moves in real-time to track cursor pointer.
Micro-Saccades (Idle) Enables tiny organic focus jumps for realistic depth.
Physical Scale 1.0x
Resting Pupil Dilation 24px
Natural Blink Rate 3.5s

Our state-machine is designed to plug directly into LLM trigger APIs or ElevenLabs/Web Speech TTS progress events. Use the code snippet below to initialize and control the visual state easily.

aeye-controller.js
// 1. Import or target the AEye element
const avatar = new AEyeController({
  elementId: '#eye-svg',
  defaultState: 'idle',
  irisColor: '#06b6d4'
});

// 2. Trigger active states based on LLM events
onLLMRequestStart(() => {
  avatar.setState('thinking');
});

// 3. Map TTS voice callbacks for synchronized talk
onTTSChunkPlay(audioBuffer) => {
  avatar.setState('speaking', {
    amplitude: audioBuffer.volume
  });
};

// 4. Return to attentive tracking
onTTSFinished(() => {
  avatar.setState('idle');
});