Skip to main content
The Pipeline is self-configuring: based on the components you hand it, it automatically runs in Cascade, Hybrid, or Realtime mode. Switch between the tabs below to compare each mode’s architecture, when to reach for it, and the code that selects it.

Supported Modes

There are three modes supported by the Pipeline.
1. Cascade (STT-LLM-TTS)
2. Realtime (LLM)
3. Hybrid (Cascade + Realtime)
Cascade mode runs the pipeline as separate stages: VAD → STT → Turn Detector → LLM → TTS. The Pipeline auto-detects it when you pass all these components, giving you full control over each stage.ArchitectureAudio flows: VAD detects speech, STT transcribes, the turn detector signals end of turn, the LLM generates a reply, and TTS synthesizes audio.Cascade pipelineWhen to use it
  • You need granular control over each stage (STT, LLM, TTS, VAD, turn detection).
  • You want to mix and match providers for individual stages.
  • You rely on custom hooks for turn-taking, RAG, or content filtering.
  • You can trade higher latency for maximum flexibility.
Example

Other Pipeline Combinations

The Pipeline is not limited to the named modes. It accepts any subset of components and configures itself accordingly.

What’s Next

Runtime Hooks

Tap into the pipeline at runtime to inspect or transform each stage.

Observability Hooks

Observe metrics and traces at each pipeline stage.

Fallback Adapter

Add automatic provider failover for any mode.

References

Examples

Cascade Mode

Run STT, LLM and TTS as a cascade.

Realtime Mode

Run a speech-to-speech realtime model.

SDK Reference

Pipeline

Pipeline in the Python API reference.