Live data from Hacker News

Show HN: A real time AI video agent with under 1 second of latency

news.ycombinator.com

251–260 of 264 posts

Re: Show HN: A real time AI video agent with under 1 second of latency

#251

> 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. I spent time solving this exact problem a…

There's a really nice implementation of phrase endpointing here:

  https://github.com/pipecat-ai/pipecat/blob/d378e699d23029e8ca7cea7fb675577becd5ebfb/src/pipecat/vad/vad_analyzer.py
It uses three signals as input: silence interval, speech confidence, and audio level.

Silence isn't literally silence -- or shouldn't be. Any "voice activity detection" library can be plugged into this code. Most people use Silero VAD. Silence is "non-speech" time.

Speech confidence also can come from either the VAD or another model (like a model providing transcription, or an LLM doing native audio input).

Audio level should be relative to background noise, as in this code. The VAD model should actually be pretty good at factoring out non-speech background noise, so the utility here is mostly speaker isolation. You want to trigger on speech end from the loudest of the simultaneous voices. (There are, of course, specialized models just for speaker isolation. The commercial ones from Krisp are quite good.)

One interesting thing about processing audio for AI phrase endpointing is that you don't actually care about human legibility. So you don't need traditional background noise reduction, in theory. Though, in practice, the way current transcription and speech models are trained, there's a lot of overlap with audio that has been recorded for humans to listen to!

Re: Show HN: A real time AI video agent with under 1 second of latency

#252
post #100

1) Your website, and the dialup sounds, might be my favorite thing about all of this. I also like the cowboy hat. 2) Maybe it's just degrading under load, but I didn't think either chat experience was very good. Both avatars interrupted themselves a lot, and the chat felt more like a jumbled mess of half-thoughts than anything. 3) The image recognition is pretty good though, when I could get one of the avatars to slo…

Glad you liked the website it was such fun project. Getting the hug of death from HN so that might be why you're getting a worse experience, please try again :)

It was disabled yesterday due to the high traffic - but I was able to connect today and after saying hello the chat immediately kicked me off after I asked a question. So unfortunately I've not been able to test it out for more than a few seconds of the "Hello, how can I help you today?"

One thing I've noticed for a lot of these AI video agents, and I've noticed it in Meta's teaser for their virtual agents as well as some other companies, is they seem to love to move their head constantly. It makes them all a bit uncanny and feel like a video game NPC that reacts with a head movement on every utterance. It's less apparent on short 5-10s video clips but the longer the clips the more the constant head movements give it away.

I'm assuming this is, of course, a well known and tough problem to solve and is being worked on. Since swinging too far in the other direction of stiff/little head movements would make it even more uncanny. I'd love to hear what has been done to try and tackle the problem or if at this point it is an accepted "tell" so that one knows when they're speaking with a virtual agent?

Re: Show HN: A real time AI video agent with under 1 second of latency

#254
Impressive work on achieving sub-second latency for real-time AI video interactions! Switching from a NeRF-based backbone to Gaussian Splatting in your Phoenix-2 model seems like a clever optimization for faster frame generation on lower-end hardware. I'm particularly interested in how you tackled the time-to-first-token (TTFT) latency with LLMs—did you implement any specific techniques to reduce it, like model pruning or quantization? Also, your approach to accurate end-of-turn detection in conversations is intriguing. Could you share more about the models or algorithms you used to predict conversational cues without adding significant latency? Balancing latency, scalability, and cost in such a system is no small feat; kudos to the team!

Re: Show HN: A real time AI video agent with under 1 second of latency

#255

I tried using https://www.tavus.io/ and it worked at first, but after 40 seconds the guy just kept blinking and twitching at me and became unresponsive to further questions lol. Pretty neat though.

Have you considered that's just the effect you have on people?

Re: Show HN: A real time AI video agent with under 1 second of latency

#256

> 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. I spent time solving this exact problem a…

There's a really nice implementation of phrase endpointing here: https://github.com/pipecat-ai/pipecat/blob/d378e699d23029e8ca7cea7fb675577becd5ebfb/src/pipecat/vad/vad_analyzer.py It uses three signals as input: silence interval, speech confidence, and audio level. Silence isn't literally silence -- or shouldn't be. Any "voice activity detection" library can be plugged into this code. Most people use Silero VAD. Sil…

> There's a really nice implementation of phrase endpointing here:

VAD doesn't get you enough accuracy at this level. Confidence is the key bit, how that is done is what makes the experience magic!

Re: Show HN: A real time AI video agent with under 1 second of latency

#258
post #100

1) Your website, and the dialup sounds, might be my favorite thing about all of this. I also like the cowboy hat. 2) Maybe it's just degrading under load, but I didn't think either chat experience was very good. Both avatars interrupted themselves a lot, and the chat felt more like a jumbled mess of half-thoughts than anything. 3) The image recognition is pretty good though, when I could get one of the avatars to slo…

Glad you liked the website it was such fun project. Getting the hug of death from HN so that might be why you're getting a worse experience, please try again :)

Just tried this. Most amazing thing I've ever seen. Utterly incredible that this is where we're at.

Re: Show HN: A real time AI video agent with under 1 second of latency

#259

I talked to your twin did you store my private info (face, voice)?

nope- we dont store any video/audio recordings of the sessions. You'd have to enable that and similar to zoom, it would show on the screen that that is being recorded

Thank you. This seems like a really good start! I will look out for more updates.

Re: Show HN: A real time AI video agent with under 1 second of latency

#260
post #143
post #83

Feedback: if I hadn't seen this posted here, I'd assume this website is malicious. Asking me for my email, microphone, and camera before you've even showed me anything is a deal breaker 100% of the time. You have to show the product first, or I don't actually know whether you actually have a product or are just phishing.

Just give false information.

My point was that this site fits the pattern of a malicious site. I think 99% of people would sooner click out of a malicious site than try to figure out how to "give false information" in the form of a camera permission.
Post reply on HN