

25 Aug 2026 · 37m · 19 chapters

State of the art for voice AI/voice agents in 2026, focusing on “forward deployed engineering” lessons: why most systems use cascaded pipelines (STT → LLM → TTS) instead of end-to-end speech-to-speech, and how to manage reliability, latency, turn-taking, guardrails, multilingual needs, and evals.
Basil (host; product/consulting background: Intuit/credit karma PM; venture studio; founded Exaflop Labs building agents for retailers/insurance/private equity). Bruin (runs PipeCat; builds voice agent architectures like cascade + speech-to-speech). Other panelists from Decagon, Vapi, Retail Daily, and Smallest AI (Smallest AI builds speech-to-speech models; Vapi provides voice agent infrastructure; Decagon and Retail Daily contribute deployment experience).
Voice-to-voice is improving but cascades give tighter guardrails and reliability (waterfall/fallback models). Turn-taking is non-trivial. Outbound bots get hung up when users detect they’re a bot. Reliability and latency trade off; fillers can improve perceived naturalness. Prompt size/LLM “reasoning” limits require testing and sometimes prompt/graph strategies.
PipeCat/Vapi voice agent for the World’s Fair answering conference questions and producing a benchmark. Daily as a sponsor; voice mostly used for customer support/call centers. Japan deployment where English/US TTS worked poorly, so customers swapped in custom TTS servers. Sesame reportedly shifted toward hardware (CEO “play around” rationale).
Written by AI. May contain mistakes.
Discussion about Basil's experience and focus on Forward Deployed Engineering.
“I'm going to make trade-offs and I'm going to help them build that.”
Overview of the first episode and major topics discussed in the podcast.
“Can you give like rattle off just your greatest hits, like what you've covered?”
Discussion on the current developments in building voice agents and challenges faced.
“Basically, we just talked about like, what is the state of the art in building voice agents?”
In-depth look at the architecture and technicalities involved in voice agent development.
“So we even talked about that a little bit.”
Exploration of reliability issues faced by voice agents and their implications.
“Actually, I never looked at the analytics.”
Comparison of the different requirements and challenges for inbound and outbound voice agents.
“And the people that really feel it are not the researchers, because researchers just always want bigger models to solve everything.”
Discussion on the basic architecture of a simple voice agent and its components.
“does a simple voice agent architecture look like?”
Insights into how voice AI handles outbound calls and its effectiveness.
“and a smart turn model to figure out that the turn is complete.”
Examination of the complexities involved in managing inbound voice interactions.
“For that, the bot has really, if you go off the rails, like the human goes and starts saying random stuff, it can just drop the call.”
Discussion on the pros and cons of cascaded models versus speech-to-speech models in voice AI.
“that always remember the first 4 % and the last 4 % and everything in between.”
Explore the evolution of speech-to-speech models and their natural operation.
“Yeah, no, I think you have brought a question around like cascaded versus speech to speech.”
Discuss the complexities of hybrid systems in speech processing.
“And I think the answer for the midterm will be some form of hybrid.”
Understand the challenges of multilingual support in AI models.
“Like, we don't want to do any other, we don't want to introduce any other variables because the technology in itself is, I would say, quite frontier.”
Learn about effective strategies for managing cascaded pipelines in AI.
“So is it standard practice in this cascaded pipeline for you to just have one giant system prompt that you're giving the LLM on these are all the rules for how you should be responding?”
Learn about the importance of testing and adaptability in voice AI systems.
“And so now we're going back, I think, swinging a little bit back towards just give the model everything and more or less it will figure it out.”
Explore the impact of latency on user experience and voice agent performance.
“It is normal in normal conversation for humans to say a few words while they're thinking.”
Discover methods to streamline workflows in voice AI applications for efficiency.
“And so that's been a place where we've invested a lot of time as well to say, how do we create an execution engine where we really don't need fillers, but in those moments where we do, they're really good.”
Understand the significance of benchmarks in evaluating voice AI models.
“Now that you're putting such a big, large prompt into your LLM, you have to think about those calls where many people just hang up and predominantly calls just hang up 10 seconds into the call, right?”
Learn about the advantages of using customized language models in voice applications.
“and see how that goes for your own flows.”

Get the gist, explore an idea or ask about something said.
On Latent Space: The AI Engineer Podcast, what are the key points of this episode?
Automatic transcript. May contain errors.
0:00All right, we're in the remote studio. This is a special one because we're launching a fourth podcast on Dayton Space. People don't necessarily keep track, but we cover different things. Basil came across my radar because you're doing all these like dinners and gatherings and panels and podcasts on Forward Deployed Engineering. You hosted the FDE track at AIE and it did super well. So welcome to the pod. Yeah, thanks. So you've been running your podcast for a while. What made you decide to focus on FDE and, you know, what's your typical self-intro? yeah so i started as a product manager at intuway i was specifically working on credit karma for a couple years i worked at a small venture studio after that and then i ended up starting a consulting business called exaflop labs where we were working with like retailers insurance companies that sort of thing just building agents essentially this was like two years ago so it just felt like a natural extension of a lot of the product work that i was doing earlier it was like hey i'm working with customers they have a specific type of project that they want built for some use case and I'm going to understand what they want.
1:02I'm going to make trade-offs and I'm going to help them build that. So yeah, it just felt like a natural extension of what I was doing. And so back in January, we started working with a couple of private equity firms and a lot of people were just like, hey, I'm following on what's going on on Twitter, what's going on on LinkedIn. I don't know what's marketing BS and what's not. So I was like, why not just bring on people who are working on the cool stuff at cool companies? We will talk about what they're working on. We'll do a deep dive and we'll record it. We'll post it. And hopefully people can take learnings away that they can apply to their businesses.
1:31And that's why I ended up starting doing a lot of the fireside panels and podcasts that I've been doing since then. Can you give like rattle off just your greatest hits, like what you've covered? Yeah, so our very first episode was on the future of agentic engineering. So we brought on companies like Factory, Cognition, Composio, Soundgrep. We've done panels on voice agents, which is actually the one that we're going to be showing here. We've done some on computer use agents. We've done agents in the enterprise. We've done a ton of stuff just to get nitty gritty into the details of a lot of this stuff.
2:04Yeah. And I guess, you know, you pick the first feature, you pick the voice agents one. What are we about to listen to and what stood out in particular? Yeah. So we brought on some people from Decagon, Vappy, Retail, Daily, and a company called Smallest AI. Basically, we just talked about like, what is the state of the art in building voice agents? Because that's a very hot use case. I think Sierra even talked about this. is this is like one of the most competitive markets in AI right now is like building voice agents. And so I thought it would be useful to talk about how they're actually built and some of the things that, you know, engineers who are building in this space still have to contend with.
2:40So for example, we talk about how like the state of the art right now in building voice agents is a cascaded pipeline. So we talk about how it's like a three-step process. You go like speech to text, LLM, then text to speech. And we talk about like, why is that? Versus why don't we just have a voice to voice model? Like, why don't we use that? like the reality is those just are not super reliable right now we also talk about like the trade-offs that you have to make when you're building voice agents so you have to trade off like the intelligence of responses that you're getting versus the latency so you can get very intelligent responses but you're also going to trade off it's going to be a slower response and so for different use cases that might be good or bad we also talk about like reliability so there are some llm companies that may not be like super reliable in terms of like their infrastructure and so like what do you do when opus goes down like you need to have a waterfall of models to basically pick it up so that your voice agents don't just stop working we also talk about like turn taking and how like it seems like a trivial problem where hey like you're talking to a voice agent and let's say i pause so how does the voice agent know that hey like i should i should interject and i should actually like respond to you versus oh the person is just taking time to think so turn taking is actually like not a trivial problem to solve and so we talk a little bit about that And then also we even talk about like how I think PyPAP built a voice agent for the World's Fair, right?
3:54So we even talked about that a little bit. And how like, I think, I mean, you can talk about this a little bit, but I think like you guys built a voice agent to like, if anyone calls the voice agent, it'll answer questions about the conference. And then you got a ton of like real world information and turn that into a benchmark. I mean, to be clear, I have no idea. Actually, I never looked at the analytics. I have no idea how many people actually called. Probably, you know, people are just kicking the tires. You know, like it's not that serious. like we it's a conference people know what it is yeah but you know i think it was a good deployment of use case daily is a sponsor so why not i you know i i would say that vast majority of voice stuff is support and like yeah oh my god there's you know so many call centers out there hundreds of billions of dollars spent on this stuff and they're all you know bad so hopefully we can sort of raise the the state of the art which you know i think that's why decagon and all these things people is like to me you know it's not as interesting if a bunch of people who are obviously selling you voice pipelines, telling you that voice pipelines are the state of the art.
4:51Like, yeah, duh. But, you know, having having the people actually focus on customer support and all those things also basically concludes like, yeah, like the models are not there yet. They may never be. And actually, this is just the way that you got to do it. And the people that really feel it are not the researchers, because researchers just always want bigger models to solve everything. And the product engineers will try to do it. but the FDEs, the people actually dealing with the customers will be like, dude, they made this like horrible mistake because it can never happen again. How can you guarantee me that?
5:22Well, yeah. So like, actually we even talked about that a little bit. So like we talked about like the inbound versus outbound use cases, because we even did that once we like ran an outbound use case. And like what you find is whenever somebody like picks up the phone and you do an outbound use case, a lot of the times they just hang up as soon as they realize it's a bot. So we even talk about that. How do you solve for that? All right. That's a good teaser. I admire your work. I'm excited to feature on InSpace. We'll be doing more in future together, but this is just an intro to FDE for at least the InSpace audience.
5:54I think this might be a good place to give everyone a 101 lesson on what does a simple voice agent architecture look like? So maybe that's a good question for Bruin, because you guys run PipeCat. Yeah, so there are many ways to build one nowadays because the complexity is the nature of things. But the simplest one, which is called a cascade model, is typically voice input. It comes through a transfer. It could be WebRTC, phone call, or web sockets. It goes into a speech-to-text. The transcription happens. There can be some additional models right there for background noise removal, voice isolation.
6:35So if there are a few people in in the foreground, it will isolate to one person, remove the background noise. There's a turn detection model. Unlike a text where you know when you're done, you press enter and the message goes and the LLM starts to execute. With voice, it's not walkie-talkie or push-to-talk. So there is no additional information apart from, like if you were looking at the face, you could actually figure out that the person stops speaking. But typically you use something like a voice activity detection and a smart turn model to figure out that the turn is complete. If I pause mid-sentence, that's different from if I finish speaking and pause.
7:23You may use a speech-to-speech model right there. Then when you have the text, from the transcription, then you send it to an LLM. The LLM may respond with an inference. It may actually tell you, it may infer to tool calls. It may do a bunch of things there. You get that. When you have the full output, you text to, like you do, text to speech, TDS. And it's usually faster than real time. So then you have to, like, figure out how to, like, stream it back to the end user. It will go over the same transport that you spoke over, and then it will play it back on your speakers. But things are getting more complex as people, you know, This was like 2024, 2025.
8:06People wanted to do this. If you're doing an outbound use case, like you do an outbound call, debt collection is quite commonly a use case for this. You get a call. They tell you you have an unpaid bill. They ask you if you were paid or give you a certain set of options. For that, the bot has really, if you go off the rails, like the human goes and starts saying random stuff, it can just drop the call. It's not obligated to stay on the call in any way. So guardrails are easy. It knows what the inputs it can accept. It knows what inputs it doesn't need to respond to. It flips when you have an inbound use case because the bot has no context, like has some context of why it exists, but doesn't know why you, the person who's calling it, is, if you're a mom and pop shop, like a flower shop or like a barista or something like that, okay, there's only like finite things that you can do there.
9:01But if you are more complex, let's say you're Amazon, you're like a billion products on your platform, and you have different policies for different things. Is it a physical item? Is it a cheap physical item? Is it an expensive item? Is it an electronic item? Like all of that. So it needs to pick. And then when you said something like, you can't put all of that inside a single prompt, because LLMs are goofy in that sense that always remember the first 4 % and the last 4 % and everything in between. They kind of forget. So if you have a return policy right in the middle of that context, it's very likely it'll hallucinate.
9:48So you have to do more smart things and that's where you have more models come in. You can have a compaction model. We're all using coding agents now. So you know if you're using a one million context model, at 25%, you should become nervous at that 25 % mark. It's nowhere near 70 % mark, but at 25 % mark, you're like, okay, should I start compacting and saving my work so that this thing does not go off the rails? The same thing, I think voice AI has been one generation ahead of coding agents. We've all, in the last two years, solved things that felt so alien but very tangible for us, which now when we see coding agents, we're like, man, compaction, we were doing compaction from day one.
10:36We knew after five turns or 10 turns, and your context was only 250 ,000 tokens or 50 ,000 tokens. Models were really small before. And at 10 ,000 tokens, they would go off the rails. So a lot of our work is, I think, about making sure that the bot does not hallucinate and trying to keep track of the conversation as the turns progress. And the turns are fairly short because either way, the bot is more likely to speak more than the human did. So you have to kind of keep track of what did the human say, where are we in the conversation. Yeah, so I guess this is a question for one of you three. So do you guys use this, like, cascading model for your guys' voice agents?
11:28Yes, that is one of the major offerings that we have, cascading and speech-to-speech. Yeah, I was going to ask, like, that sounds too complicated. Why not just go voice-to-voice? Like, why not? Like, why do you have to have this, like, crazy three-step process? I feel like the easiest way to answer this is you can call into a really nice voice-to-voice demo, and you're like, wow, it's like listening to me laugh, and it's like responding to my tone, and it's so snappy, it's so fast. But then I tell it that it asks me what day I want to schedule my appointment for, and I say, next week. And it says, great, is that June 10th?
12:04And I'm like, no, oh, the year is 2030. And it's like, you're right. It is 2030. So let's schedule this for June 10th, 2030. And I'm like, great, sounds good. And so from that perspective, I am actually very curious, especially on the smallest side, how that's evolved over time because we are very much keeping our eye on how these speech-to-speech models are performing. But overall, I think our current stance is the cascading model just allows you to enforce so many more rigid guardrails and just tight control over the ability to say, hey, this input is going to go through the same supervisor models to detect for prompt injection or social engineering.
12:44Then it's going to go down the conveyor belt into intent selection. Then we're going to optimize context by checking conditions ahead of time to say, in this complex process that we're going through with this user, maybe this prompt is applicable if they're this type of customer, but this prompt is applicable if they're that type of customer. So let's figure all this stuff out ahead of time, compact and compile a good system prompt for our message generation model, and get a response back. And then we can take that response and we can check a whole bunch of other things. We can check, is this grounded in truth?
13:19Is it 2030 or is it 20, 20, whatever year it is, 2026? And then it goes back out over the line. And so the obvious constraint to that is how do you make that performant? How do you parallelize as many of those steps in the conveyor belt as possible? I think the last six or so months has been a really amazing feat from our engineering team, at least, to find and shave off like 10 milliseconds at a time across every single part of this pipeline to make it feel snappy, even though there's a lot of things going on behind the scenes that you don't necessarily have to do with a speech-to-speech model.
13:54So that's at least my take. But, yeah, I am curious for the rest of the group's thoughts on this.
14:03Yeah, no, I think you have brought a question around like cascaded versus speech to speech. Like let's talk about like why did people start thinking about speech to speech. And so the initial idea was simple that hey if you convert speech to text, it's gonna lose the emotional information, right? So if you say hey, you might be saying it in a sad way or an excited way, the bot is gonna answer in the same manner, right? So that was the obvious reason people started. I think at some point of time, at least at smallest, that has evolved to speech-to-speech as a more natural way in which the human brain operates.
14:43So for example, when you do the cascaded thing, you do speech-to-text, then you send the prompt to an LLM, and then it responds, right? So we call that a synchronous architecture. like it's happening one after the other. But our brain is thinking while listening. So as I'm speaking to you, you're already forming your thoughts. And if I'm talking for too long, you'll interrupt me, right? Or you might be taking notes in the back end, right? So you might be essentially doing tool calls while I'm speaking to you. And so the whole idea is that if you ever want to pass the Turing test of how the human brain operates, you need something that is working asynchronously and can not just understand emotions but also operate like take in speech natively and give out speech natively asynchronously.
15:32And so that's why we have been sort of building Hydra. Now Hydra is our speech to speech model. Now in terms of accuracy and interpretability and all those things, I think whenever there is like a new architecture that comes out, it's often sort of good in one parameter and and then regressed a little bit in other parameters. So for example, the speech to text accuracies for just a speech to text model might be way better than the encoder of a speech to speech model that you have. And so I think the challenge is that while you made progress on making it more natural and operate more human-like, et cetera, et cetera, how could you keep the accuracy bar the same?
16:18And so I think a lot of that comes down to interpretability of such models, like because you don't want it to be a black box. So how can you understand where it is lacking? And so that's a lot of research that we do and how to make speech to speech models more interpretable. The other constraint is, I think, initially, the speech to speech models, like I think Sesame, etc, that came in that they were just speech to speech, like they literally took in speech and give out speech. Ours is like multi-modal. So it takes in speech and text, gives out speech and text both, so it can do tool call and take in text parallelly.
16:55So if you want to put guardrails, if you want to do all those things, that constraint does not go away. What we are also seeing is there is still, at least in enterprises, a lot more cascaded deployments compared to speech-to-speech model, but speech-to-speech, I think will be like an eventual future. That's my opinion. So my take is that when you have like competing things, you end up in a hybrid. And I think the answer for the midterm will be some form of hybrid. Because the speech-to-speech are improving. There are parts of the conversation loop where you would say like, oh, my use case of my workflow is complex.
17:37I'm going to use multiple LLMs anyway. So for the active loop, like I'm talking to as a human, you called me, I'm answering your questions. But whenever I have to do some kind of lookup or something, I delegate to another LLM which will then do the cascade stuff. So the first part of the loop keeps running. And then you have interesting kind of semaphores or you can think of those as threads. You want to interrupt the speech to speech model because you realize that this is a complex question. And you want to, before the speech to speech response, you say, actually, you cannot answer this question.
18:14and delegate to the cascade and so on and so forth. So typically I kind of say there are many use cases where if you wake me up in the middle of the night and ask me a bunch of questions, there are definitely some class of questions that I can answer without thinking. And we all do our jobs in a certain way where we can be in autopilot like 50 % of our time. So as these use cases become emergent and you're fully deployed with a customer doing high volume, you could essentially train specialized models that fully understand that 50 % use case very well. And you could always ask the model, like, hey, what is my return policy?
18:59And I'll say, like, in the simplest case, this is my return policy, and it applies to like 70%, and I know which SKUs or products it belongs to or it applies to. And if you ask me outside of that, then I have to do all the crazy work. And if I don't, then I answer it. So on these cascaded pipelines, what models are you guys using? Let's say of the frontier models of the GPTs, of the Opus and Sonnet, are you guys using the latest ones? Or are you using GPT-4 because it's the right balance between speed and intelligence? if you turn off thinking then you can actually use any of the if you want a fast model which responds to the prompt and does not need to think because if you want it to think you actually start to think about paralyzing the work because you want the first model to be super fast.
19:56I still like my Gemini 2.5 really well. It's so fast. It's like the 3.5 which they launch is like okay. It's slower but the 2.5 is so good. Even the haiku is really really good. they're still slower than what you would expect but yeah. How do you parallelize that pipeline? Because it feels like oh well I do have to first know what text the person said and then the LLM needs the text to do anything and then you can only generate speech once the text has been generated that you want it to speak, right? You just spend the, you know, you can send the speech like in the speech-to-speech model case, you would send the speech directly to one place, fork it into another place, run the STD there.
20:45And if you want multiple models, the text output from the first forks into multiple LLMs. You can think of it as like a waterfall. Like, you know, it comes down. Because you don't know what the output exactly will be. Yeah, you better put a gate at the bottom, which would be an XR or whatever fancy thing you want to do, which is like the, if all of them say we are right, then you put another LLM downstream which one is better you can go really crazy if you love computer architecture 20 years we had nothing to do now you can do all this crazy stuff from 20 years ago yeah so how do accents and different languages all fit into this maybe Sudarshan because you guys are building speech to speech so at least for speech to speech right now we are just fully focused on making it more intelligent in English and, you know, getting it really good in English.
21:39Like, we don't want to do any other, we don't want to introduce any other variables because the technology in itself is, I would say, quite frontier. Asynchronous is not yet, like, mainstream, et cetera, right? But in terms of, like, cascaded, yeah, we see, like, a lot of demand in, so we have a lot of presence in India, so we see, like, a lot of demand from India. we see a lot of demand from Latin America etc. I think US is more like mostly English and then there's some Spanish and then there's a lot of accents to it and I think US at least we have not had any troubles in terms of technology I think it's noise cancellation is probably the last mile of problem that is pending in terms of handling those things, but yeah, that has nothing to do with accents.
22:31I'm curious what you guys have seen. Maybe I can add some examples about that because on multilingual I like to definitely leverage Cascade model because there are multiple levers you can pull. To talk about an example, it's a customer we were deploying for Japan. So you could typically go to your 4.1 and OpenAI or your DeepGram for transcriber and that typically worked well. Now the challenge became on the voice piece so it turns out what we thought it was a state-of-the-art for something like English, Spanish, Portuguese, those type of that are typical in the US didn't work at all. So one of the benefits about this is that you can swap certain pieces that doesn't quite work for you.
23:22At least on VAPI how we solve it is that we let customers bring their custom text-to-speech server. So they actually have like there's some startup, there's a lab in there and there's typically you will find that in every market. Arabic is also really hard to get it right in pronunciation of brands, addresses and that really we don't cannot build expertise and optimize for every single use case. So that's one of the reasons why I like that as well. Cool. Also actually question on the like Sesame model. Yeah like they came out with this like really insane like demo and then I've never heard of them since.
24:04Like what do you guys know like what happened and what's going on? Yeah, I think, so they're building hardware is what I understand. Like they are putting those voice into some sort of a hardware. I'm not sure if it's glasses or what are they working on exactly. But I know a few people who got hired there and they're all sort of focused on the hardware and voice sort of background. Yeah, the answer I got was that the CEO had already made a ton of money and he just really wants to play around basically. So I guess he can do whatever he wants. Cool. So is it standard practice in this cascaded pipeline for you to just have one giant system prompt that you're giving the LLM on these are all the rules for how you should be responding?
24:54Or is it more of a workflow approach? How do you guys think about that? What's the standard best practice right now?
25:06so i think it highly depends upon the use case and also the size of your prompt right so i think i have a counter approach to varoon in terms of that like usually in inbound i find you know you you're usually having dedicated lines and you know specifically where the workflows are going to go right and so in these cases if you know a little bit more about and you can predict where the conversation is going to go, then you can have a more of a node or graph builder kind of approach. But if you don't know what's going to happen, typically I think in outbound, yes, there is a dedicated message, but what the caller says back, you never know.
25:46Because they could just be frustrated, they could be angry, or they could be, I don't know, like annoyed. And in that case, when they're erratic, when a person's erratic, you never know. So having it in a way that is like all in one prompt allows you to have more like a central brain in terms of I can pick up components from my prompt that may not have been in a dedicated flow, but actually can be utilized to enhance the response. And then on top of that, you have to think of your knowledge base and knowledge, the things at your expense, right? Like in an inbound flow, maybe you know exactly when you need to pull a specific part of your knowledge.
26:27So you don't need to extract every single piece of context, right, whether it's your websites and documents. But sometimes in outbound, you should utilize all that information to get a better response, and you will rely more on cosine similarity and stuff to make sure that hopefully your retrieval is good enough to respond to them. I think from my perspective, the limiting factor has been and will continue to be, although it's getting a lot better over time, just to, you know, some of the earlier points made, the ability for these frontier LLMs to be able to take a massive wall of text and not just read the first three lines and the last three lines, but actually be able to properly reason and, like, localize themselves into, you know, we are halfway through this procedure, and these things have already happened, and these things haven't happened yet, and these things are true, and these things are false about the situation, And so therefore, like, this is the one thing that I should be really zooming in on right now, right?
27:29So from our perspective, I think we kind of take an approach that depends on the customer. But we do, within our execution engine, have the ability to make some of these rules or prompts or guidelines more situational so that we can, you know, check if these are relevant right now before we even include them or don't include them in the system prompt. And so that was our solution that was especially relevant, you know, like seven months ago when the LLMs really were just like consistently skipping step 4A1. But we have found over time now that sometimes the reliability of deciding when these things are relevant or not is actually worse than just giving all of it to the model because the models have improved a lot since that time.
28:14And so now we're going back, I think, swinging a little bit back towards just give the model everything and more or less it will figure it out. But at the end of the day, you know, with non-deterministic systems, it really just ends up being customer by customer. We have to really understand their use cases and at the end of the day, just build it and then test it a whole bunch of times. And then use LLM as a judge to tell us, you know, did it work? Was it reliable? Or do we need to add a little bit more pre-processing and context optimization ahead of time in order to make it reliable? So the real answer is most likely always just test and find out and then test again and then find out again.
28:52And, you know, it goes on forever. I'm assuming that, yeah, maybe the models are able to handle those edge cases now, like just in a giant prompt. But that probably also increases latency. So first, could you talk about, like, what is a good latency look like for a voice agent? and is that even true that yeah the models are getting better but they also require more time and so for the end user that's actually a bad thing yeah that is a really good question i mean i think the definition of what like benchmarking latency stats look like that are good have uh changed a lot and um expectations are you know getting better and better and better from our customers overall i think it is also important to mention that um as much as fillers and contextual fillers is something that we don't like to hear just as a noun.
29:44It is normal in normal conversation for humans to say a few words while they're thinking. And so we've actually found that when we have zero contextual fillers, sometimes it actually feels more rigid than when we don't. And so we tend to find that having the right amount of fillers that kick in when we are experiencing some sort of latency because of some very large prompt or some very complex thing that the model is thinking through, most commonly running a tool call where our customer's API becomes the bottleneck and we're waiting five seconds for something to come back. Being able to say, hey, just give me a sec, looking at that, okay, cool, here's your answer, right?
30:22There's actually nothing wrong with that when we've tested with our customers. Obviously, the limiting factor in that case then becomes how good are your fillers and how natural do they sound? And so that's been a place where we've invested a lot of time as well to say, how do we create an execution engine where we really don't need fillers, but in those moments where we do, they're really good. So that's at least my take. But again, I know folks have probably a lot of opinions here about latency and how to find that trade-off. Because in my opinion, I honestly think that that's the hardest problem to solve in voice deployments is just that trade-off that's always going to be there of performance versus stability and reliability in general.
31:01So.
31:04Yeah, I agree with all of that. Some of the ways that we think about it in VAPI is offloading some of that instructions. So break it down. Sometimes you don't really need that 10, 15-step workflow in the prompt. One example I can talk about is this collections use case. We do allow users to capture, businesses to capture credit card information, but not every call is about that. Some people already have a payment method maybe added or that. So one way of doing that, offloading into a specialized agent, so we can start thinking about multi-agents, and there are many architecture and patterns in there, is to constrain the instructions that you give it to that particular moment of the conversation.
31:55And once that achieves its goal, it can go back to that more free-form approach which has loaded your longer context. Something we're also been experimenting lately, and it's more about the Garrel space, is to your point where you can have, think about it as a waterfall, you can actually stream to multiple places. so what if you have streaming down to a small language model which can do inference in a very little time so think about classifiers to maybe collect intent while the pipeline is still maybe adding a filler word as well to keep a consistent experience but kicking off a background process that is still intelligent, still thinking so those are still things that we'd like to invest a little bit more research on.
32:50So, yeah, constantly investing in that. I think one thing that we haven't also factored in in terms of the latency trade-off is cost, right? Now that you're putting such a big, large prompt into your LLM, you have to think about those calls where many people just hang up and predominantly calls just hang up 10 seconds into the call, right? Now you're having to pay for all those tokens to just get inputted in. So like Stephen mentioned, splitting out your prompt, you are also playing to that strength of lower latency and lower cost. I'll speak just to the benchmarks. So we publish turn-based STT benchmarks, LLM benchmarks, and TTS benchmarks.
33:41The whole point of that is that as I think today, Pneumotron 3.5 launched, and there's already an ASR benchmark out, did very well, the NVIDIA one. So the idea there is that all our tooling is open source. So with the STD benchmarks, the TDS benchmarks, and the LLM benchmarks, all the turns are actually open. So you can run it against any new model that comes out. You can run it locally. you can look at the outputs from our graphs and compare that to what you're getting on your infrastructure if you're self-hosting or elsewhere. So that's one important aspect to consider. If you know what your turns will look like, you can just update or just download our benchmarks, update the turns, and see how that goes for your own flows.
34:33Usually for the LLM stuff, it's really useful because you can, throughout the STT and the TTS and just run the LLM inference loops to like check against a customer. So yeah, I think evals are really important. And if you have like, while talking to customers, if you can evaluate like what type of conversations or like what type of workflow they're going to have, like those are real direct inputs into like what you can directly start testing, even though you're not live with them or even they've not shown any intent. So I think that's where the SEs and the forward deployed engineers can actually come to a fort.
35:12We all have cloud running in the background, right? So you can just say, here is what we had a discussion. Can you build an eval? Based on our eval suit, can you just run a smoke test with the conversation information that we already have? And that helps a lot, I think. Yeah, just adding to that, we are seeing, so while we focus on models, we also have all the models orchestrated on our platform so you could build a voice agent on smallest. We are seeing a lot of customers who just pair our models with our own small language model. It's called Electron. We fine-tune one of those to make it work for real-time voice use cases and see a lot of folks using that with better knowledge bases, memory, etc.
35:57over GPT-404.1, the popular real-time models. just A from a cost perspective, it's lower, B from latency perspective, it's like way lower. And then just more reliable. I think I'm not sure if everyone faces this, but like OpenAI APIs spike and then you have no control on those latencies. If you sort of have a self-hosted model, you could scale up, scale down based on your requirement. So that's one thing we are seeing a lot with our customers.
Watch the full show on YouTube: https://www.youtube.com/watch?v=MwNvowwcZOo