UpdateLiveAISubtitle
Updates a subtitle template by calling UpdateLiveAISubtitle.
Operation description
Operation description
This operation updates the parameters of a specified subtitle template.
QPS limit
The single-user QPS limit for this operation is 60 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately. For more information, see QPS limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateLiveAISubtitle |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| SubtitleName |
string |
No |
The name of the subtitle template. The name can contain only digits, letters, and hyphens (-). The name cannot start with a hyphen. |
live AI subtitle template |
| SrcLanguage |
string |
No |
The source language. Valid values:
|
zh-CN |
| DstLanguage |
string |
No |
The target language for translation. Valid values:
|
zh-CN |
| FontColor |
string |
No |
The font color. The value is in RGBA format. |
0xFFFFFF |
| FontName |
string |
No |
The font. Valid values:
|
KaiTi |
| BgColor |
string |
No |
The background color of the subtitle. The value is in RGBA format. |
0xFF0000 |
| PositionNormalized |
array |
No |
The position of the subtitle, specified as x and y coordinates with the bottom-left corner of the screen as the origin. |
[0.32,0.27] |
|
number |
No |
The coordinate value of the subtitle position. |
0.32 |
|
| ShowSourceLan |
boolean |
No |
Specifies whether to display the source language. Default value: false. |
true |
| MaxLines |
integer |
No |
The number of lines to display. |
2 |
| WordPerLine |
integer |
No |
The number of characters per line. Valid values: integers in the range of [1, 500]. |
20 |
| FontSizeNormalized |
number |
No |
The font size. Valid values: [0, 1]. |
0.037 |
| BorderWidthNormalized |
number |
No |
The font weight. Valid values: [0, 1]. |
0.05 |
| BgWidthNormalized |
number |
No |
The background size of the subtitle. Valid values: [0, 1]. |
0.09 |
| SubtitleId |
string |
Yes |
The ID of the subtitle template. |
597991f3-6ef9-4100-9238-82951de1**** |
| Description |
string |
No |
The custom description of the subtitle. The description can contain Chinese characters, letters, digits, and special characters, and cannot exceed 128 characters in length. |
live AI subtitle template |
| Width |
string |
No |
The width of the preview screen. Unit: px. |
1280 |
| Height |
string |
No |
The height of the preview screen. Unit: px. The width × height of the preview screen supports only the following specifications:
|
720 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
String 5c6a2a0df228-4a64- af62-20e91b96**** |
Examples
Success response
JSON format
{
"RequestId": "String\t5c6a2a0df228-4a64- af62-20e91b96****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | %s. | Missing parameter |
| 400 | InvalidParameter | %s. | Parameter error |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | There are invalid parameters: %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.