Turn Detection
Pipecat Smart Turn in VoxEngine for end-of-turn prediction
Benefits
Turn detection answers a different question than VAD. VAD tells you when speech is present. Turn detection tells you whether the caller is probably finished.
Capability highlights:
- Powered by Voximplant’s native Pipecat module.
- Exposes a simple end-of-turn signal directly in VoxEngine.
- Designed to sit after VAD and before LLM submission in full-cascade flows.
- Gives you an explicit
endOfTurnboolean and a confidence score so you can combine model output with local policy across OpenAI and OpenAI-compatible cascade pipelines.
Architecture
Pipecat Smart Turn in VoxEngine
For developers already familiar with Pipecat Smart Turn, Voximplant currently exposes a narrower surface area:
Pipecat.createTurnDetector({ threshold })turnDetector.predict()Pipecat.TurnEvents.ResultwithendOfTurnandprobability- reset, error, and connector-information events
That means the detector is easy to wire into VoxEngine today, but most production flows still combine it with VAD, STT, and some local policy for grace periods or fallback timing.
What Voximplant exposes
The module surface is intentionally small:
Pipecat.createTurnDetector(parameters)turnDetector.predict()turnDetector.reset()turnDetector.close()turnDetector.id()andturnDetector.webSocketId()for diagnostics
Turn detector parameters
These are the parameters Voximplant currently exposes on Pipecat.createTurnDetector().
Turn detector events
Development notes
- Turn detection is not VAD. VAD answers “is the caller speaking right now?” Pipecat Smart Turn answers “is the caller probably done?”
predict()is explicit. In Voximplant’s current API, you choose when to ask for a prediction. A common pattern is to call it afterspeechEndAt.thresholdis a policy dial. Lower values react sooner but increase false end-of-turns. Higher values reduce premature submits but can make the system feel slower.- Use
probabilityfor app-level policy. Even though the module only exposes one detector parameter today, the returned score is useful for deciding whether to wait for more STT or extend a timeout for short fragments. - Pipecat users should expect a slimmer API. Voximplant does not currently expose the full native Pipecat Smart Turn configuration surface, so local helper logic is still useful in production pipelines.
- Turn detection becomes more important as you mix providers. In a full-cascade flow, the LLM may be OpenAI, Groq, or another OpenAI-compatible backend, but the turn boundary still needs to be decided locally and quickly.