Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.avaturn.live/llms.txt

Use this file to discover all available pages before exploring further.

Legacy. This pattern wraps an LLM around the text-echo flow. New integrations should use OpenAI Realtime or Cartesia — both handle LLM, TTS, and interruption end-to-end.
To stream LLM responses into a text-echo avatar:
  1. Use your LLM’s streaming endpoint.
  2. Split the stream into sentences as it arrives.
  3. Send each sentence to the Avaturn POST /api/v1/sessions/{id}/tasks endpoint (or call avatar.task() from the frontend).
For per-sentence chunking heuristics, see ElevenLabs’ streaming TTS WebSocket guide — the sentence-split pattern applies here too.