cURL
curl --request POST \ --url https://api.avaturn.live/api/v1/sessions/{id}/tasks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>" } '
{ "task_id": "<string>" }
Adds the text to the avatar speech queue. If the avatar is already speaking, the text fragment is queued to be spoken at a later time. Nothing is said until you connect or while you’re disconnected.
avaturn.live API key
Session ID
Text to say
Successful Response
Speech task ID