Speaks a sample of a voice.
Speaks a short, fixed sentence in the call language with the voice and speed asked for, through the same model a call uses, and stores the audio as the agent's file. A Fruxon-voice sample is served again for a while instead of spoken anew (`cached`). A voice or speed the agent's setting could not take is refused with the same message (400 `voice_option_unsupported`). With `source=integration` and `integrationConfigId`, the sample is spoken by the workspace's own ElevenLabs account, through the model and API a call streams through, and is never cached: the account pays for each one. ElevenLabs voices take no speed.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The agent the voice is for.
The tenant identifier
The voice, the language and the speed.
fruxon, or integration for a voice from the workspace's own ElevenLabs account.
With integration: the workspace's elevenlabs config to speak through. Its account pays for the
sample.
uuidhe or en.
0.75–1.5 in steps of 0.05; null is the voice's own pace. Fruxon voice only.
doubleResponse Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/voiceSamples" \ -H "Content-Type: application/json" \ -d '{}'{
"audio": {
"fileId": "string",
"fileType": "string",
"displayName": "string",
"promptLink": "<string:string/>"
},
"model": "string",
"cached": false
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}