AI Agent Solution
Note
This document is automatically translated using AI. Please excuse any detailed errors. The official English version is still in progress.
Overview
AI Agents are built on the ESP32 platform and ESP-ADF. With esp_llm_service at the center, they provide a mature audio and video AI interaction solution. Developers can reuse this path to connect quickly to a built-in cloud platform or to their own large model.
Component Relationship
Core Service: esp_llm_service
esp_llm_service replaces the previous Audio-processor. It separates the audio and video pipeline from the cloud protocol:
It reuses the mature audio and video capture, 3A audio front end, wake word, and multi-channel playback rendering of
esp_media_service.It supports voice conversation, image understanding, text-to-image display, and barge-in.
To switch to or add a custom cloud platform, only the
esp_llm_*adapter needs to be replaced or added. The media path does not need to change.
Examples and Backend Components
The original examples/ai_agent examples have been updated to adf_examples/ai_agent:
Platform |
Example project |
Component |
Supported capabilities |
|---|---|---|---|
Baidu RTC |
Voice conversation, visual understanding, text-to-image, and multimodal preview |
||
Coze |
WebSocket full-duplex voice, wake word, and barge-in |
||
Alibaba Tongyi |
Voice conversation, camera preview, and single-frame capture for image recognition |
||
Volcengine RTC |
RTC voice conversation (the component also supports video) |
Quick Integration (agent.md)
Use the following agent.md documents to connect this audio and video solution to your own product or a custom large-model platform: