taskId: Required parameter, can be obtained from the following endpoints:/api/v1/generate)/api/v1/generate/extend)audioId: Required parameter, specifies the audio ID to create Persona forname: Required parameter, assigns an easily recognizable name to the Personadescription: Required parameter, describes the Persona's musical characteristics, style, and personalityvocalStart: Optional parameter, specifies the start time (seconds) of the analysis segment. Default: 0.0vocalEnd: Optional parameter, specifies the end time (seconds) of the analysis segment. Default: 30.0. Must be greater than vocalStartstyle: Optional parameter, music style labelvocalStart and vocalEnd are used to specify the time range of the analysis segment. If not provided, default values (0.0-30.0 seconds) will be used. It is recommended to select a segment that best represents the musical characteristicspersonaId can be used in subsequent music generation requests to create music with similar style characteristicspersonaId to the following endpoints:{
"taskId": "5c79****be8e",
"audioId": "e231****-****-****-****-****8cadc7dc",
"name": "Electronic Pop Singer",
"description": "A modern electronic music style pop singer, skilled in dynamic rhythms and synthesizer tones",
"vocalStart": 0.0,
"vocalEnd": 30.0,
"style": "Electronic Pop"
}curl --location 'https://apibox.erweima.ai/api/v1/generate/generate-persona' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"taskId": "5c79****be8e",
"audioId": "e231****-****-****-****-****8cadc7dc",
"name": "Electronic Pop Singer",
"description": "A modern electronic music style pop singer, skilled in dynamic rhythms and synthesizer tones",
"vocalStart": 0,
"vocalEnd": 30,
"style": "Electronic Pop"
}'{
"code": 200,
"msg": "success",
"data": {
"personaId": "a1b2****c3d4",
"name": "Electronic Pop Singer",
"description": "A modern electronic music style pop singer, skilled in dynamic rhythms and synthesizer tones"
}
}