A React-based demo application for integrating with Akool's Streaming Avatar service. This demo showcases real-time avatar streaming with voice interaction, network quality monitoring, and chat functionality.
- Real-time avatar streaming
- Voice interaction support
- Text-based chat interface
- Network quality monitoring
- Multiple language support
- Customizable avatar and voice selection
- Responsive design
- Node.js v22.11.0 or higher
- A valid Akool API token
- Agora.io credentials
- Clone the repository:
git clone https://github.com/AKOOL-Official/akool-streaming-avatar-react-demo
cd akool-streaming-avatar-react-demo- Install dependencies:
npm install -g yarn
yarn install- Start the development server:
yarn devThe application will be available at http://localhost:5173/streaming/avatar
Build the application:
yarn buildThe built application will be in the dist directory.
The application can be configured with the following parameters:
- OpenAPI Host
- API Token
- Avatar Selection
- Language Settings
- Voice Settings
- Session Duration
The application includes a comprehensive network quality monitoring system that displays:
- Video and audio statistics
- Network latency
- Packet loss rates
- Bitrate information
- Frame rates
- End-to-end delay metrics
- Chrome
- Firefox
- Safari
- Edge
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request