Sets 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 |
The unique identifier of a voiceprint. Generate this ID based on your business rules. Character length: 1-127. |
vp_1699123456_8527 |
| Input |
object |
No |
The input media. |
|
| Type |
string |
No |
The access type of the audio media. The system verifies file accessibility through HEAD/GET requests. Valid values:
Note
The OSS bucket must be in the same region as the service. Otherwise, access fails. |
url |
| Data |
string |
No |
The access URL. |
https://my-bucket.oss-cn-hangzhou.aliyuncs.com/audio/sample.wav |
| Format |
string |
No |
The audio file type. 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 voiceprint ID registered by the user. |
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.