DEV Community

Cover image for Build your own personal SIRI with LLAMA-3 like a PRO! 🧙‍♂️ 🪄

Build your own personal SIRI with LLAMA-3 like a PRO! 🧙‍♂️ 🪄

Shrijal Acharya on October 17, 2024

TL;DR ✨ In this easy-to-follow tutorial, you will learn how to build your own voice assistant Siri with the LLAMA-3 AI Model. 😎 What yo...
Collapse
 
shekharrr profile image
Shekhar Rajput

Wow, quite a long article it is. Bookmarking this for later. I don't think you need to have Ollama or anything else locally right?

Collapse
 
shricodev profile image
Shrijal Acharya

Yeah, you don't need Ollama for this project. Groq handles all this itself.

Collapse
 
durk1s3 profile image
Durki Sertu

highly documented code. I love working in Python and this is a gem to come across. We have a smaller team of python devs at recontech I would like people this great on code and documentations in our team. Good job

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you for your kind words, @durk1s3. :)

Collapse
 
durk1s3 profile image
Durki Sertu

Why is fortnite llama icons in the cover?

Collapse
 
shricodev profile image
Shrijal Acharya

Couldn't find a better llama icon to use in the cover 😂

Collapse
 
angelotheman profile image
Angel Oduro-Temeng Twumasi

Just starred the project. This is great

Collapse
 
angelotheman profile image
Angel Oduro-Temeng Twumasi

Oh and by the way, your README.md is really nice.

How did you write it?

Collapse
 
shricodev profile image
Shrijal Acharya

For the badges on top of README, I used img.shields.io. For the tree structure in the Project Structure section, I used a tool called eza with the following command:

eza --tree --level=2
Enter fullscreen mode Exit fullscreen mode

I hope this helps. 🙌

Collapse
 
shricodev profile image
Shrijal Acharya

That's great. Thank you 🤗

Collapse
 
bh4skar profile image
Bhaskar Prajapati

Hey bro, why have you added the functionality to take webcam image capture and clipboard text capture?

This is a great-written piece. 😍

Collapse
 
mukesh_singhania_1992 profile image
Mukesh Singhania

I am not sure about the webcam capture but I guess with the clipboard text capture, you can ask questions about the text you copied. Something like "Hey, I have a few paragraphs of sentences copied on my clipboard, can you summarize it?"

Collapse
 
aayyusshh_69 profile image
Aayush Pokharel

@mukesh_singhania_1992 I have not read the blog completely, but that seems to be the main use case.

Collapse
 
shricodev profile image
Shrijal Acharya

@mukesh_singhania_1992, you're correct about the usage for clipboard text capture. Your clipboard text can contain any form of text, such as code or, as you suggested, a paragraph.

Collapse
 
syed_hasanshoaib_aec6f40 profile image
Syed Hasan Shoaib

Nice work 👍 Do you think you could make a

AI sales caller? But without twillo or it's API cause it's expensive.

Collapse
 
shricodev profile image
Shrijal Acharya

@syed_hasanshoaib_aec6f40 I'm not sure about this. We could definitely try!

Collapse
 
mannuelf profile image
Mannuel

Wow excellent article and creative idea to actually do something with llama 👏

Collapse
 
shricodev profile image
Shrijal Acharya

I had been really curious to build something like this for a long time, probably around 3–4 years. When I was starting out with Python, I built something that I called AI, which was essentially a bunch of if-else statements. 😅

You can find the repo here: github.com/shricodev/VoiceAI

Now, with LLAMA, I decided to give it one last shot, and it worked out. 😃

Glad you liked it, @mannuelf 👋

Collapse
 
andrew_larkin profile image
Andrew Larkin

nice work and well described

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you, Andrew! 😃

Collapse
 
franco_jacobo_25aa0405a87 profile image
Franco Jacobo

Good article man

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you, Franco!

Collapse
 
codestr8 profile image
Alexander ndunda

This is amazing work.Thank you for sharing

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you, @codestr8 🙌

Collapse
 
aavash_parajuli_72 profile image
Aavash Parajuli

Bro this is a top notch well written article. Kudos to you.
Would you mind if I share the post on my socials? I will make sure to credit you as the author.

Collapse
 
shricodev profile image
Shrijal Acharya

Feel free to share, buddy!

Collapse
 
jose2004_oakland profile image
Jose Harbert

Good article, @shricodev 😇

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you, @jose2004_oakland

Collapse
 
sirelli profile image
Jerount

Cool article, I'll send it to my friend.

Collapse
 
shricodev profile image
Shrijal Acharya

Glad, you liked it! @sirelli 👋

Collapse
 
arittrabag profile image
Arittra-Bag

Great Article & Nice Approach to do this without any local dependency...

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you, @arittrabag. I'm glad you liked it. 😁

Collapse
 
larastewart_engdev profile image
Lara Stewart - DevOps Cloud Engineer

Great read, Shrijal. I make sure to read most of your posts—they are always on point. You’ve got a follow from me.

By the way, could you share how you create your cover images? I'm working on a new blog post and struggling with a cover. Your recent cover images look so appealing.

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you, Lara! 😃

Collapse
 
ifiok_akpan profile image
Ifiok Akpan

This is well documented 👍. I am a beginner on python language and this project give me more insights. Can this installing error stop the code from running and how can I overcome it.

Error:
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyAudio
Failed to build PyAudio
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyAudio)

Image description

Collapse
 
shricodev profile image
Shrijal Acharya

@ifiok_akpan portaudio seems to be the dependency for PyAudio. Try installing portaudio manually and let me know if it helps.

brew install portaudio
Enter fullscreen mode Exit fullscreen mode

Ref: stackoverflow.com/a/33821084

Collapse
 
buzzpy profile image
Buzzpy 💡

Now that's a great long article! Wish everyone would write tutorials like this. Bookmarking for later! 👏

Collapse
 
shricodev profile image
Shrijal Acharya

Thank you so much, @buzzpy 🤗