API REFERENCE
Delete a Voice
Delete user-defined voice style
AuthorizationBearer <token>required
Set the header 'Authorization: Bearer {your API key}' for authentication
In: header
uristringrequired
Voice style to be deleted by the user
Example
"speech:your-voice-name:xxx:xxxx"Response Body
Successful response
TypeScript Definitions
Use the response body type in TypeScript.
responsestring
curl --request POST \
--url https://api.siliconflow.cn/v1/audio/voice/deletions \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"uri": "speech:your-voice-name:xxx:xxxx"
}'
import requests
url = "https://api.siliconflow.cn/v1/audio/voice/deletions"
payload = {"uri": "speech:your-voice-name:xxx:xxxx"}
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
"string"{
"code": 20012,
"message": "string",
"data": "string"
}"Invalid token""Forbidden""404 page not found"{
"message": "Request was rejected due to rate limiting. If you want more, please contact contact@siliconflow.cn. Details:TPM limit reached.",
"data": "string"
}{
"code": 50505,
"message": "Model service overloaded. Please try again later.",
"data": "string"
}"string"