VoiceEventCallbacks

abstract class VoiceEventCallbacks

Callbacks invoked when changes occur in the voice session.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Invoked when the list of available cameras has changed.

Link copied to clipboard

Invoked when the list of available microphones has updated.

Link copied to clipboard
abstract fun onBackendError(message: String)

An error has occurred in the RTVI backend.

Link copied to clipboard
open fun onBotConnected(participant: Participant)

Invoked when the bot has connected to the session.

Link copied to clipboard
open fun onBotDisconnected(participant: Participant)

Invoked when the bot has disconnected from the session.

Link copied to clipboard
open fun onBotReady(version: String, config: List<ServiceConfig>)

Invoked when the bot has indicated it is ready for commands.

Link copied to clipboard

Invoked when the bot starts talking.

Link copied to clipboard

Invoked when the bot stops talking.

Link copied to clipboard
open fun onBotTranscript(text: String)

Invoked when bot transcript data is avaiable.

Link copied to clipboard
open fun onConnected()

Invoked when the underlying transport has connected.

Link copied to clipboard
open fun onDisconnected()

Invoked when the underlying transport has disconnected.

Link copied to clipboard

Invoked when a message from the backend is received which was not handled by the VoiceClient or a registered helper.

Link copied to clipboard
open fun onInputsUpdated(camera: Boolean, mic: Boolean)

Invoked when the state of the input devices changes.

Link copied to clipboard
open fun onParticipantJoined(participant: Participant)

Invoked when a participant has joined the session.

Link copied to clipboard
open fun onParticipantLeft(participant: Participant)

Invoked when a participant has left the session.

Link copied to clipboard

Invoked when session metrics are received.

Link copied to clipboard
open fun onRemoteAudioLevel(level: Float, participant: Participant)

Invoked regularly with the audio volume of each remote participant.

Link copied to clipboard

Invoked when the session state has changed.

Link copied to clipboard
open fun onUserAudioLevel(level: Float)

Invoked regularly with the volume of the locally captured audio.

Link copied to clipboard

Invoked when the local user starts talking.

Link copied to clipboard

Invoked when the local user stops talking.

Link copied to clipboard

Invoked when user transcript data is avaiable.