AgentsAgentidSessionsSessionidAudioSynthesize

Queue TTS-synthesis of the session using the caller-picked TTS/voice for the user role (agent replies are voiced with agent's own TTS). Runs as a Hangfire job; completion is broadcast via SignalR AgentSessionUpdated.

POST
/Agents/{agentId}/sessions/{sessionId}/audio/synthesize
AuthorizationBearer <token>

JWT Authorization header using Bearer scheme

In: header

Path Parameters

agentId*string
Formatuuid
sessionId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.speaknode.com/api/Agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/audio/synthesize" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true,
  "job_id": "string",
  "error": "string"
}