{"by":"kwindla","descendants":28,"id":43283317,"kids":[43288257,43287516,43287351,43287130,43287629,43286115,43286375,43287556,43287814,43287520,43286885,43285830,43286857],"score":126,"text":"Our goal with this project is to build a completely open source, state of the art turn detection model that can be used in any voice AI application.<p>I&#x27;ve been experimenting with LLM voice conversations since GPT-4 was first released. (There&#x27;s a previous front page Show HN about Pipecat, the open source voice AI orchestration framework I work on. [1])<p>It&#x27;s been almost two years, and for most of that time, I&#x27;ve been expecting that someone would &quot;solve&quot; turn detection. We all built initial, pretty good 80&#x2F;20 versions of turn detection on top of VAD (voice activity detection) models. And then, as an ecosystem, we kind of got stuck.<p>A few production applications have recently started using Gemini 2.0 Flash to do context aware turn detection. [2] But because latency is ~500ms, that&#x27;s a more complicated approach than using a specialized model. The team at LiveKit released an open weights model that does text-based turn detection. [3] I was really excited to see that, but I&#x27;m not super-optimistic that a text-input model will ever be good enough for this task. (A good rule of thumb in deep learning is that you should bet on end-to-end.)<p>So ... I spent Christmas break training several little proof of concept models, and experimenting with generating synthetic audio data. So, so, so much fun. The results were promising enough that I nerd-sniped a few friends and we started working in earnest on this.<p>The model now performs really well on a subset of turn detection tasks. Too well, really. We&#x27;re overfitting on a not-terribly-broad initial data set of about 8,000 samples. Getting to this point was the initial bar we set for doing a public release and seeing if other people want to get involved in the project.<p>There are lots of ways to contribute. [4]<p>Medium-term goals for the project are:<p><pre><code>  - Support for a wide range of languages\n  - Inference time of &lt;50ms on GPU and &lt;500ms on CPU\n  - Much wider range of speech nuances captured in training data\n  - A completely synthetic training data pipeline. (Maybe?)\n  - Text conditioning of the model, to support &quot;modes&quot; like credit card, telephone number, and address entry.\n</code></pre>\nIf you&#x27;re interested in voice AI or in audio model ML engineering, please try the model out and see what you think. I&#x27;d love to hear your thoughts and ideas.<p>[1] <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40345696\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40345696</a><p>[2] <a href=\"https:&#x2F;&#x2F;x.com&#x2F;kwindla&#x2F;status&#x2F;1870974144831275410\" rel=\"nofollow\">https:&#x2F;&#x2F;x.com&#x2F;kwindla&#x2F;status&#x2F;1870974144831275410</a><p>[3] <a href=\"https:&#x2F;&#x2F;blog.livekit.io&#x2F;using-a-transformer-to-improve-end-of-turn-detection&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;blog.livekit.io&#x2F;using-a-transformer-to-improve-end-o...</a><p>[4] <a href=\"https:&#x2F;&#x2F;github.com&#x2F;pipecat-ai&#x2F;smart-turn#things-to-do\">https:&#x2F;&#x2F;github.com&#x2F;pipecat-ai&#x2F;smart-turn#things-to-do</a>","time":1741285248,"title":"Show HN: Open-source, native audio turn detection model","type":"story","url":"https://github.com/pipecat-ai/smart-turn"}