Get or regenerate a verification phrase
curl --request POST \
--url https://apistable.ai/api/v1/voices/verification_phrase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"voice_upload_task_id": "<string>",
"language": "en"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({voice_upload_task_id: '<string>', language: 'en'})
};
fetch('https://apistable.ai/api/v1/voices/verification_phrase', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/voices/verification_phrase"
payload = {
"voice_upload_task_id": "<string>",
"language": "en"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "<string>",
"data": {
"phrase_id": "<string>",
"phrase_text": "<string>",
"language": "<string>",
"expires_at": null
}
}Suno
取得验证短句
选择语言或重新取得验证短句。
POST
/
api
/
v1
/
voices
/
verification_phrase
Get or regenerate a verification phrase
curl --request POST \
--url https://apistable.ai/api/v1/voices/verification_phrase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"voice_upload_task_id": "<string>",
"language": "en"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({voice_upload_task_id: '<string>', language: 'en'})
};
fetch('https://apistable.ai/api/v1/voices/verification_phrase', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/voices/verification_phrase"
payload = {
"voice_upload_task_id": "<string>",
"language": "en"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "<string>",
"data": {
"phrase_id": "<string>",
"phrase_text": "<string>",
"language": "<string>",
"expires_at": null
}
}能力按服务端配置逐项启用。未启用操作返回 503 且不创建任务;音乐积分扣除当前未启用。
输入
先完成suno_voice_upload并等待ready:true,传其voice_upload_task_id。语言支持en、zh、es、fr、pt、de、ja、ko、hi、ru,默认en。此接口同步返回验证短句,不创建生成任务。{
"voice_upload_task_id": "APIstable upload task ID",
"language": "en"
}
输出
expires_at:null不代表永久有效。短句绑定的样本会话自成功准备后24小时到期,供应商也可能更早让短句失效;会话到期后须重新上传样本。HTTP 404/409/410分别表示资源不存在、供应商账户不匹配或资源过期;供应商故障返回503,异常结构返回502。{
"code": 200,
"msg": "success",
"data": {
"phrase_id": "APIstable phrase ID",
"phrase_text": "Read the returned phrase in your own voice.",
"language": "en",
"expires_at": null
}
}
授权
Every valid key can submit and query its own account. Revoked keys are rejected.
请求体
application/json