PipelineSpeech-to-Speech
- Phone Call
- PlivoWebSocket
- Your ServerRelayWebSocket
- Speech-to-Speech ModelRealtime API
Why Speech-to-Speech
- Lowest latency: one model turn instead of three chained stages
- Natural conversations: tone, emotion, and context survive because audio is never flattened to text
- Simple architecture: turn handling and interruption live inside the model, so your server stays small
Trade-Offs
- Observability: there is no text between stages to inspect. You depend on the transcripts the model chooses to emit, which makes debugging, evaluation, and monitoring harder than with a pipeline that produces text at every hop.
- Steerability: instruction adherence in audio-native models is generally less mature than in text LLMs. A pipeline lets you use a proven text model whose prompting behavior you already understand.
- Tool calling: function calling from a speech-to-speech model can be less consistent than from a text LLM, which matters if your agent depends on reliable structured actions.
- Component choice: you adopt the model as a whole. You cannot swap in a different LLM or a specific voice vendor, and pricing is bundled rather than per stage.
Other Ways to Build
- Voice Agent Pipelines: provider-hosted STT, LLM, and TTS stages behind one realtime endpoint, when you want control over each stage
- Pipecat: an open-source framework that manages the Plivo transport and composes services, including speech-to-speech models, in code