Modifies the audio configurations of a scene.
Operation description
Usage notes
You can call the CreateCaster operation to create a production studio and then call this operation to modify the audio configurations of a scene in the production studio. This operation supports the audio mixing mode and the audio follows video (AFV) mode.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
live:UpdateCasterSceneAudio | update | *Caster acs:live:*:{#accountId}:caster/{#CasterId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AudioLayer | array<object> | No | The audio configurations. | |
object | No | |||
Filter | string | No | Specifies whether to enable the features provided by the audio 3A algorithms. This parameter consists of the following fields:
Note
To ensure a better noise reduction effect, we recommend that you set ansMode to 1.
| { "enableAgc":0, "enableAns":1 } |
FixedDelayDuration | integer | No | The fixed delay of the audio layer N. This parameter is used to synchronize the audio with subtitles. Unit: milliseconds. Valid values: 0 to 5000. Default value: 0. | 0 |
ValidChannel | string | No | The sound channels that are used for volume input in the audio layer N. Valid values:
| all |
VolumeRate | float | No | The multiple of the original volume at which the audio layer N plays audio. Valid values: 0 to 10.0. Default value: 1.0.
| 1 |
MixList | array | No | The location IDs of the audio layers, which are in the same order as the audio layers. | |
string | No | The location ID of the audio layer N in the production studio. Make sure that the value is consistent with the specified order of the audio layer. If channels are enabled, set this parameter to the location ID of the channel. If channels are disabled, set this parameter to the location ID of the input source. | RV01 | |
CasterId | string | Yes | The ID of the production studio.
Note
You can find the ID of the production studio in the Instance Name column.
| LIVEPRODUCER_POST-cn-0pp1czt**** |
SceneId | string | Yes | The ID of the scene. If you call the DescribeCasterScenes operation to query scenes of the production studio, check the value of the ComponentId parameter to obtain the ID. | a2b8e671-2fe5-4642-a2ec-bf93880e1**** |
FollowEnable | integer | No | The audio mode. By default, the AFV mode is used. If you do not specify this parameter, the scene retains the last configuration. Valid values:
| 1 |
N in the preceding request parameters indicates the sequence number. Examples:
- The AudioLayer.N.VolumeRate parameter specifies the multiple of the original volume at which the audio layer N plays audio.
- The AudioLayer.1.VolumeRate parameter specifies the multiple of the original volume at which the first audio layer plays audio.
- The AudioLayer.2.VolumeRate parameter specifies the multiple of the original volume at which the second audio layer plays audio.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidCasterId.Malformed | %s |
400 | InvalidUserId.Malformed | %s |
400 | InvalidParameter.Malformed | %s |
400 | InvalidAudioLayersAndMixListSize.Mismatch | %s |
400 | IncorrectSceneStatus | %s |
400 | IncorrectSceneStatus.ConfigError | %s |
400 | InvalidMixList.ExceedNorm | %s |
401 | IllegalOperation | %s |
404 | InvalidCaster.NotFound | %s |
404 | InvalidScene.NotFound | %s |
404 | ResourceInChannel.NotFound | %s |
412 | ResourceInChannel.PreConditionFailed | %s |
412 | ResourceInChannel.Invalid | %s |
500 | InternalError | %s |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-03-06 | The Error code has changed | View Change Details |