Latest / Agentic Conversations (formally mlops.community) / How LiveKit Became An AI Company By Accident
Transcript
- 0:00We started Live Kit right in the middle of the pandemic.
- 0:03We're really fast. We had a lot of like big
- 0:05companies that started to use it.
- 0:07Product market fit right from the get go.
- 0:08But we didn't have a product. I mean, we had an open source
- 0:11project. I got pinged by a really large
- 0:14cloud provider and they're like, can we buy you?
- 0:17Can we license live kit cloud? Or maybe we'll just kill you
- 0:20with open source. You're the accidental AI
- 0:29company. Wow.
- 0:31I didn't think you were going to open up that.
- 0:32But yes, yes we are. Jumping right into it.
- 0:36Right in Let's go. How did that happen?
- 0:40Oh man, that's a crazy story. I've told it once on a podcast,
- 0:43but I'll tell it again since you probably have a bigger audience
- 0:47than they do. I think you're overestimating
- 0:50me. And my mom listens to this
- 0:52podcast and that's about it. I can tell you a funny story.
- 0:54My mom listens to a lot of podcasts.
- 0:57This one not this one probably. She's a huge fan, though, of
- 1:01Dylan Patel. I just interviewed him
- 1:04yesterday. Did you?
- 1:04That's so funny. Yeah.
- 1:05It's so crazy. The sad part is that this
- 1:08machine right here crapped out 10 minutes in.
- 1:11So it wasn't a podcast, it was a conversation.
- 1:14Oh, no, yeah, yeah, he's so smart, my mom told me.
- 1:18He's so smart. He wasn't necessarily
- 1:21demonstrating how smart he was when we were talking, but you
- 1:25should put this part in too. Shout out to Dylan.
- 1:28I can tell you a funny story about Dylan too.
- 1:29He'll be mad though, if I tell you that story.
- 1:31On air, off air, off air, off air.
- 1:34We'll talk about that. He's awesome though.
- 1:36So how do we become an AI company?
- 1:40So Live Kit's been on kind of a journey.
- 1:42We started Live Kit right in the middle of the pandemic, kind of
- 1:46towards the start. 2020 pandemic was a weird time in the world.
- 1:52You couldn't leave your house, right?
- 1:54And the only way you could connect with other people was
- 1:58through the Internet. And the way people did that
- 2:01predominantly was using a camera and a microphone on their
- 2:03computer, right? It turns out that when you go to
- 2:11do that, like transmit data from your camera on your microphone,
- 2:15the Internet, as we mostly have known it for the last 30 years,
- 2:20wasn't designed for that Http://standsfor.
- 2:28You're testing my knowledge, huh?
- 2:29No idea. It stands for Hypertext Transfer
- 2:36Protocol. Yeah, I never would have got
- 2:37that. So it was designed.
- 2:39It was designed for you to transfer text HTML which is just
- 2:45text over a network. It wasn't called Hyper Voice
- 2:50Transfer Protocol, Hyper Video. It needed to be.
- 2:54And in during the pandemic, we needed a protocol for
- 2:58transferring data over a network that was rich, richer than text,
- 3:03audio and video data from your camera, on your microphone.
- 3:07And so there is another protocol for doing that called Web RTC,
- 3:11but it's just not commonly used. Up until leading right up to the
- 3:14pandemic, there were really only three apps at scale that were
- 3:18using that protocol, Google Meet, Discord and Zoom.
- 3:23And so Zoom uses a kind of a custom version of it.
- 3:26So it should be no surprise that when the pandemic hit, those are
- 3:30the three apps that everyone was using because they were the only
- 3:33three ones that were you. Yeah.
- 3:34They were the ones designed for this kind of world we found
- 3:38ourselves in. But if you were a developer that
- 3:41was trying to build your own application that needed real
- 3:44time audio and video, you had to build a ton of infrastructure
- 3:48yourself. Think of it as like you had to,
- 3:51you didn't have Stripe for this kind of need.
- 3:55You had to go build all of this stuff yourself to interface
- 3:57directly with the payment gateway.
- 3:59In our world here we're talking about with networks, raw kind of
- 4:02network protocols. And so I discovered this
- 4:07limitation of how much I would have to build myself by actually
- 4:11working on a side project during the pandemic.
- 4:13I was working on a clubhouse for companies when clubhouse was
- 4:16kind of, I know, right? Forgot about that.
- 4:19Throwback. Very pandemic.
- 4:22And so I was trying to build a clubhouse for companies, and I
- 4:25had to build all of this infrastructure myself to
- 4:30actually ship the product. And so I'm like, maybe this
- 4:37infrastructure that I had to build myself could be valuable
- 4:40to other people. So I pinged my, you know, now Co
- 4:44founder David. We had done a company before
- 4:47that and sold it to medium. And so I pinged him and I said,
- 4:51Hey, I want to like, I want to build a side project, but I also
- 4:57think it'd be cool if we could like give this infrastructure
- 5:00away to other developers so that they can use it.
- 5:03And that was what turned into Life Kit was it was an open
- 5:06source project that built real time audio video streaming
- 5:11infrastructure in a world where you needed to connect with other
- 5:15humans over the Internet. And it was very hard to do so or
- 5:18build an application that needed to do so.
- 5:20And so that's how we started. We, we were really fast.
- 5:25We had a lot of like big companies that started to use
- 5:28it, you know, Spotify and Adobe and eBay and Oracle and all this
- 5:32stuff. So product market fit right from
- 5:33the get. Go it was product market fit
- 5:35almost from the get go, but we didn't have a product.
- 5:37I mean, we had an open source project.
- 5:38Yeah, OK, but we didn't have a commercial product.
- 5:40And so we decided, hey, like these big companies are using
- 5:43US. Let's go talk to them and find
- 5:44out why. And what they said was like,
- 5:46hey, we love the product you've built.
- 5:48We can see your code clearly. You guys are good programmers or
- 5:51my Co founder is maybe not me. So much full credit to him, but
- 5:56can we have a commercial product?
- 5:58Like we don't want to deploy and scale this ourselves.
- 6:00We want you to deploy and scale this for us and run a network
- 6:05and we'll pay you money. So we said, OK, well, that's a
- 6:07path to continue working on this for the long run, you know, so
- 6:12why don't we do it? So we raised some money and we
- 6:14started working on this live cloud system, which is like this
- 6:17global network for streaming audio and video.
- 6:18We won't go too much into the details of it because that's not
- 6:21really the question you asked me, is it?
- 6:23How do we become an AI company? But I promise this part is kind
- 6:26of relevant. So we launched the cloud product
- 6:29at the end of 2022 and at the end of 2022, ChatGPT, the
- 6:35website comes out and I'm like wow, this GPT 3 model is like so
- 6:41good or 3.5 is so good. It feels like I'm texting with a
- 6:46human. I'm like, what if I took Live
- 6:48Kit and I paired it with this website and like I combine the
- 6:54two things together. You know, run chat.openai.com in
- 6:57a puppeteer session, a headless browser, and then like take the
- 7:01speech, convert it into text, pipe it into the headless
- 7:03browser into like the division tag, hit the submit button.
- 7:06You're so ahead of. Your time like what if I Jerry
- 7:08rigged this thing together where you could talk to chachi PT
- 7:12instead of text with it voice say I wasn't a space right.
- 7:15I think deep Graham had been around, but I put out this demo.
- 7:19I tweet it and I'm like, I'm for sure going viral like.
- 7:24Felt it in your boat? I'm like, this is her, like
- 7:27Samantha from her. I'm definitely going viral,
- 7:31except without the voice and and it just goes nowhere.
- 7:36Nobody notices. Well, 90 people faved it, so
- 7:39maybe 90 people noticed, but definitely didn't go viral.
- 7:41So I was pretty disappointed. Fast forward five months later,
- 7:47there's a really long, amazing story then I won't tell because
- 7:50it'll take a long time. Something happened in that
- 7:55morning that was pretty interesting and now I'm like
- 7:57teasing it. Maybe you can just cut it out if
- 7:59it's too long. Yeah, we got full director's
- 8:03cut. I got, I got pinged by a really
- 8:06large cloud provider to I think it was August 4th, 2023.
- 8:14So 5 months after I put out this demo, I get pinged by a large
- 8:17cloud provider and they're like, I go have lunch with them for
- 8:20five hours and they're like, can we buy you?
- 8:23Can we license live kit cloud and deploy our own network?
- 8:27Or maybe we'll just kill you with open source.
- 8:30And I'm like, damn, that's usually what happens after seven
- 8:33years. It's happening after two.
- 8:34I was like, I'm flattered and I'm also terrified.
- 8:39And so they say, well, they're like, look, I'm like, well, how
- 8:41much would you offer? Just curious, you know, maybe
- 8:45I'll maybe I'll sell, who knows what's the number?
- 8:47And they're like 20 mil and I'm like.
- 8:51Not a bad payout. Not bad 2.
- 8:53Year project. But we raised 15.
- 8:55Oh OK, sounds like not the best. Not going to be the best, so
- 9:00sorry guys. They're like wait, wait, wait,
- 9:02wait. They're like, look, if you can
- 9:05somehow tie what you're doing, this audio, video streaming
- 9:10stuff, if you can tie it to Jen AI.
- 9:15You're like, you didn't see my tweet. 200. 200 million.
- 9:19If I could tie it to Jen AI and I said, dude, that's
- 9:22ridiculously you said that and I can't tie it to Jen AI have No,
- 9:25we're a video conferencing live streaming company.
- 9:27I didn't think about my demo. So I leave this meeting.
- 9:33Co founder and I are talking, David and I are talking.
- 9:35We're like terrified this large companies coming after us.
- 9:39What do we do? And we're like, OK, I guess we
- 9:41just kind of move fast. That's the only advantage we
- 9:42have driving home after, you know, during rush hour, I get
- 9:49this e-mail that comes in and it says hello from open AI and I, I
- 9:54jump on a call with. Them they found you because of
- 9:56what you had. Been like we found your blog
- 9:58post and the demo you built that you tweeted and we have been
- 10:06wanting to build a voice interface to Chachi PT and so
- 10:10three weeks ago we signed up with a personal Gmail Ceta know
- 10:16is us. This is this is the content
- 10:20right here. Yeah, serendipity and and we
- 10:24love the platform and now we want to build this thing for
- 10:27real and ship it. And so I was like, what?
- 10:34OK. Which you still didn't connect
- 10:37the 200 million. At that point you were like.
- 10:40No, I got to go back to this guy.
- 10:41You know what's funny I say now that I did and I'm like, wait, I
- 10:43have a Jedi story. I didn't really actually, I
- 10:45didn't connect it. I don't know, I think I was too
- 10:48like just mind blown. What's also interesting is that
- 10:53so we were, you know, we got in a month of building this with
- 10:56them and we shipped voice mode in September, the first version
- 11:00of it before advanced and all of the GPT 4 O and all that stuff.
- 11:04And in that moment was when I realized that this is an AI
- 11:10company and the realization and then sound bite exists
- 11:14everywhere, in other places too, because I've said it a lot.
- 11:18The realization was, oh man, Open AI wants to build AGI.
- 11:25AGI in my opinion, is a human like computer.
- 11:29It's a synthetic human. If we're successful and get all
- 11:32the way there, synthetic human. How are you going to interact
- 11:35with a synthetic human? You're going to talk to.
- 11:38It you're going to interact the way that humans interact, like
- 11:40how we're interacting, and we use eyes, ears and mouths
- 11:45predominantly to interact with one another.
- 11:48The equivalent sensors, the equivalent sense is for a
- 11:53computer. How it gets that information are
- 11:56cameras, microphones, speakers. It turns out that live kit,
- 12:02which was built for connecting humans to other humans using
- 12:04cameras, microphones and speakers, you can swap out one
- 12:07of the humans because all of a sudden that computer is now
- 12:10human like and you can use the same technology to connect a
- 12:13human to a machine. And so if open AI and Anthropic
- 12:19and Gemini and you know, the labs are going to build the
- 12:23brain, live kid has an opportunity to build the nervous
- 12:27system to carry signals to and from that brain wherever they
- 12:32originate and with, you know, ultra low latency.
- 12:37And so then I was like, wow, this is going to be, this could
- 12:41be, it has a good shot of being a core piece of like
- 12:47infrastructure that is the backbone of multimodal AI.
- 12:53And in the future, you won't have to qualify it as multimodal
- 12:56AI. It'll just be AI, right?
- 12:59Because that's where this is all going to go.
- 13:00Once the model gets smart enough and capable enough, it's all
- 13:04going to be multimodal. So that's how we became an AI
- 13:08company. I was not expecting that when I
- 13:11asked the question. I did not think that it was
- 13:13going that deep. But what a story.
- 13:16What a way to just live serendipitously and recognize
- 13:21that. It's crazy, you.
- 13:23Just rode the wave. You know what?
- 13:25Justin Khan is a friend and an investor.
- 13:29First check actually into live kit.
- 13:31And he was the guy that started Justin TV, right?
- 13:34Yeah, Justin TV was trained Twitch and we were just talking
- 13:37about this the other day where Emmett one of his Co founders
- 13:40who is the CEO of Twitch very briefly, maybe the CEO of open.
- 13:45Oh my God, I remember that too. But.
- 13:47So many dramas. I once ran into Emmett at a
- 13:50party NYC in the early days and I had taken a job at 23andMe.
- 13:55And like, anyway, that's not really part of the story I ran
- 13:57into. I met at AYC party in the early
- 13:59days and I was asking him how is how is Justin TV going?
- 14:03It wasn't Twitch yet. And he was like, you know, we're
- 14:07doing great. We're running these interactive
- 14:09ads for horror movies. We're getting paid.
- 14:12But then there's this other thing going on on Justin TV,
- 14:14which is everyone keeps streaming StarCraft videos.
- 14:16So we're thinking about doubling down on people streaming
- 14:19StarCraft videos. And, you know, that became
- 14:22Twitch. And throughout my whole career
- 14:25as an entrepreneur, I've just been like, why the heck can't
- 14:28that happen to me? Why can't I get lucky where
- 14:31people just start to use something in a way that I never
- 14:33predicted, and then I can just ride the wave into success.
- 14:39You can't engineer that, right? And so it's kind of surreal,
- 14:43honestly, that it ended up happening.
- 14:46I because I've been thinking about like, why can't I just
- 14:47have that happen? Why can't I get lucky?
- 14:50And then it ended up happening. It's it's wild.
- 14:52Maybe there's things that now you're like, OK, I've seen this
- 14:56five times and it works out in the end, so I'm not going to be
- 14:58so stressed about it. I think it's interesting because
- 15:01it's like my fifth company and I have a lot of learnings from the
- 15:05previous ones, but I think the learning that I have can be kind
- 15:09of like distilled down into one important point.
- 15:12It not even necessarily that I've seen it play out and I
- 15:15missed something more so that the thing that I didn't do with
- 15:19my previous companies was I did not think long term.
- 15:24Always think long term when you're doing something right.
- 15:28What kind of value are creating long term?
- 15:30What kind of movement are you attaching yourself to long term?
- 15:35In the past, I've kind of optimized for more reactive
- 15:39things like how do I compete with this other person or how do
- 15:45I position myself around what is like the zeitgeist at this
- 15:48moment and build for that, right?
- 15:51Or. You guys don't have an MCP
- 15:52server? You know what?
- 15:54We actually might, but I. Don't you?
- 15:57But that's not what you're talking.
- 15:58About we might. That's not what I'm talking
- 15:59about, you know, and. That's not what stresses you.
- 16:01I imagine whether or not you have an MCP server isn't
- 16:04something that keeps you up at night these days.
- 16:06It's not and and for what it's worth, Shane built the MCP
- 16:08server. If we have 1.
- 16:09So blame him. It's I had nothing to do with
- 16:12it. I wasn't part of the
- 16:13conversation. So it's all about him.
- 16:14We're going to talk about that later actually, because he's not
- 16:16thinking long term. I'm just kidding.
- 16:19Hi, Shane. No, but Shane's awesome by the
- 16:23way. But yeah, but you know, like
- 16:31we've always optimized in my past companies like around some
- 16:35kind of like myopic or small or near term thing.
- 16:39What we did differently this time was we actually didn't
- 16:42start Livekit to be a company, right.
- 16:44We started it as an open source project.
- 16:46Because you had a pain. Because we had a pain and I
- 16:48actually was. This is the truth DZ my Co
- 16:52founder and I we thought that we were going to build a Bitcoin
- 16:56wallet. DZ sounds like a Bitcoin name.
- 17:00And I think he puts like Bitcoin maxi in his like Twitter, his
- 17:03Twitter bio. Maybe he does, I don't know.
- 17:05But if he doesn't, he is a Bitcoin maxi.
- 17:08So don't talk to him about crypto.
- 17:10You'll never hear the end of it. But hi, DZ, he's awesome too.
- 17:14But no, we want, we were like, you know what?
- 17:16We want to work in crypto. Crypto's getting hot again, see,
- 17:20not thinking long term, but in the meantime, like we don't
- 17:24really have a good crypto idea. So we'll like just try to build
- 17:27some value for people. Hey, you know what, like we're
- 17:29in this pandemic and people need to like use audio and video a
- 17:31lot. Why don't we make that
- 17:33infrastructure easier for developers?
- 17:35We've been developers. We've benefited from open
- 17:37source. Why don't we give it back and
- 17:39like build something so that they can go faster?
- 17:43And so that was really what it was.
- 17:44We're like, you know, there's going to be more video on the
- 17:46Internet, not less. The internet's going to get more
- 17:48real time, not less real time. And so that's truly like how we
- 17:52started. And then when the AI stuff
- 17:55happened, we said, OK, well, we have this magical LLM
- 17:59technology, right? We now have a probabilistic
- 18:02computer that's like kind of like a raw material.
- 18:06How are you going to interact with that raw material?
- 18:09How do you harness it and like leverage it in an application
- 18:12and deliver that value to users and scale it?
- 18:15And so it turns out that you need a lot of infrastructure
- 18:19around, like lot of deterministic regular old code
- 18:24infrastructure around this, like statistical or probabilistic or
- 18:28stochastic computer to really leverage it and harness it.
- 18:33And so that's kind of been our guiding light is we're going to
- 18:37build all of that infrastructure, all of that muck
- 18:40so that developers who are building apps that need to use
- 18:44this magical technology don't need to.
- 18:45Yeah. And.
- 18:46You're the rock. Yeah.
- 18:48And then everything else. The Foundation.
- 18:49For it, yeah. Yeah, yeah.
- 18:50And so I think think long term is the big lesson that I've had.
- 18:54Is there a place where you are doubling down your bets right
- 18:58now? Yeah, for sure.
- 19:03You know, we now the way I like even if you go to our website,
- 19:06like we pitched the platform a little bit differently because
- 19:08we are kind of all in on AI infrastructure.
- 19:11It's not that video conferencing and live streaming companies
- 19:13don't use us, they still do. But every product is trying to
- 19:18figure out how does AI fit into my product and how can it make
- 19:22my product better? And so even video conferencing
- 19:25and live streaming is going to have AI as part of it.
- 19:28So we're really focused on AI infrastructure.
- 19:31What I say now is we're kind of building the platform for voice,
- 19:34video, and physical AI, right? The other way that I say it is
- 19:42you can now give your application an ability it never
- 19:45had before. It can see, it can hear, it can
- 19:50speak, and in the robotics case it can move.
- 19:55And so what's interesting about where we are today, you know, I
- 20:02just gave you the pitch or the one liner, but what's
- 20:04interesting about where we are is that we actually don't have
- 20:07the complete platform yet. We're not a complete product.
- 20:11This is on my kind of anti selling our stuff, right?
- 20:14Maybe I should be doing something different.
- 20:15But the honest truth is we don't have a complete product yet.
- 20:19We have the transport network which is how we started pre AI.
- 20:23Then with Open AI, we built this agents framework, which allows
- 20:26you to orchestrate and build voice agents.
- 20:28And you can think of that as like our next JS, right, For
- 20:32voice agents. So we have the next JS and we
- 20:35have the network that when you build an agent using our next
- 20:38JS, it can connect to our network and stream the audio and
- 20:42video. That's nice, but in the middle
- 20:45you have like some gaps like so when you build your voice agent
- 20:48using our framework, how do you test and evaluate that
- 20:50framework? How do you know what it's doing
- 20:52right or if it's doing the right thing or the intended thing?
- 20:55And then once you have a statistical confidence that it's
- 20:58doing the right thing, how do you deploy it and scale it and
- 21:02load balance, right? Because voice agents are not web
- 21:06applications. They are stateful.
- 21:08They're always running for as long as the session is running.
- 21:11They're constantly processing voice and generating voice.
- 21:14So it's not like a connect, send some data, do a database
- 21:18operation, disconnect kind of thing.
- 21:20It's stateful and always on. And so how do you deploying load
- 21:23balance, something like that? It's just a different paradigm.
- 21:26Then of course, you have the run part of it.
- 21:28Like so you deploy it. Now how do you run it?
- 21:30That's our network infrastructure, that's our
- 21:32telephony infrastructure. And then on the end, it's like,
- 21:35once you're running it, how do you observe it?
- 21:37Where's the data dog or the New Relic for voice AI?
- 21:42So shout. Out to Tom, that's another great
- 21:45member of your. Team, you know, is I want to say
- 21:48something bad about Tom and then say he's awesome afterward.
- 21:51But yeah, we got to. I have nothing bad to say about
- 21:53Tom. Tom's amazing and and so
- 21:57building that end to end platform is really what we're
- 22:00trying to do right like and it's not because we are dreaming it
- 22:05up and it's like this is what everyone needs and if we build
- 22:08that they will come you know field of dream style.
- 22:11It's because like our community and users are literally asking
- 22:14for this stuff every day. They're like, I built this
- 22:16agent, I'm running this agent on the network.
- 22:18It's working great, but like I'm struggling with deploying it.
- 22:21So we're working on a hosting product.
- 22:23I'm struggling with testing and evaluating.
- 22:25So we're looking at partnering with people who are working in
- 22:27the evaluation space, right? But also we're exploring whether
- 22:30we should do some stuff ourselves or an evaluation that
- 22:34works really well within the life Kit ecosystem.
- 22:36And then the observability side, we're like, OK, well, how do we
- 22:40monitor this stuff? People want visibility in these
- 22:42systems to know what are the user experiences like that might
- 22:46that they're having with my application.
- 22:47And so we're kind of trying to tackle all of these things and
- 22:51build that kind of all in one platform so that you can go from
- 22:56zero to shipping and scaling in production and making money and
- 23:00building a successful business all with using live get that
- 23:03foundation. You just plug in and then you're
- 23:05golden. 100%, yeah. I love that vision.
- 23:08And so now it's doubling down on the platform ecosystem.
- 23:11Yes, 100% you should pitch this. I'm I think it was better.
- 23:16You said it like in like 10 seconds and I didn't have that.
- 23:19I took like 2 minutes. Well, that's easy to do.
- 23:23One thing I do think about voice, which is fascinating, is
- 23:26how much of A rich medium it is and how many signals you can
- 23:31get. Yeah, yeah, yeah, from voice,
- 23:32which is very unlike text. I mean, you're right about all
- 23:36those things, right? Thank you.
- 23:38So voice is fundamentally higher bandwidth than text, right?
- 23:43It carries more data, you know, it's more dense per packet,
- 23:47let's say, right, or per byte. And the reason why is because
- 23:55it's carrying more information, right?
- 23:57Voice data has, it has prosody and intonation and a cadence,
- 24:05all kinds of these aspects of sound that humans like
- 24:11automatically pick up on and can change the semantics of what
- 24:16you're saying, right? The way you say something
- 24:19absolutely matters, maybe not as much as what you say, but it
- 24:25definitely makes a difference, right, in interpretability or
- 24:28how that information is perceived by your brain right on
- 24:33the receiving end. And so the other part about this
- 24:40is like, so yes, that's kind of just the law of physics of
- 24:42voice. And it simultaneously makes it
- 24:49an amazing medium for interaction and a very natural
- 24:54medium. I mean, this is what we've been
- 24:55doing for thousands and thousands of years, right, is
- 24:59using voice to communicate ideas to one another.
- 25:03But it also makes it incredibly difficult to build a synthetic
- 25:11human like experience in code that matches the fidelity of
- 25:18like a human like conversation. And so.
- 25:23So I think a lot of possibility, which is exciting, but also it
- 25:26requires a lot of experimentation to get right.
- 25:29And there's a lot of moving pieces in between, as you said,
- 25:31like our framework tries to reduce the amount of entropy in
- 25:35the system by handling a lot of things for you, like
- 25:38interruptions and turn taking and the low latency back and
- 25:42forth streaming of the data. But then you also have things
- 25:45like transcriptions and the quality of those.
- 25:48When you turn that voice into text and you have the brain
- 25:53piece of it, the LLM, is it going to understand those
- 25:56prompts in the way that you want them to and you're going to?
- 25:58Call that tool correctly. Exactly.
- 26:00Is it going to call that tool reliably?
- 26:02How long does that tool call take?
- 26:04Do you generate a response in the middle so that people don't
- 26:06think that you're waiting forever?
- 26:08It's like they're all these aspects, conversational dynamics
- 26:11and reliability aspects of a conversation that if you don't
- 26:14get it right, then you fall into this like uncanny valley and
- 26:17then people kind of reject it. And I think what also makes it
- 26:21even more difficult is the thresholds for when someone
- 26:28rejects it or doesn't think it's useful are very use case
- 26:32dependent. So if you are building, for
- 26:35example, if you're building like patient Indica hospital, we've
- 26:40just been talking to a company. I'll give them a shout out.
- 26:43We've been talking to a sword health.
- 26:44They're a user of live kit. They're awesome, they're
- 26:47growing, they're amazing. One thing that we were talking
- 26:49to them about was around latency.
- 26:51And they're like, you know, we're like, you know, like the
- 26:53latency. How do you feel if we got that
- 26:55latency even lower? I don't know, it's maybe coming
- 26:58in at like a second or something for a full kind of turns or
- 27:01maybe around 750 milliseconds somewhere in that range, 750 to
- 27:04a minute to a second for, you know, time between AI speaking
- 27:09to you, you speaking to it, the turn latency.
- 27:13And they said, you know, honestly, for our use case,
- 27:17doesn't matter. They're like when people are on
- 27:20the phone that are like doing patient and they get a hospital,
- 27:25they don't really care if it takes a second or two seconds.
- 27:29They just want to get an appointment on the doctor's
- 27:31calendar and they want to talk about the issue that they're
- 27:33having and like whether it's like super fast, like, look, if
- 27:37it takes 5 seconds or 10 seconds, yeah, it's going to be
- 27:40a problem. But the distance between like
- 27:43yeah, 200 versus 500 versus a second versus 2 seconds, if
- 27:47they're like what we have found is sometimes the LLMS take a
- 27:51while to respond. Not a live kid problem, I just
- 27:53want to say, but sometimes they take a while to respond the LLM.
- 27:57And so it does once in a while hit two 2 1/2 seconds.
- 28:00They actually don't see any drop off from that but.
- 28:02If you think about a human doing the same thing, there's a lot of
- 28:05times where I wait on the. Phone for sure.
- 28:08Because somebody is writing something down or they're
- 28:11pulling something up on a computer.
- 28:13So it's not like we're unused to.
- 28:15It's not an unnatural behavior. So that is true, but there are
- 28:20use cases where there are high sensitivity to latency.
- 28:23And I'll give an example and then I'll talk about a
- 28:26technique. So for language learning, speak
- 28:30is another company, they build immersive language learning.
- 28:33So if you want to learn how to speak a different language, you
- 28:35can kind of have like a, an experience where you're talking
- 28:38to a native speaker of that language and it feels very
- 28:41conversational, like you're in their country and you're talking
- 28:43to them and they use live kit for this.
- 28:46And latency is very sensitive there because like it's supposed
- 28:49to feel like a human conversation.
- 28:51And so if you're not responding very quickly, it starts to feel
- 28:55unnatural, right? And it breaks the experience or
- 28:58the believability of the experience.
- 29:00That's the uncanny valley, I guess.
- 29:04And so for that use case, latency is does matter a lot.
- 29:07What's interesting about what you said about how in like a use
- 29:11case like customer support or patient intake, the person is
- 29:14like looking up information, they're doing something on their
- 29:17computer and then they respond after a while.
- 29:20What's interesting is yes that is true, but usually you're
- 29:26getting some kind of non verbal feedback.
- 29:28You're hearing papers in the background.
- 29:30You're hearing paper in the background, you're hearing keys
- 29:31clacking or they're or they're saying, you know what?
- 29:34I'm going to do something. Can I put you on hold for a
- 29:35second? Or they're saying, oh, let me
- 29:37see, huh. Like.
- 29:39And so either non lexical or actual lexical responses that
- 29:43are coming back very, very quickly.
- 29:45And then you're like, you're primed.
- 29:47OK, I'm going to wait. And so if you just hear silence.
- 29:50You're go crazy. That's the part that is like,
- 29:53wait, this isn't. This isn't.
- 29:54Working. Isn't right?
- 29:56Is it broken? Let me ask again, so you know,
- 29:59where this is becoming a thing that people are starting to
- 30:02think about is in reasoning models because Anthropics model
- 30:06and some of the other models now they don't have like a separate
- 30:09reasoning and then a separate like regular single shot LLM is
- 30:14they have thinking tokens and a thinking budget.
- 30:16And you can apply like a certain amount of thought to different
- 30:21kind of operations or prompts. And you're like, well, if I'm
- 30:25going to like apply a high thinking budget, how do I build
- 30:28voice AI around a reasoning model that can like dynamically
- 30:32think for different periods of time?
- 30:33Well, my recommendation is you need to figure out how do you
- 30:36respond and what do you respond with immediately before you
- 30:40trigger or in parallel with triggering.
- 30:42Kind of like a thinking process. It's so funny you mention that
- 30:45because I'm when I was talking to Elliot, who runs VOCA, and
- 30:49they do something similar where I'm.
- 30:52Actually meeting with the VOCA guys tomorrow.
- 30:53Really. Yeah, yeah, yeah, I'm hanging
- 30:57with them for coffee. He's one of the deepest thinkers
- 30:59on conversational design that I have talked to and he's done
- 31:03some really fun stuff where he said we put background noises in
- 31:08so that it feels more human. You know, you don't want just
- 31:10like a voice agent there that you can't hear anything else
- 31:14except for the voice. And then he also said that they
- 31:18will intentionally make the agent a little bit like Dumber
- 31:22quote, UN quote, because the human tends to enunciate more
- 31:27and they tend to be a lot more forgiving and say what they want
- 31:32in a very articulate way when they think that like, oh, this
- 31:35is just some like shitty AI. Oh wow, and human empathy.
- 31:39Exactly right. So funny.
- 31:40It's like this trick. It's such a nice little hack
- 31:43that you have. And what he was saying too was,
- 31:46yeah, you have to mention that you're thinking or you're doing
- 31:50something. That action is being taken if
- 31:54you're making someone. Yes, because otherwise they
- 31:57think that it just went offline. Right.
- 32:00There has to be that feedback that you get, right?
- 32:03To kind of, yeah, prime your mind as to what's happening,
- 32:06right. Even if you can't see what's
- 32:08happening, like hearing over hearing it over the phone, you
- 32:10need some signal. Dude, I think that's perfect way
- 32:13to end it. Is there anything else that you
- 32:15want to hit on that we didn't talk about?
- 32:17No, it's great, man. Yeah.
- 32:19Love chatting? This is very cool, I appreciate
- 32:21you doing this.