Simli WebRTC frontend client
npm install simli-client
Initialize(config: SimliClientConfig)
: Initializes the SimliClient with the provided configuration.start()
: Sets up the WebRTC connection and prepares for streaming.sendAudioData(audioData: Uint8Array)
: Sends audio data to the server.listenToMediastreamTrack(stream: MediaStreamTrack)
: Sends mediaStream audio data to the serverclose()
: Closes the WebRTC connection and cleans up resources.
connected
disconnected
failed