Hey there! When it comes to the average latency for a pipeline using STT, TTS, and OpenAI, it really depends on a few things like the specific models and how everything’s set up. But to give you a ballpark idea, here are some general latency ranges for each part:
•
STT Processing: 100-500ms
•
LLM Processing: 500-2000ms
•
TTS Processing: 100-500ms
Just a couple of things to keep in mind with OpenAI services:
• OpenAI's Whisper API doesn’t support streaming recognition yet, so that might affect real-time use cases.
• GPT-3.5 is often picked because it’s pretty speedy when generating responses.
If you want to get a clear picture of the actual latency in your pipeline, you can use LiveKit’s metrics collection tools. And hey, if you’d like, I’m here to help walk you through setting that up or figuring out how to optimize latency for what you’re working on—just let me know!
Sources:
Capturing metrics | LiveKit Docs |
Speech & Audio Processing | livekit/livekit_composite | DeepWiki |
README.md |
Live Conversations with AI using ChatGPT and WebRTC |
agent-examples/agent_examples/pipeline_agent.py