Mendaftarkan voiceprint.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SetAIAgentVoiceprint |
none |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VoiceprintId |
string |
No |
Identifikasi unik untuk voiceprint. Hasilkan ID ini berdasarkan aturan bisnis Anda sendiri. Persyaratan: panjang 1 hingga 127 karakter. |
vp_1699123456_8527 |
| Input |
object |
No |
File input. |
|
| Type |
string |
No |
Menentukan jenis akses untuk file audio. Sistem akan memverifikasi ketersediaan file melalui permintaan HEAD atau GET. Nilai yang valid:
Catatan
Bucket OSS harus berada di wilayah yang sama dengan layanan. Jika tidak, akses akan gagal. |
url |
| Data |
string |
No |
Tautan akses media. |
https://my-bucket.oss-cn-hangzhou.aliyuncs.com/audio/sample.wav |
| Format |
string |
No |
Format file audio. Hanya WAV yang didukung. |
wav |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
550e8400********55440000 |
| VoiceprintId |
string |
ID voiceprint yang terdaftar. |
vp_1699123456_8527 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "550e8400********55440000",
"VoiceprintId": "vp_1699123456_8527"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.