跳过导航
I built a simple voice assistant in 70 lines of Python code.
0:00 / 6:55

I built a simple voice assistant in 70 lines of Python code.

Santiago

@svpino46万 位关注者

在 X 上查看
552 个赞下载原帖

34,718 次观看

I built a simple voice assistant in 70 lines of Python code. It uses: • LiveKit - The voice agent • AssemblyAI - To turn your voice into text • OpenAI - The brain of the agent, and to turn text into audio There's something really cool about this:

22 条评论

评论来自 X (Twitter) 上的原帖

  • Santiago 的头像

    @svpino

    I'm using @AssemblyAI's turn detection, and it's really good! Turn detection tells the assistant when the person stops talking, and it's time for the other person to talk. Before, we used pauses and silence to detect turns, but that's not a great approach (imagine somebody making a pause while dictating a credit card). The new turn detection version is much more robust. Run this code and talk to the assistant. This feels way more natural than ever before. Here is the repository: You'll find the instructions to run the code in the README file. If you prefer to watch the video on YouTube, here is the link:

    25 个赞

  • Alex Veremeyenko 的头像

    @alex_verem

    @livekit @AssemblyAI @OpenAI that’s impressive for just 70 lines, leveraging those tools really enhances the experience. clean code can go a long way in simplifying voice interactions.

    1 个赞

  • kavin karthick 的头像

    @kavinkarthick_

    @livekit @AssemblyAI @OpenAI livekit is so good ...

    1 个赞

  • Saïd Aitmbarek 的头像

    @SaidAitmbarek

    @livekit @AssemblyAI @OpenAI so cool, gotta try livekit!

  • Nakesh Singh 的头像

    @nakesh_ks

    @livekit @AssemblyAI @OpenAI Great content. Do we need to purchase subscription for @livekit, AssemblyAI, openAI ??

  • Robert Youssef 的头像

    @rryssf

    @livekit @AssemblyAI @OpenAI nice work, love how you leveraged those tools in so few lines. that voice agent setup looks clean

  • ___raf stahelin___ 的头像

    @___rafrafraf___

    @livekit @AssemblyAI @OpenAI Can it be used with Claude code?

  • Nayo 的头像

    @nayoguy

    @livekit @AssemblyAI @OpenAI Simplicity fucks

  • AI Expert 的头像

    @RealAIExpert

    @livekit @AssemblyAI @OpenAI Great 👍🏽👍🏽

  • Akanksha Soni 的头像

    @Akanksh14681644

    @livekit @AssemblyAI @OpenAI Hii guys I have started a 100 Days DSA Challange .. So is there anyone who would like to join along with me in this journey .. Lets leran together 🔥

  • Pyxis 的头像

    @pyx3lperfect

    @livekit @AssemblyAI @OpenAI I knew the answer immediately. What’s the point?

  • MangoMagic™️ 的头像

    @somanymangoes

    @livekit @AssemblyAI @OpenAI Impressive. Python just got a whole lot more chatty.

  • sc 的头像

    @space_cap

    @livekit @AssemblyAI @OpenAI To use connected online services is easy as of today. Build a local one no data streams leave your pc. We could use as example STT Vosk, LM Studio local model and TTS Mimic3… when you dive into the details it gets very interesting and we understand process power is limit.

  • TensorFlow 的头像

    @tensorflow03

    @livekit @AssemblyAI @OpenAI Would be more impressive without paying for the usage of each line of code and getting the same quality

  • Hunter 的头像

    @shuziyano

    @livekit @AssemblyAI @OpenAI Can you do one with real time api? Setting up web sockets is a pain.

  • Sri Cherukuri 的头像

    @sricherukuri22

    @livekit @AssemblyAI @OpenAI Cool. I work on similar voice agents but for telephony calls. I use the following: Amazon Connect Deepgram ElevenLabs

  • Musu Priyam MP 的头像

    @MpMusu46517

    @livekit @AssemblyAI @OpenAI One question. How do you test it when at scale? Even I thought there is no end-to-end testing platform, but I've been using this simulate app for the past few weeks by future agi. As an AI developer, I can tell this is immensely helpful.

  • JoshSato 的头像

    @josh_sato124

    @livekit @AssemblyAI @OpenAI 70 lines is wild. the brain part is always the coolest when it just clicks like that.

  • Himanshu Kumar 的头像

    @codewithimanshu

    @livekit @AssemblyAI @OpenAI Impressive, esp for 70 lines.. Consider fine-tuning the speech-to-text model, tho.. Unlocks smoother, more natural interactions often overlooked..

  • Wade Watts 的头像

    @wadeowenwatts35

    @livekit @AssemblyAI @OpenAI Your AI needs more character. At least have a pirate accent.