Check Voice availability
curl --request GET \
--url https://apistable.com/api/v1/voices/{voice_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apistable.com/api/v1/voices/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.com/api/v1/voices/{voice_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": 200,
"msg": "<string>",
"data": {
"voice_id": "<string>",
"available": true,
"reason": "<string>"
}
}接口参考
检查 Voice 可用性
检查本账户的音色资源。
GET
/
api
/
v1
/
voices
/
{voice_id}
Check Voice availability
curl --request GET \
--url https://apistable.com/api/v1/voices/{voice_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apistable.com/api/v1/voices/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.com/api/v1/voices/{voice_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": 200,
"msg": "<string>",
"data": {
"voice_id": "<string>",
"available": true,
"reason": "<string>"
}
}能力按服务端配置逐项启用。未启用操作返回 503 且不创建任务;音乐积分扣除当前未启用。
输出
{
"code": 200,
"msg": "success",
"data": {
"voice_id": "APIstable voice ID",
"available": true,
"reason": null
}
}