Lurker News
Hey it’s Hassaan & Quinn – co-founders of Tavus, an AI research company and developer platform for video APIs. We’ve been building AI video models for ‘digital twins’ or ‘avatars’ since 2020.

We’re sharing some of the challenges we faced building an AI video interface that has realistic conversations with a human, including getting it to under 1 second of latency.
To try it, talk to Hassaan’s digital twin: https://www.hassaanraza.com, or to our "demo twin" Carter: https://www.tavus.io
We built this because until now, we've had to adapt communication to the limits of technology. But what if we could interact naturally with a computer? Conversational video makes it possible – we think it'll eventually be a key human-computer interface.
To make conversational video effective, it has to have really low latency and conversational awareness. A fast-paced conversation between friends has ~250 ms between utterances, but if you’re talking about something more complex or with someone new, there is additional “thinking” time. So, less than 1000 ms latency makes the conversation feel pretty realistic, and that became our target.
Our architecture decisions had to balance 3 things: latency, scale, & cost. Getting all of these was a huge challenge.
The first lesson learned was to make it low-latency, we had to build it from the ground up. We went from a team that cared about seconds to a team that counts every millisecond. We also had to support thousands of conversations happening all at once, without getting destroyed on compute costs.
For example, during early development, each conversation had to run on an individual H100 in order to fit all components and model weights into GPU memory just to run our Phoenix-1 model faster than 30fps. This was unscalable & expensive.
We developed a new model, Phoenix-2, with a number of improvements, including inference speed. We switched from a NeRF based backbone to Gaussian Splatting for a multitude of reasons, one being the requirement that we could generate frames faster than realtime, at 70+ fps on lower-end hardware. We exceeded this and focused on optimizing memory and core usage on GPU to allow for lower-end hardware to run it all. We did other things to save on time and cost like using streaming vs batching, parallelizing processes, etc. But those are stories for another day.
We still had to lower the utterance-to-utterance time to hit our goal of under a second of latency. This meant each component (vision, ASR, LLM, TTS, video generation) had to be hyper-optimized.
The worst offender was the LLM. It didn’t matter how fast the tokens per second (t/s) were, it was the time-to-first token (tfft) that really made the difference. That meant services like Groq were actually too slow – they had high t/s, but slow ttft. Most providers were too slow.
The next worst offender was actually detecting when someone stopped speaking. This is hard. Basic solutions use time after silence to ‘determine’ when someone has stopped talking. But it adds latency. If you tune it to be too short, the AI agent will talk over you. Too long, and it’ll take a while to respond. The model had to be dedicated to accurately detecting end-of-turn based on conversation signals, and speculating on inputs to get a head start.
We went from 3-5 to <1 second (& as fast as 600 ms) with these architectural optimizations while running on lower-end hardware.
All this allowed us to ship with a less than 1 second of latency, which we believe is the fastest out there. We have a bunch of customers, including Delphi, a professional coach and expert cloning platform. They have users that have conversations with digital twins that span from minutes, to one hour, to even four hours (!) - which is mind blowing, even to us.
Thanks for reading! let us know what you think and what you would build. If you want to play around with our APIs after seeing the demo, you can sign up for free from our website https://www.tavus.io.

Comments (256) 95 threads

Earlier comments
biztos1 reply#
Did you try it with a lower frame rate on the video?

It seems like that'd be a good way to reduce the compute cost, and if I know I'm talking to a robot then I don't think I'd mind if the video feed had a sort of old-film vibe to it.
Plus it would give you a chance to introduce fun glitch effects (you obviously are into visuals) and if you do the same with the audio (but not sacrificing actual quality) then you could perhaps manage expectations a bit, so when you do go over capacity and have to slow down a bit, people are already used to the "fun glitchy Max Headroom" vibe.
Just a thought. I'll check out the video chat as soon as my allegedly human Zoom call ends. :-)

biztos#
Now that I tried it out, I find it very Westworld and I think I would prefer something more plastic, more witty in the way the web site and the launch process is witty. Robot Twin Hassaan was a bit creepy in his Uncanny Valley Ranch.

Up to you, obviously, but I think you might get further being less creepy while you deal with the technical challenges, and then unveil your James Delos[0] to the investors when he's more ready.
[0]: https://www.youtube.com/watch?v=EJGgnxTMVd4

byearthithatius1 reply#
That is your browser. Hassaan, you should add autocomplete="name" to prevent this in the future since clearly it scares some folks. He didn't do anything that its just your browser looking for autocomplete text boxes.
hassaanr#
Great callout- will make that change now!
jszymborski1 reply#
> The next worst offender was actually detecting when someone stopped speaking.

ChatGPT is terrible at this in my experience. Always cuts me off.

thangalin1 reply#
> Always cuts me off.

In my sci-fi novel, when characters speak with their home automation system, they always have to follow the same format: "Tau, , please." It's that "please" at the end that solves the stopped speaking problem.
Am looking for alpha readers! (See profile for contact details.)

jszymborski1 reply#
Honestly, that makes a lot of sense haha

What's funny is that we even have a widely popularized version of this in the form of prowords[0] like "OVER" and "ROGER"
[0] https://en.wikipedia.org/wiki/Procedure_word

jazzyjackson#
Dang that just planted the visual in my head of talking to AI over walkie talkie. Not a bad interface. Push to talk, if it takes a few seconds or even a few minutes for a response to come back, not a big deal.
social_quotient#
Good job on the launch and the write up. I'll be interested to play with this api.

I'm glad to see the ttft talked about here. As someone who's been deep in the AI and generative AI trenches, I think latency is going to be the real bottleneck for a bunch of use cases. 1900 tps is impressive, but if it's taking 3-5 seconds to ttft, there's a whole lot you just can't use it for.
It seems intuitive to me that once we've hit human-level tokens per second in a given modality, latency should be the target of our focus in throughput metrics. Your sub-1 second achievement is a big deal in that context.

Load more comments