Mengubah konfigurasi audio sebuah adegan. Operasi ini juga memungkinkan Anda menambahkan konfigurasi audio atau menerapkan konfigurasi audio yang ada ke adegan baru.
Deskripsi operasi
First, call the CreateCaster operation to create a production studio. Then, you can call this operation to update the audio configuration of a scene. This operation supports the audio mixing mode and the audio-follows-video (AFV) mode.
QPS limits
You can make up to 10 queries per second (QPS) per Alibaba Cloud account. API calls that exceed this limit are throttled, which may affect your business. We recommend that you adhere to this limit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateCasterSceneAudio |
update |
*Caster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID Wilayah. |
cn-shanghai |
| AudioLayer |
array<object> |
No |
Konfigurasi audio. |
|
|
object |
No |
The audio configuration. |
||
| Filter |
string |
No |
Specifies whether to enable the features provided by the 3A audio algorithm. This parameter consists of the following fields:
Catatan
For better noise reduction, set ansMode to 1.
|
{ "enableAgc":0, "enableAns":1 } |
| FixedDelayDuration |
integer |
No |
The fixed latency of the audio layer. This parameter is used to synchronize the audio with captions. Unit: milliseconds. Valid values: 0 to 5000. Default value: 0. |
0 |
| ValidChannel |
string |
No |
The sound channels that are used for volume input. Valid values:
|
all |
| VolumeRate |
number |
No |
The volume multiplier for the audio stream. Valid values: 0 to 10.0. Default value: 1.0.
|
1 |
| MixList |
array |
No |
Daftar ID lokasi yang terkait. Pesanan ID lokasi harus sama dengan Pesanan lapisan audio. |
RV01 |
|
string |
No |
The location ID of the resource. The order of location IDs must be consistent with the order of the audio layers. If a channel is enabled, use the location ID of the channel. Otherwise, use the location ID of the video source. |
RV01 |
|
| CasterId |
string |
Yes |
ID studio produksi.
Catatan
Nama studio produksi pada daftar di halaman Studio Produksi Cloud adalah ID studio produksi. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| SceneId |
string |
Yes |
ID adegan. Jika Anda mengkueri daftar adegan dalam studio produksi dengan memanggil operasi DescribeCasterScenes, Anda dapat memperoleh ID dari parameter ComponentId di tanggapan. |
a2b8e671-2fe5-4642-a2ec-bf93880e1**** |
| FollowEnable |
integer |
No |
Apakah akan mengaktifkan mode AFV. Jika Anda mengosongkan parameter ini, konfigurasi terakhir akan dipertahankan. Nilai valid:
|
1 |
Pada parameter permintaan, N menunjukkan nomor urut. Contoh:
-
AudioLayer.N.VolumeRate menentukan pengali volume untuk elemen ke-N.
-
AudioLayer.1.VolumeRate menentukan pengali volume untuk elemen pertama.
-
AudioLayer.2.VolumeRate menentukan pengali volume untuk elemen kedua.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | |
| 400 | InvalidUserId.Malformed | %s, please check userId. | |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | |
| 400 | InvalidAudioLayersAndMixListSize.Mismatch | %s, please check and try again later. | |
| 400 | IncorrectSceneStatus | %s, please check and try again later. | |
| 400 | IncorrectSceneStatus.ConfigError | %s, please check and try again later. | |
| 400 | InvalidMixList.ExceedNorm | %s, please check and try again later. | |
| 401 | IllegalOperation | %s, please check and try again later. | |
| 412 | ResourceInChannel.PreConditionFailed | %s, please try again later. | |
| 412 | ResourceInChannel.Invalid | %s, please check and try again later. | |
| 500 | InternalError | %s, please try again later. | |
| 404 | InvalidCaster.NotFound | %s, please check and try again later. | |
| 404 | InvalidScene.NotFound | %s, please check and try again later. | |
| 404 | ResourceInChannel.NotFound | %s, please check and try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.