simli-client
v2.0.0
Published
Simli WebRTC Client
Readme
SimliClient
Simli WebRTC frontend client
Installation
npm install simli-clientMethods
Initialize(config: SimliClientConfig): Initializes the SimliClient with the provided configuration.start(): Sets up the WebRTC connection and prepares for streaming.close(): Closes the WebRTC connection and cleans up resources.sendAudioData(audioData: Uint8Array): Sends audio data to the server.listenToMediastreamTrack(stream: MediaStreamTrack): Listens to a MediaStreamTrack and sends audio data to the server. Can be used as an alternative tosendAudioData.ClearBuffer(): Clears the audio buffer, best used when you want the avatar to stop talking.
Events
connecteddisconnectedfailed
