Go back to the default voice and speech rate
curl --request DELETE \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"voice": "openai-tts/nova",
"active": true,
"default": {
"ref": "openai-tts/alloy",
"name": "Alloy",
"source": "org_language"
},
"voices": [
{
"ref": "openai-tts/alloy",
"model_id": "openai-tts",
"id": "alloy",
"name": "Alloy",
"languages": [
"fr-FR"
]
},
{
"ref": "openai-tts/nova",
"model_id": "openai-tts",
"id": "nova",
"name": "Nova",
"languages": [
"fr-FR"
]
}
]
}Voice
Go back to the default voice and speech rate
DELETE
/
v1
/
voice
/
preference
Go back to the default voice and speech rate
curl --request DELETE \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"voice": "openai-tts/nova",
"active": true,
"default": {
"ref": "openai-tts/alloy",
"name": "Alloy",
"source": "org_language"
},
"voices": [
{
"ref": "openai-tts/alloy",
"model_id": "openai-tts",
"id": "alloy",
"name": "Alloy",
"languages": [
"fr-FR"
]
},
{
"ref": "openai-tts/nova",
"model_id": "openai-tts",
"id": "nova",
"name": "Nova",
"languages": [
"fr-FR"
]
}
]
}Authorizations
BearerAuthOrgApiKeyAuth
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Query Parameters
Response
200 - application/json
Reset; the same answer as GET, voice and rate null.
The voice a session reads without the member's choice. A session also skips a catalog voice whose provider is not configured, which this answer does not check.
The voices the organization offers in language, as GET /v1/voice/availability?voices=true lists them.
Was this page helpful?