Drop the cached audio
DELETE
/v1/a/adapters/tts/{engine}
const url = 'https://example.com/v1/a/adapters/tts/polly';const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"model":"example","voice":"example","language":"example","speed":"example","format":"mp3","text":"example","sample_rate":1,"advanced_settings":{},"fallback":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/v1/a/adapters/tts/polly \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "example", "voice": "example", "language": "example", "speed": "example", "format": "mp3", "text": "example", "sample_rate": 1, "advanced_settings": {}, "fallback": true }'Removes the cached audio for the request described in the JSON body.
Permission
This operation needs the permission tts:synthesize:manage.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”engine
required
string
TTS engine selector.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
JSON synthesis request body (POST/DELETE).
object
model
string
voice
string
language
string
speed
string
format
string
text
string
sample_rate
integer
advanced_settings
object
key
additional properties
any
fallback
Defaults to true when omitted.
boolean | null
Responses
Section titled “Responses”Cache entry removed.
Error response.
Media typeapplication/json
object
code
required
string
reason
required
string
message
required
string
Examplegenerated
{ "code": "example", "reason": "example", "message": "example"}Unauthorized
Forbidden
Error response.
Media typeapplication/json
object
code
required
string
reason
required
string
message
required
string
Examplegenerated
{ "code": "example", "reason": "example", "message": "example"}Bad gateway (upstream adapter error)