StartRtcRobotInstance
Starts an RTC interactive AI agent instance and joins an RTC call.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:StartRtcRobotInstance |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RobotId |
string |
Yes |
The ID of the AI agent. |
ca28b08ad3464ebcb42e5c0f7c6d2e89 |
| ChannelId |
string |
Yes |
The ID of the RTC channel. |
testId |
| UserId |
string |
Yes |
The ID of the AI agent in the channel. |
my-robot |
| UserData |
string |
No |
The custom user data. |
{} |
| AuthToken |
string |
Yes |
The RTC join token, which must be generated by using the RTC AppKey. |
********** |
| Config |
object |
No |
The advanced call configurations. If specified, these configurations override the default configurations set when the AI agent was created. Otherwise, the default configurations are used. |
|
| AsrMaxSilence |
integer |
No |
The maximum silence threshold at the end of an Automatic Speech Recognition (ASR) sentence, in milliseconds. After the user stops speaking for a duration that reaches this threshold, the speech recognition service determines that the current sentence has ended. A smaller value facilitates faster responses, while a larger value helps preserve pauses within a sentence. This is not the timeout for hanging up due to user unresponsiveness. The default value for standard engines is |
400 |
| EnableVoiceInterrupt |
boolean |
No |
Specifies whether to allow voice interruption. |
true |
| Greeting |
string |
No |
The greeting message, which is the first sentence proactively spoken by the AI agent after the user joins the call. |
Hello, how can I help you? |
| UseVoiceprint |
boolean |
No |
Specifies whether to enable voiceprint recognition and primary speaker identification. This feature helps distinguish the primary speaker from other speakers and reduces interference from non-primary speakers during interactions. Valid values:
|
true |
| UserOfflineTimeout |
integer |
No |
The tolerance duration after a remote user leaves the call, in seconds. If the user does not reconnect within this duration, the agent instance automatically stops. This parameter can be used to tolerate brief disconnections. The default value for standard engines is |
5 |
| UserOnlineTimeout |
integer |
No |
The timeout duration for waiting for the remote user to be ready after the agent successfully joins the call, in seconds. If the user does not become ready within this duration, the instance automatically stops. The default value for standard engines is |
60 |
| VoiceId |
string |
No |
The ID of the voice. |
zhixiaoxia |
| VoiceprintId |
string |
No |
The voiceprint profile identifier, which is used to locate voiceprint storage within the same account and supports subsequent read or update operations. This parameter is typically used in combination with |
vp-user-001 |
| Volume |
integer |
No |
The audio volume parameter for the audio published by the agent to the RTC channel. This parameter adjusts the volume of the agent's voice heard by remote users. It does not control the microphone capture volume or the device system volume. The default value of the RTC transmission node construction parameter is |
100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| InstanceId |
string |
The instance ID. |
727dc0e296014bb58670940a3da95592 |
| RequestId |
string |
Id of the request |
11DE0AB3-603B-5055-8A72-9C424854F983 |
Examples
Success response
JSON format
{
"InstanceId": "727dc0e296014bb58670940a3da95592",
"RequestId": "11DE0AB3-603B-5055-8A72-9C424854F983"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.