Starting a Virtual Avatar Intelligent Interaction Task
Function
Starts a virtual avatar intelligent interaction task.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
POST /v1/{project_id}/smart-chat-rooms/{room_id}/smart-chat-jobs
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
room_id |
Yes |
String |
Interactive dialog ID. For details about how to obtain the ID, see Creating an Interactive Dialog. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain the token by calling the IAM API used to obtain a user token. Value of X-Subject-Token in the response header. |
|
Authorization |
No |
String |
Authentication information. This parameter is mandatory for AK/SK authentication. |
|
X-Sdk-Date |
No |
String |
Time when the request is sent. This parameter is mandatory for AK/SK authentication. The format is YYYYMMDD'T'HHMMSS'Z'. |
|
X-Project-Id |
No |
String |
Project ID. This parameter is mandatory for AK/SK authentication. |
|
X-App-UserId |
No |
String |
Third-party user ID, which does not allow Chinese characters. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
region |
No |
String |
Region where the computing power is provided.
|
|
client_id |
No |
String |
Service ID. |
|
room_type |
No |
String |
Room type for interactive dialogs with virtual avatars.
Default value: RTC |
Response Parameters
Status code: 202
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Request ID. |
|
Parameter |
Type |
Description |
|---|---|---|
|
job_id |
String |
Interactive dialog task ID. |
|
rtc_room_info |
RTCRoomInfoList object |
RTC room information. |
|
chat_subtitle_config |
ChatSubtitleConfig object |
Dialog subtitle configuration |
|
video_config |
ChatVideoConfigRsp object |
Video output configuration. |
|
voice_config_list |
Array of VoiceConfigRsp objects |
Voice configuration parameter list. |
|
chat_video_type |
String |
Interactive dialog device configuration.
|
|
is_transparent |
Boolean |
Whether the background is transparent.
NOTE:
true: yes
false: no Default value: false |
|
region |
String |
Region where the computing power is provided.
|
|
default_language |
String |
Default language, which is used by the intelligent interaction APIs. Default value: CN
Default value: CN |
|
Parameter |
Type |
Description |
|---|---|---|
|
app_id |
String |
RTC application ID. |
|
room_id |
String |
RTC room ID. |
|
users |
Array of RTCUserInfo objects |
Information about users joining an RTC room. |
|
Parameter |
Type |
Description |
|---|---|---|
|
user_type |
String |
User type.
|
|
user_id |
String |
RTC user ID. |
|
signature |
String |
RTC authentication token. |
|
ctime |
Long |
Validity period. Timestamp, in seconds. Value range: 0~4294967295 |
|
Parameter |
Type |
Description |
|---|---|---|
|
dx |
Integer |
Details: Coordinates of the pixel in the upper left corner of the subtitle box. The video resolution is 1920 x 1080 in landscape mode (16:9) and 1080 x 1920 in portrait mode (9:16). Value range: 0~1920 |
|
dy |
Integer |
Details: Coordinates of the pixel in the upper left corner of the subtitle box. The video resolution is 1920 x 1080 in landscape mode (16:9) and 1080 x 1920 in portrait mode (9:16). Value range: 0~1920 |
|
width |
Integer |
Details: Width (in pixel) of the layer image (relative to the image layout size). The image layout resolution is 1920 x 1080 in landscape mode (16:9) and 1080 x 1920 in portrait mode (9:16). Value range: 1~7680 |
|
height |
Integer |
Details: Height (in pixel) of the layer image (relative to the image layout size). The image layout resolution is 1920 x 1080 in landscape mode (16:9) and 1080 x 1920 in portrait mode (9:16). Value range: 1~7680 |
|
Parameter |
Type |
Description |
|---|---|---|
|
width |
Integer |
Video width. Unit: pixel. The value ranges from 320 to 2560.
NOTE:
Value range: 0~3840 |
|
height |
Integer |
Video height. Unit: pixel. The value ranges from 320 to 2560.
NOTE:
Value range: 0~3840 |
|
Parameter |
Type |
Description |
|---|---|---|
|
voice_asset_id |
String |
Speech synthesis feature string |
|
speed |
Integer |
Speaking speed. The value ranges from 50 to 200 and defaults to 100.
NOTE:
The value 100 indicates the normal speaking speed of an adult, which is about 250 words per minute.
Value range: 50~200 Default value: 100 |
|
pitch |
Integer |
Pitch. The value ranges from 50 to 200 and defaults to 100. Value range: 50~200 Default value: 100 |
|
volume |
Integer |
Volume. The value ranges from 90 to 240 and defaults to 140. Value range: 90~240 Default value: 140 |
|
provider |
String |
Third-party TTS vendor. Options:
|
|
language |
String |
Language type. Default value: CN
Default value: CN |
|
language_desc |
String |
Language description |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error description. |
Example Requests
POST https://{endpoint}/v1/70b76xxxxxx34253880af501cdxxxxxx/smart-chat-rooms/24bad716-87b1-45e5-8912-6102f7693265/smart-chat-jobs
null
Example Responses
Status code: 202
Succeeded.
{
"job_id" : "26f06524-4f75-4b3a-a853-b649a21aaf66"
}
Status code: 400
Parameters error, including the error code and its description.
{
"error_code" : "MSS.00000003",
"error_msg" : "Invalid parameter"
}
Status code: 401
Authentication is not performed or fails.
{
"error_code" : "MSS.00000001",
"error_msg" : "Unauthorized"
}
Status code: 500
Internal service error.
{
"error_code" : "MSS.00000004",
"error_msg" : "Internal Error"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
202 |
Succeeded. |
|
400 |
Parameters error, including the error code and its description. |
|
401 |
Authentication is not performed or fails. |
|
500 |
Internal service error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot