All Products
Search
Document Center

Intelligent Media Services:SetAIAgentVoiceprint

更新时间:Jan 14, 2026

Registers a voiceprint.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:SetAIAgentVoiceprintnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VoiceprintIdstringNo

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
InputobjectNo

The input file.

TypestringNo

Specifies the access type for the audio file. The system will verify file accessibility via HEAD or GET requests. Valid values:

  • url: An HTTP(S) link to the audio file.

  • oss: An OSS object. Supports the following formats:

    1. OSS URI: oss://bucket-name/object-key

      Example: oss://my-bucket/audio/sample.wav

    2. OSS public URL: http(s)://${bucket}.oss-${region}.aliyuncs.com/${object}

      Example: https://my-bucket.oss-cn-hangzhou.aliyuncs.com/audio/sample.wav

Note The OSS bucket must be in the same region as the service. Otherwise, the access fails.
url
DatastringNo

The media access link.

https://my-bucket.oss-cn-hangzhou.aliyuncs.com/audio/sample.wav
FormatstringNo

The audio file format. Only WAV is supported.

wav

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

550e8400********55440000
VoiceprintIdstring

The ID of the registered voiceprint.

vp_1699123456_8527

Examples

Sample success responses

JSONformat

{
  "RequestId": "550e8400********55440000",
  "VoiceprintId": "vp_1699123456_8527"
}

Error codes

HTTP status codeError codeError message
400IdempotentParameterMismatchThe 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.

For a list of error codes, visit the Service error codes.