Tme โ
Endpoint: POST https://vod.intl.tencentcloudapi.comAction: CreateAigcAudioTask
Tme is a music generation capability that creates music from a prompt and reference audio. Pass the reference audio in AudioInfos and specify the resource granted to your account with AdditionalParameters.ResourceId.
Basic Information โ
| Item | Value |
|---|---|
| ModelName | Tme |
| SceneType | music |
Supply a reference track and use AdditionalParameters.ResourceId to specify a resource granted to the account.
Request Parameters โ
| Parameter | Required | Type | Description |
|---|---|---|---|
ModelName | Required | String | Fixed value Tme |
SceneType | Required | String | music |
Prompt | Optional | String | Description of the generation direction |
AudioInfos.N | Optional | Array | Reference track. Type + Url structure |
AdditionalParameters | Optional | String | A ResourceId-carrying (a resource granted to the account) JSON string |
AudioInfos is entered in [{ "Type": "Url", "Url": "..." }] format, using a publicly accessible audio URL.
Request Example โ
{
"SubAppId": 123456789,
"ModelName": "Tme",
"SceneType": "music",
"AudioInfos": [
{
"Type": "Url",
"Url": "https://<cos>/reference.wav"
}
],
"AdditionalParameters": "{\"ResourceId\": \"<resource-id>\"}"
}The MPS path uses different reference fields
The MPS path, in AudioInfos.N, uses the AudioUrl field, and the resource is specified in ExtraParameters.ResourceId. The VOD path uses the Type + Url structure and AdditionalParameters.ResourceId. If your code uses both paths, branch the field names.
Response Example โ
{
"AigcAudioTask": {
"Status": "FINISH",
"ErrCode": 0,
"Output": {
"AudioInfos": [
{
"FileUrl": "http://<host>.vod2.myqcloud.com/.../aigcAudioGenFile.mp3"
}
]
}
}
}Model-Specific Audio Options โ
| Model | Field | Description |
|---|---|---|
Tme | ResourceId | Cover track resource ID granted to the account |