Both the avatar_id and voice_id can be easily obtained by copying them directly from the web interface. You can also create and manage your streaming avatars using our intuitive web platform.Create and manage your avatars at: https://akool.com/apps/upload/avatar?from=%2Fapps%2Fstreaming-avatar%2Fedit
To experience our live avatar streaming feature in action, explore our demo built on the Agora streaming service: AKool Streaming Avatar React Demo.
Knowledge Base Integration: You can enhance your streaming avatar with contextual AI responses by integrating a Knowledge Base. When creating a session, provide a
knowledge_id parameter to enable the AI to use documents and URLs from your knowledge base for more accurate and relevant responses.API Endpoints
Avatar Management
- Upload Streaming Avatar - Create a new streaming avatar from a video URL
- Get Avatar List - Retrieve a list of all streaming avatars
- Get Avatar Detail - Get detailed information about a specific avatar
Session Management
- Create Session - Create a new streaming avatar session
- Get Session Detail - Retrieve detailed information about a specific session
- Close Session - Close an active streaming avatar session
- Get Session List - Retrieve a list of all streaming avatar sessions
Live Avatar Stream Message
Command Type Parameters
Voice Parameters
Turn Detection Configuration
JSON Example
Command Type Parameters
JSON Example
Integrating Your Own LLM Service
Before dispatching a message to the WebSocket, consider executing an HTTP request to your LLM service.Response Code Description
Please note that if the value of the response code is not equal to 1000, the request
is failed or wrong