Voicecore
The voice agent pipeline
Speech-to-text → model → text-to-speech, streamed end to end.
What it is and why it exists
A cascaded voice agent transcribes speech (STT), sends text to the model, and synthesises the reply (TTS). Every stage must stream: partial transcripts, streamed model tokens, and TTS that starts speaking on the first sentence. Tool calls and retrieval must fit the same tight latency budget.
Quick prototype
Record, transcribe, call the model, synthesise, play.
In production, at scale
Streaming STT with endpointing, a fast model with a short prompt and cached prefix, TTS started on the first clause, filler speech or acknowledgements during tool calls, and barge-in handling.
Vendors and tools
| Deepgram / AssemblyAI / Whisper | Speech-to-text |
|---|---|
| ElevenLabs / Cartesia / provider TTS | Text-to-speech |
| LiveKit Agents / Pipecat / Vapi / Retell | Voice agent frameworks and platforms |
On AWS: Amazon Transcribe (streaming), Amazon Polly, Amazon Nova Sonic speech-to-speech, Amazon Connect for contact centres.
How it fails
- Each stage waiting for the previous to finish → 4 s of silence
- Tool calls with no spoken acknowledgement
What the interviewer asks next
Where does latency come from in a voice turn?
End-of-speech detection, final transcript, model TTFT, time to the first speakable phrase, TTS first audio and network. Stream every stage and overlap them.