This topic describes the API operations of the Android software development kit (SDK).
API overview
Earlier SDK versions contain deprecated parameters and methods. We recommend that you upgrade the SDK to the latest version. For more information, see Android user guide.
|
Class/Protocol |
API |
Description |
|
ARTCAICallEngine Defines the audio and video call engine interface. |
Initialization |
|
|
Sets the agent type. |
||
|
Creates and starts a call. |
||
|
Initiates an agent call from the client. |
||
|
Hangs up the call. |
||
|
Switches the microphone status. |
||
|
You can interrupt the robot. |
||
|
Enables or disables smart interruption. |
||
|
Switches between the speaker and earpiece. |
||
|
Stops or resumes playing the agent's audio stream. |
||
|
Enables or disables the push-to-talk mode. |
||
|
Checks whether the push-to-talk mode is enabled. |
||
|
Push-to-talk mode: Starts speaking. |
||
|
Push-to-talk mode: Stops speaking. |
||
|
Push-to-talk mode: Cancels the current speech. |
||
|
Switches the voice. |
||
|
Gets the current voice. |
||
|
Registers a callback. |
||
|
Checks whether the microphone is muted. |
||
|
Checks whether the speaker is used for playback. |
||
|
Checks whether smart interruption is enabled. |
||
|
Sets the view container for the digital human and specifies the rendering mode. |
||
|
Sets the local view container for visual understanding and specifies the rendering mode. |
||
|
Turn Camera On/Off |
||
|
Is the camera shut down? |
||
|
Switches between the front and rear cameras. |
||
|
Gets the Alibaba Real-Time Communication (ARTC) engine instance. |
||
|
Gets the official protocol implementation. |
||
|
Sends a custom message to the large language model (LLM). |
||
|
Sends a custom message to the business server. This operation must be called after the call is connected. |
||
|
Updates the system prompt for the LLM. This operation must be called after the call is connected. |
||
|
Updates the parameters for the Model Studio application center. |
||
|
Updates the VCR configuration. |
||
|
For a visual understanding agent, starts custom frame capture. After this is started, you cannot talk to the agent by voice. This operation must be called after the call is connected. |
||
|
For a visual understanding agent, stops custom frame capture. This operation must be called after the call is connected. |
||
|
Sets the video view container for the agent. |
||
|
Sets the video view container for the agent and specifies the rendering mode. |
||
|
Sets the local preview view control. |
||
|
Sets the local preview view control and specifies the rendering mode. |
||
|
Updates the voice activity detection (VAD) threshold. |
||
|
Updates the text-to-speech (TTS) playback speed. |
||
|
Gets the runtime information of the current agent. |
||
|
IARTCAICallEngineCallback Engine callback events. |
An error occurred. |
|
|
The agent started successfully. |
||
|
The call started. |
||
|
The call ended. |
||
|
The underlying AliRtcEngine engine is created. |
||
|
Synchronizing Robot Status |
||
|
Callback for when the user is speaking. |
||
|
Synchronizes the text recognized from the user's speech by Automatic Speech Recognition (ASR). |
||
|
Synchronization agent response |
||
|
The LLM has finished replying in the current call. |
||
|
Callback for network status changes. |
||
|
The volume changed. |
||
|
The voice for the current call changed. |
||
|
The voice interruption setting for the current call changed. |
||
|
Indicates whether the agent's video stream is available. |
||
|
Indicates whether the agent's audio stream is available. |
||
|
Audio loopback latency. |
||
|
The first video frame of the digital human is rendered. |
||
|
Callback for when a user comes online. |
||
|
The agent's current speech was interrupted. |
||
|
Indicates whether custom frame capture mode is enabled for the current visual understanding call. |
||
|
The current agent is about to leave the call. |
||
|
A human agent is about to take over from the current agent. |
||
|
The human agent takeover is connected. |
||
|
A custom message from the agent. |
||
|
Notification of the agent's emotion analysis result. |
||
|
Callback for the availability of the agent's message channel. |
||
|
The connection status changed during the call. |
||
|
A VCR result is received from the current agent. |