Registers a voiceprint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SetAIAgentVoiceprint |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VoiceprintId |
string |
No |
A unique identifier for the voiceprint. Generate this ID based on your own business rules. Requirement: 1 to 127 characters in length. |
vp_1699123456_8527 |
| Input |
object |
No |
The input file. |
|
| Type |
string |
No |
Specifies the access type for the audio file. The system will verify file accessibility via HEAD or GET requests. Valid values:
Note
The OSS bucket must be in the same region as the service. Otherwise, the access fails. |
url |
| Data |
string |
No |
The media access link. |
https://my-bucket.oss-cn-hangzhou.aliyuncs.com/audio/sample.wav |
| Format |
string |
No |
The audio file format. Only WAV is supported. |
wav |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
550e8400********55440000 |
| VoiceprintId |
string |
The ID of the registered voiceprint. |
vp_1699123456_8527 |
Examples
Success response
JSON format
{
"RequestId": "550e8400********55440000",
"VoiceprintId": "vp_1699123456_8527"
}
Error codes
|
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.