able-jackal-84140
07/13/2025, 4:45 PMtall-airline-16756
07/13/2025, 4:45 PMtall-airline-16756
07/13/2025, 4:46 PMSynthesizeStream
class enables this by letting you push text chunks and immediately receive corresponding audio frames as they are synthesized, rather than batching all text first. For TTS providers that do not natively support streaming, LiveKit can also use a StreamAdapter
to break text into sentences and convert them into audio incrementally, simulating a streaming experience.
This streaming approach is used extensively in agent pipelines and real-time conversational AI, ensuring low-latency audio playback as text is generated.
Sources: 2d2365ca-8c5f-4f37-910b-28649bb0738d, ec3eed99-8a8c-43e5-8e45-f2058270ce02, fc1fb25e-5944-40df-9860-c42008df9f79
Sources: Live Conversations with AI using ChatGPT and WebRTC | TTS | LiveKit Agents | agents/src/pipeline/agent_output.ts | StreamAdapter | LiveKit Agentsable-jackal-84140
07/13/2025, 4:50 PMtall-airline-16756
07/13/2025, 4:51 PM