Quick Start
Use our simli-client sdk to start streaming
Key Concepts
-
API Key: Our endpoint require an API key which you can easily obtain by creating an account at Create an account. The API key makes it easier for you to track your usage and control who has access to Simli.
-
Faces: All our available Avatar faces can be accessed through: Available Faces. We are continously adding new ones.
-
simli-client: Stream PCM16 audio bytes to our SDK to start recieving media.
How it works?
Our API comprimises of two main components:
/startAudioToVideoSession
API to initialize a session./StartWebRTCSession
WebRTC API to start streamingPCM16
audio bytes to video.
If you’re a WebRTC enthusiast, we encourage you to learn more about Simli WebRTC
In this guide we will be using our simli-client
SDK to avoid setting up all
the WebRTC complexities.
Start Building
API Key
In order to use our API you need to get your apiKey
first.
Create an account, log in
and in your profile you can view your API Key.
Initialize and start streaming
- Create a React ref and pass it to the video and audio
- Initialize SimliClient and pass in the video and audio ref
- Call start function to Setup WebRTC connection
- Stream audio using
sendAudioData()
AudioData should be of type PCM16
and sample rate 16KHz
- Finally
If done successfully, you will recieve media to be rendered on your frontend.
Working example
Clone our starter repo to get started with a working example:
create-simli-app
A simple demo demonstrating use of simli-client with OpenAI for LLM and ElevenLabs for speech