VoiceClient
An RTVI client. Connects to an RTVI backend and handles bidirectional audio and video streaming.
The client must be cleaned up using the release method when it is no longer required.
Parameters
URL of the RTVI backend.
Transport for media streaming.
Callbacks invoked when changes occur in the voice session.
Additional options for configuring the client and backend.
Constructors
Properties
Returns true if the camera is enabled, false otherwise.
Returns true if the microphone is enabled, false otherwise.
Returns the selected video input device.
Returns the selected audio input device.
The current state of the session.
Functions
Returns a list of supported actions.
Returns the expected structure of the server config.
Disconnect an active RTVI session.
Returns a list of available video input devices.
Returns a list of available audio input devices.
Gets the current config from the server.
Initialize local media devices such as camera and microphone.
Registers a new helper with the client.
Directly send a message to the bot via the transport.
Initiate an RTVI session, connecting to the backend.
Unregisters a helper from the client.
Use the specified video input device.
Updates the config on the server.
Use the specified audio input device.