Asterisk AI Voice Agent

(github.com)

64 points | by akrulino 5 hours ago ago

31 comments

  • wild_egg 2 hours ago

    The baseline configurations all note <2s and <3s times. I haven't tried any voice AI stuff yet but a 3s latency waiting on a reply seems rage inducing if you're actually trying to accomplish something.

    Is that really where SOTA is right now?

    • coderintherye 2 hours ago

      Microsoft Foundry's realtime voice API (which itself is wrapping AI models from the major players) has response times in the milliseconds.

    • duckkg5 an hour ago

      Absolutely not.

      500-1000ms is borderline acceptable.

      Sub-300ms is closer to SOTA.

      2000ms or more means people will hang up.

    • wellthisisgreat 2 hours ago

      No, there are models with sub-second latency for sure

  • looneysquash 2 hours ago

    That seems like bad news for Allison. Though I know she already had some TTS voices available, so many not.

  • eugene3306 2 hours ago

    I've created Asterisk Codex Skill, but turns out there is ten seconds timeout for scripts

  • aftbit 2 hours ago

    This opens up new possibilities for interactive phone services. Retro-futuristic for sure.

  • nextworddev 3 hours ago

    Can I connect this to Twilio

    • kwindla 2 hours ago

      One easy way to build voice agents and connect them to Twilio is the Pipecat open source framework. Pipecat supports a wide variety of network transports, including the Twilio MediaStream WebSocket protocol so you don't have to bounce through a SIP server. Here's a getting started doc.[1]

      (If you do need SIP, this Asterisk project looks really great.)

      Pipecat has 90 or so integrations with all the models/services people use for voice AI these days. NVIDIA, AWS, all the foundation labs, all the voice AI labs, most of the video AI labs, and lots of other people use/contribute to Pipecat. And there's lots of interesting stuff in the ecosystem, like the open source, open data, open training code Smart Turn audio turn detection model [2], and the Pipecat Flows state machine library [3].

      [1] - https://docs.pipecat.ai/guides/telephony/twilio-websockets [2] - https://github.com/pipecat-ai/pipecat-flows/ [3] - https://github.com/pipecat-ai/smart-turn

      Disclaimer: I spend a lot of my time working on Pipecat. Also writing about both voice AI in general and Pipecat in particular. For example: https://voiceaiandvoiceagents.com/

      • ldenoue 38 minutes ago

        The problem with PipeCat and LiveKit (the 2 major stacks for building voice ai) is the deployment at scale.

        That’s why I created a stack entirely in Cloudflare workers and durable objects in JavaScript.

        Providers like AssemblyAI and Deepgram now integrate VAD in their realtime API so our voice AI only need networking (no CPU anymore).

        • nextworddev 19 minutes ago

          let me get this straight, you are storing convo threads / context in DOs?

          e.g. Deepgram (STT) via websocket -> DO -> LLM API -> TTS?

      • nextworddev an hour ago

        This is good stuff.

        In your opinion, how close is Pipecat + OSS to replacing proprietary infra from Vapi, Retell, Sierra, etc?

    • ldenoue 40 minutes ago

      I developed a stack on Cloudflare workers where latency is super low and it is cheap to run at scale thanks to Cloudflare pricing.

      Runs at around 50 cents per hour using AssemblyAI or Deepgram as the STT, Gemini Flash as LLM and InWorld.ai as the TTS (for me it’s on par with ElevenLabs and super fast)

    • VladVladikoff 3 hours ago

      Technically yes, twilio has sip trunks.

  • krater23 3 hours ago

    Please don't. I had a talk with a shitty AI bot on a Fedex line. It's absolute crap. Just give me a 'Type 1 for x, type 2 for y'. Then I don't need to guess what are the possibilities.

    • EvanAnderson 3 hours ago

      Voice-controlled phone systems are hugely rage-inducing for me. I am often in loud setting with background chatter. Muting my audio and using a touchtone keypad is so much more accurate and easy than having to find a quiet place and worrying that somebody is going to say something that the voice response system detects.

    • 9x39 2 hours ago

      One problem is once you’re in deep building a phone IVR workflow beyond X or Y (yes, these are intentional), callers don’t care about some deep and featured input menu. They just mash 0 or pick a random option and demand a human finish the job and transfer them - understandably.

      When you’re committed to phone intent complexity (hell), the AI assisted options are sort of less bad since you don’t have to explain the menu to callers, they just make demands.

      • tartoran 2 hours ago

        What if the goal is to keep gaslighting you until you give up your demands?

        • 8note 2 minutes ago

          you bought something from the wrong company, and you arent gonna get helped by phone, bot, or person

        • 9x39 2 hours ago

          Most voice agents for large companies are a calculated game to deter customers from expensive humans as we know, but not always.

          Sort of like how Jira can be a streamlined tool or a prison of 50-step workflows, it's all up to the designer.

    • cyberax 19 minutes ago
  • johnebgd 4 hours ago

    I welcome the spam calls from our asterisk overlords.

    • VladVladikoff 3 hours ago

      I’m honestly surprised it hasn’t been more prevalent yet. I still get call centre type spam calls where you can hear all the background noise of the rest of the call centre.

      • userbinator 2 hours ago

        Is the background noise real, or is it also AI-generated to make you think that it's a human?

        • tartoran 2 hours ago

          The background noise is a recording for sure, no AI needed, just a background noise audiofile in a loop would do.

          • VladVladikoff 2 hours ago

            Why though? It adds nothing positive, it only makes me sure it is a scam call.

            • the_af an hour ago

              I assume it's to make it seem like an actual call center rather than a scam. I recently got two phone scam attempts (credit card related) that sounded exactly like this.

              • ldenoue 35 minutes ago

                I built a voice AI stack and background noise can be really helpful to a restaurant AI for example. Italian background music or cafe background is part of the brand. It’s not meant to make the caller believe this is not a bot but only to make the AI call on brand.

              • SoftTalker 28 minutes ago

                you actually answer unknown callers?

                • Loughla 3 minutes ago

                  Yes. I own a business.

                • the_af 13 minutes ago

                  Yes. Sometimes it's a legit call. Not often, though.

                  Example of legit calls: the pizza delivery guy decided to call my phone instead of ringing the bell, for whatever reason.