All Products
Search
Document Center

ApsaraVideo Live:UpdateCasterSceneAudio

Last Updated:Jun 10, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

live:UpdateCasterSceneAudio

update

*Caster

acs:live:*:{#accountId}:caster/{#CasterId}

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:

  • enableAgc: (Optional) Specifies whether to enable the automatic gain control (AGC) feature of the 3A algorithm. Valid values: 0 (disabled, default) and 1 (enabled).

  • enableAns: (Optional) Specifies whether to enable the intelligent noise reduction feature of the 3A algorithm. Valid values: 0 (disabled, default) and 1 (enabled).

  • ansMode: (Optional) The mode of the intelligent noise reduction feature. This field is active only when enableAns is set to 1. Valid values: 0 (speech noise reduction, default) and 1 (music noise reduction).

Catatan

For better noise reduction, set ansMode to 1.

  • enableBeautify: (Optional) Specifies whether to enable voice beautification. Valid values: 0 (disabled, default) and 1 (enabled).

  • voiceBeautifyMode: (Optional) The voice beautification mode. This field is active only when enableBeautify is set to 1. Valid values: 0 (magnetic male voice, default) and 1 (fresh female voice).

{ "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:

  • leftChannel: the left sound channel.

  • rightChannel: the right sound channel.

  • all (default): both sound channels.

all

VolumeRate

number

No

The volume multiplier for the audio stream. Valid values: 0 to 10.0. Default value: 1.0.

  • 1.0: The original volume is used.

  • A value less than 1 decreases the volume.

  • A value greater than 1 increases the volume.

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.

  • Jika Anda membuat studio produksi dengan memanggil operasi CreateCaster, Anda dapat memperoleh ID dari parameter CasterId di tanggapan.

  • Jika Anda membuat studio produksi di Konsol LIVE, buka halaman Konsol LIVE > Studio Produksi > Studio Produksi Cloud untuk Tampilan ID.

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:

  • 0: mode audio mixing.

  • 1: mode audio-follows-video.

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.