BLAICall

public final class BLAICall extends BLVoiceCall

Represents an AI Interpreter call: a signaling and media session where the remote interlocutor is the Boostlingo AI Interpreter.

AI calls reuse the Twilio voice media path of BLVoiceCall — including mute/unmute, hang-up, and third-party participant dialing — and (see later additions) add the ability to interrupt the AI while it is speaking.

Properties

Link copied to clipboard
private final String accessToken

Property that defines the twilio access token.

Link copied to clipboard
private final Long callId

Gets a server assigned identifier for the Call.

Link copied to clipboard
private final Boolean canAddThirdParty
Link copied to clipboard
Link copied to clipboard
private final Long currentUserId

A server assigned identifier for the current user.

Link copied to clipboard
private final String identity

Property that defines the twilio identity.

Link copied to clipboard

Gets interpreter information for the Call.

Link copied to clipboard
private final Boolean isInProgress

Property that defines if the Call is in progress.

Link copied to clipboard
private Boolean isMuted

Property that defines if the Call is muted.

Link copied to clipboard
private final Boolean isVideo

Returns true if this is a video call, false otherwise.

Link copied to clipboard

Defines the list of remote participants joined the Call.

Functions

Link copied to clipboard
public final Completable confirmThirdPartyParticipant(String identity, Boolean confirm)

Accepts/rejects the third party participant joining by the link.

Link copied to clipboard
public final Completable dialThirdParty(String phone)

Used to dial a third-party participant with the phone number specified.

Link copied to clipboard
public final String getAccessToken()

Property that defines the twilio access token.

Link copied to clipboard
public final Long getCallId()

Gets a server assigned identifier for the Call.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Long getCurrentUserId()

A server assigned identifier for the current user.

Link copied to clipboard
public final String getIdentity()

Property that defines the twilio identity.

Link copied to clipboard

Gets interpreter information for the Call.

Link copied to clipboard

Defines the list of remote participants joined the Call.

Link copied to clipboard
public final Completable hangupThirdPartyParticipant(String identity)

Used to remove a participant with the identity specified from the current call.

Link copied to clipboard
public final Completable interrupt()

Asks the AI Interpreter to stop speaking. If the AI is not currently speaking the call is a no-op and no request is sent to the server. Errors if there is no active AI call.

Link copied to clipboard

Property that defines if the Call is in progress.

Link copied to clipboard
public Boolean isMuted()

Property that defines if the Call is muted.

Link copied to clipboard
public Boolean isVideo()

Returns true if this is a video call, false otherwise.

Link copied to clipboard
public final Completable muteThirdPartyParticipant(String identity, Boolean mute)

Used to mute/unmute a participant with the identity specified from the current call.

Link copied to clipboard
public Unit setMuted(Boolean mute)

Property that defines if the Call is muted.