Robot side (interaction-robot)

The robot side runs on the X2 dev compute unit. It handles the microphone pipeline, interaction orchestration, and audio playback, and calls the PC-side services over HTTP. Deploying the full voice interaction requires both the robot side and the PC side to be ready.

Responsibilities and composition

Component

Path

Description

Main interaction flow

robot/agent/interaction_agent.py

Audio processing orchestration, wake word and speaker gating

Service and network configuration

robot/agent/config.py

PC service URL derivation (INTERACTION_PC_HOST and other environment variables)

Conversation capabilities

robot/interaction/

Conversation memory, VAD, voiceprint, motion interface

Wake word detection

robot/wakeword/

Wake word detection and keyword list (default: “Lingxi Lingxi”)

Camera bridging

robot/services/

HTTP bridging of camera frames

Launch entry

robot/launch/run.sh

Launch script shared by terminal and web page

Deployment and tools

scripts/

One-shot deployment, config initialization, environment checks

The default audio pipeline is raw_lvqe: direct capture from /aima/hal/audio/capture → LocalVQE echo cancellation → DFSMN denoising → wake word and voice gating → PC-side separation / voiceprint / ASR.

Quick start

Note

For complete deployment steps (model downloads, dependency installation, configuration, startup), refer to the in-repo documentation; this page does not duplicate them:

Minimal flow (excerpted from the in-repo user guide; see the docs above for full steps):

  1. Deploy the PC-side services (see the PC side) and note the PC’s LAN IP

  2. One-shot robot-side deployment: bash scripts/deploy_robot.sh (prepares Python dependencies and models automatically)

  3. Set INTERACTION_PC_HOST to the PC’s IP in config/runtime.env

  4. Start: bash robot/launch/run.sh

  5. Say “Lingxi Lingxi” to the robot to start interacting

Warning

Stop the firmware voice interaction system before starting — this reference implementation and the firmware voice interaction system use the same pair of audio topics (/aima/hal/audio/capture / /aima/hal/audio/playback), and running both at once causes mutual interference.