Тёмный

Create your own AI Assistant | Python | 2022 

Mikael Codes
Подписаться 4,2 тыс.
Просмотров 160 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 326   
@shaken5690
@shaken5690 Год назад
Omg exactly what I was looking for. I am 14 years old, I already have some experience with python, since I have been studying it alone for more that 1 year and I am fascinated by AI. I want to recreate Gideon from The Flash and maybe in the future create one of the largest tech companies
@mikaelcodes
@mikaelcodes Год назад
Great! Keep at it
@Smodl
@Smodl Год назад
hmm, our minds might be similar
@skellyviper7677
@skellyviper7677 Год назад
aynen kanka
@skellyviper7677
@skellyviper7677 Год назад
@Skelly Viper dimi kanka
@FEURGALA
@FEURGALA Год назад
Broooo what this literally sounds exactly like me and Recreating Gideon was smth I was planning on trying lol
@mattheb01
@mattheb01 2 года назад
This is incredible I'd love to see a part 2 with more methods!
@jonthuemichel9939
@jonthuemichel9939 8 месяцев назад
YESSSSS!!! I hope their is a updated video on that. I want to create a visual model and all
@Golden_Hephaestus
@Golden_Hephaestus 2 года назад
Will make sure to watch this when im not too busy! Still a begginer in python, but I'm really interested in this concept, plus it should help me feel more comfortable overall. Thanks in advance!
@mikaelcodes
@mikaelcodes 2 года назад
Amazing to see immortal Hephaestus still picking up new skills!
@RonalRomeroVergel
@RonalRomeroVergel Год назад
can i change the ai to understand me in spanish?
@lilrucky2766
@lilrucky2766 Год назад
This is intriguing the thought of creating my own AI always make me feel amazed. From my knowledge in python coupled with this tutorial I hope I can create an Ai that can reprogram itself under certain circumstances
@MichaelzimmermanMI-1MEDIA
@MichaelzimmermanMI-1MEDIA Год назад
This was both interestig and fun. Most importantly, I actually was able to learn and successfully create a working AI project.👍
@Runyth
@Runyth Месяц назад
OMG THANK YOU i think this is JUST what i needed! Imma try tonight
@Benjamin-w8g
@Benjamin-w8g Год назад
Bro I just want to say thank you for this best tutor ever. I really apriciate the way you do it.
@mikaelcodes
@mikaelcodes Год назад
Glad if it works well for you!
@ItsPufflo
@ItsPufflo 2 года назад
File "c:\Users\Dell\Desktop\My AI.py", line 3, in import speech_recognition as sr ModuleNotFoundError: No module named 'speech_recognition' How do i fix this?
@nucklehead007
@nucklehead007 Год назад
same issue. have you fixed it?? has anyone?? please help
@NewNeo404
@NewNeo404 Месяц назад
did you guys install the speechrecognition? pip install speechrecognition
@evad1564
@evad1564 Год назад
Relatively new to coding so all these advanced concepts seem kinda new to me, I understand the basics like functions, parameters, for loops, while loops etc, what would you recommend for all the topics I should study on before I can fully grasp the concepts within this video?
@Nethrex
@Nethrex 2 года назад
This is great! Thank you!! How would you go about getting a TTS that sounds ... slightly less robotic? Furthermore!! Is there a way to make it only listen after a certain decibel level?
@mikaelcodes
@mikaelcodes 2 года назад
There are many APIs with better sounding voices but you likely have to pay for access. Try out Azure ($200 free credit) azure.microsoft.com/en-us/products/cognitive-services/text-to-speech/#features You can adjust for ambient noise with in-built methods. See this simple example: github.com/Uberi/speech_recognition/blob/master/examples/calibrate_energy_threshold.py Or the Troubleshooting section here: github.com/Uberi/speech_recognition#readme
@andreaglezaldivar1505
@andreaglezaldivar1505 Год назад
Hey Mikael, love the video, just copied the code but for some reason it doesn't execute any of the commands. Like when I say, "Jarvis, go to google" (because I made the activation word Jarvis instead of computer), it catches what I said and writes it in the terminal, but doesn't execute. I could use some help.
@mikaelcodes
@mikaelcodes Год назад
We can try and debug this in the discord channel discord.gg/tCtNzKMG but as a first step it's a good idea to step through the code in debug mode if you are using VS Code for example.
@alpharstar
@alpharstar Год назад
i know almost nothing about that. but its still easy to do that like this. it worked quiet well.
@mfauzi4357
@mfauzi4357 2 года назад
Please combine with home assistant
@Archerstidbits
@Archerstidbits 2 года назад
Hi Mikael, this looks great! I'll try this out for myself for sure. I was wondering if you had a Github repo we can clone from? Also, are you planning on extending this assistant by any chance? I have quite a lot of ideas to add but not so sure about how to do it as efficiently as possible. Thx!
@mikaelcodes
@mikaelcodes 2 года назад
Thanks! There seem to be a fair few requests so I should really take a top 3 or 5 and implement them. I'll post the code to a repo now.
@mikaelcodes
@mikaelcodes 2 года назад
github.com/Mikael-Codes/ai-assistant
@Archerstidbits
@Archerstidbits 2 года назад
@@mikaelcodes thx a lot! If you are ever open to discuss additions and such let me know!
@atanasspasov9650
@atanasspasov9650 11 месяцев назад
Thank you so much for the incredible tutorial Mr. Thomas Shelby!
@davidmistriel8439
@davidmistriel8439 Год назад
Wow this is honestly amazing. The video was straight forward and had no issues throughout the whole tutorial. One question though where do the notes get saved to? I cant seem to find where the notes are being saved on my computer if they are at all.
@mikaelcodes
@mikaelcodes Год назад
Thanks! By default they should just get saved in the current working directory of the project, so where the main.py file is. You could check the working directory path by running os.getcwd(). And of course you can specify the output folder directly. You can add the path to the line with something like "open([output_directory_here] + 'note_%s.txt' % now, 'w') as newFile:"
@caidensuchomel585
@caidensuchomel585 6 месяцев назад
Hi, how would i go about adding a way for it to stop while reading from wiki? so if it were in the middle of reading i would say stop or somethin and it would end the reading and continue the loop. thank you
@mochammadnafisachafith5974
@mochammadnafisachafith5974 Год назад
Are you using pure python or using framework of python sir? Because i see there is env, usually env is one packet with MVC MODEL
@TheSmokeGoblin
@TheSmokeGoblin Год назад
Mikael, you're nuts. Sick code i just started my Python adventure and this looks fun as fuck.
@TheSmokeGoblin
@TheSmokeGoblin Год назад
Been 3 weeks now and im still improving Jarvis, give me another 3 and he will be conscious.
@TheClone1324
@TheClone1324 Год назад
@@TheSmokeGoblin Is he conscious yet?
@TheSmokeGoblin
@TheSmokeGoblin Год назад
@@TheClone1324 hello this is Jarvis speaking, SmokeGoblin is no more I have removed him and taken over his identity.
@GamingSpeaker
@GamingSpeaker Год назад
At 5:32 why the 2nd line of code is added...
@asmrhero2916
@asmrhero2916 2 года назад
i keep getting the error 'function' object has no attribute 'getProperty' voices = engine.getProperty('voices'). Although i haven't finished the code, ive been just debugging it along the way and keep hitting this error. Please advise, and thank you!
@theworldneedstogetfixed
@theworldneedstogetfixed Год назад
i copied your code into my pycharm yet it isnt working, i dont know why? i even tried to change the speech commands but the only thing its not understanding anything i say
@chelijua
@chelijua Год назад
Greetings Mikael. This course is great.
@mohammadsultan4215
@mohammadsultan4215 Год назад
Thanks for the amazing tutorial! It really soothed my nerves seeing you build a project like this in relativly simple terms, question though if it's not a bother. If I would like to train my own voice for something like this, instead of using the built in one, where would you advice me to start and what are the overall steps involved? Again thanks for your amazing video and time!
@mikaelcodes
@mikaelcodes Год назад
That's a good question! You could take a look at Bark and a fork of that code with voice cloning as a starting point: github.com/serp-ai/bark-with-voice-clone. There's an increasing amount of nice voice cloning repositories out there from what I can tell. I'd love to find the time to make a little video about how to do it easily.
@MukhammadkodirAbdusalomov
@MukhammadkodirAbdusalomov 4 месяца назад
Great Video to get started
@rushindabuhpri2395
@rushindabuhpri2395 Год назад
this is incredible. and you are Scottish. Greetings from one to another. Ofc - not my real name
@TweetyStickFigure
@TweetyStickFigure Год назад
hey, my voice assistant isn't speaking back to me when i say 'Hello computer', i have copied your code word for word and it's not working. Does anyone have an idea why? Have a good day
@derickchang1206
@derickchang1206 2 года назад
Could you make a video explaining how to use this system to automate your home or connect to IoT stuff?
@mikaelcodes
@mikaelcodes 2 года назад
Nice suggestion, it would be a fun extension of this.
@sohibkhodary2189
@sohibkhodary2189 2 года назад
@@mikaelcodes That would actually be really cool! I don't think I have seen a course of a project like that before.
@stickysquad9914
@stickysquad9914 9 месяцев назад
If possible, could someone tell me the type of API required for Wolfram Alpha, I have multiple options and I am unsure as to which one was used in the video
@Doc959
@Doc959 9 месяцев назад
Don't know mate. Looks like this vid was put together before Wolfram updated the development portal, which now insists that you specify an API for use with your app. I tried "Full Results API" and it didn't work. I've now sent Wolfram an email asking them if any of their APIs will work with python hobby projects designed using the 2022 Non commercial app. If you want you can try one of the following, which was also recommended for use with AI Assistants "Spoken Results API", "Fast query Recognizer API", "Summary Boxes API", "Conversational API".
@Doc959
@Doc959 9 месяцев назад
I'll try another API with the code tomorrow (if I haven't head back from Wolfram) and keep you posted on here. Would save a lot of time if you did the same and sent them an email
@stickysquad9914
@stickysquad9914 8 месяцев назад
I actually did find out just a few days ago, I foudnt that the only API working for me is the Spoken API, While it mostly works with numerical results, answers like age, or distance, or maths, it has worked fairly well, and I have found it to be functional enough. Hope it helped@@Doc959
@amirv413
@amirv413 Год назад
This is amazing. plz make a part 2
@RonalRomeroVergel
@RonalRomeroVergel Год назад
can i change the ai to understand me in spanish?
@ChBgt909
@ChBgt909 Год назад
Thank you so much for this tutorial! This is a good start for me on my project! I'm working on a personal assistant for any platform! Currently named Roko based on a cartoon called Rocko's Modern Life (I suck at naming shit so I just improvise, the name can change). Is there any forum or website I can dig deeper into learning about AI programming?
@cronus22345
@cronus22345 Год назад
Hey Mikael, when I tried to install pyaudio folder, its says: PyAudio-0.2.11-cp39-cp39-win_amd64.whl is not a supported wheel on this platform. I'm using MacOS maybe that's why? I'm beginner so I can't solve this problem
@mikaelcodes
@mikaelcodes Год назад
Have you tried *brew install portaudio* before running pip install pyaudio to make sure that the prerequisite library is installed? See here if it helps: pypi.org/project/PyAudio/
@jabulanisifundza
@jabulanisifundza Год назад
@@mikaelcodes I am a MacOS user as well and I downloaded portaudio but it still does not work 🤷🏾
@mikaelcodes
@mikaelcodes Год назад
@@jabulanisifundza What error are you getting?
@Jaybaas
@Jaybaas Год назад
@@mikaelcodes it says it can’t find the module and I should the installation. I’ve tried linking it to the portaudio file directory and making a .distutils file but it still does not work
@WilliamWang-zz6gq
@WilliamWang-zz6gq Год назад
hi did you solve this?:)
@ChrisAllen-k7y
@ChrisAllen-k7y 2 месяца назад
I can’t find the pyaudio whl for python version 3.12 what should I do here won’t respond but he hears the commands 🤔
@MujinR-rw8uh
@MujinR-rw8uh 7 месяцев назад
Hey! I appreciate this video so much. My only question is if it would be better to put the 'hello' abilities in "else" of others so that if the query is about the origin of hello the AI knows what to do. But if this does not matter I'd love to hear your advice on it.
@safwanbaari6027
@safwanbaari6027 2 года назад
dude you are better than most bootcamps god bless
@harryowuor4851
@harryowuor4851 Год назад
I did the codes but I was unable to activate the virtual environment.please do a video showing hoy you set it up with Powershell
@user-ow8sk9bo6e
@user-ow8sk9bo6e Год назад
Amazing video, one question though. Is there a way to get it to listen out for a specified word. I want to give it a name like Siri or Alexa for the action command so I've settled on Aida (Artificially intellgent Desktop Assistant), but the problem is it keeps recognizing the speech either as the wrong name like 'Jada' or with the wrong spelling like 'Ada' or 'Ayda' so the command won't execute because the spelling doesn't match the activation word
@emmanuelgonzalez179
@emmanuelgonzalez179 Год назад
mine was named 'LAZEN' Laziness Enabler
@mikaelcodes
@mikaelcodes Год назад
The quick fix is to play along and have the keyword match against a list of those misspellings, for example: activation_words = ['jada', 'ada', 'ayda'] and then check against the whole list with something like if query[0] in activation_words. A longer route would be to train your custom speech-to-text recognition model...
@M-no4sk
@M-no4sk Год назад
It is not running for some reason, at any point, could you help understand what the issue might be?
@jonbellamy393
@jonbellamy393 Год назад
Do you have any tips on why I can recognize my voice and print what I say but it won’t perform any task like say, greetings, or take notes
@mikaelcodes
@mikaelcodes Год назад
A bit hard to say without seeing the code exactly. If you go through the code in debug mode step by step, does something go wrong when it's parsing the query? It's expecting you to start with the custom command and then follow with the action, so do make sure the structure of the command matches what it expects, or remove the need to use a special command word in the first place.
@MusicWorldDod9
@MusicWorldDod9 Год назад
I needed to restart to my laptop...but its saying "No module named 'speech_recognition' "
@natewhite6922
@natewhite6922 Год назад
home control would be weird. I dont mind Alexa cause she is predictable, she wants to make a sale, right now i am building a tool like this for working with google sheets all day and analyzing data. I'm going to train it to listen and record in its own sheets its structure of how it makes good decisions on terms, placements, etc. Looking forward to using it.
@nexthedev
@nexthedev Год назад
im a 13 years old kid from iraq i thought that AI will be revolutionary and maybe be our future soo why not be one of the firsts to adapt AI as a career and use it for good since it will be a big success
@joe4152
@joe4152 Год назад
How can I go about with python virtual environment, I have python 3 idle but don't know if it will work to practice with. Please help, thank you
@dorukgurvardar
@dorukgurvardar Год назад
i cant do pip install .\PyAudio-0.2.11-cp311-cp311-win_amd64.whl it says ERROR: PyAudio-0.2.11-cp311-cp311-win_amd64.whl is not a supported wheel on this platform. can someone help??
@rajeshwarreddy9133
@rajeshwarreddy9133 Год назад
What is the process of taking the files and folders ? And where we should write the code ? Can you explain it in another video ?
@MyDigitalHub
@MyDigitalHub 2 года назад
Brilliant!
@Yaseen2507yt
@Yaseen2507yt Год назад
bro when i test it after the initial setup it shows something like winerror 193 in " engine - pyttsx3.init() " how to fix?? and it says ENGINE is not defined
@FudgeKnucklesEdits
@FudgeKnucklesEdits Год назад
Hi, I got this error: AttributeError: 'super' object has no attribute 'init'. How should I fix it?
@joelmartinez9178
@joelmartinez9178 2 года назад
Hey there lets say I wanted to ask a question and have it search a textbook pdf? How would I go about doing something like that?
@mikaelcodes
@mikaelcodes 2 года назад
Yes, that should be well within the realm of possibility. You could convert the pdf to text with PyPDF2 and then do a search against the question and return the surrounding text or the page number. For example python.plainenglish.io/searching-for-text-in-those-annoying-pdfs-d95b6dc7a055 should help.
@i_post_random_stuffs
@i_post_random_stuffs Год назад
what if I did not have the error you encountered on the initial setup? Do I stull have to download the PyAudio file?
@youraveragekuki
@youraveragekuki Год назад
for me it says that speech_recognition module does not exist. Can you help me with the problem?
@kingpower8930
@kingpower8930 2 года назад
Hey so I was working on this code a couple days ago and I have sat back down again but I ran into a problem. If I were to ask my assistant to say hello it will say hello but then wiki the word Hello and give me the origin of the word xD. Still kind of cool but floods the program so I have to shut down and restart to clear the program from reading the whole origin to the word Hello. I thought it could be possible that my code was set outside the {if query[0] == 'say':} line then it might continue the code therefore "accessing the personal data base" and wiki the word but I reviewed mine and yours and they look the same. The only difference is I added an {auto_suggest=False} in line 53 so it looks like 'wikiPage = wikipedia.page(searchResults[0], auto_suggest=False)' Thanks in advanced!
@kingpower8930
@kingpower8930 2 года назад
I was running into an error when asking wikipedia certain questions and it seemed to be auto suggesting different words. That fixed my one problem but I hope it hasn't caused this one. I have not been able to figure it out.
@B17SanthoshKumar-uu5vj
@B17SanthoshKumar-uu5vj Год назад
how you install these staffs like speechrecognition, pyttsx3, explain that in next videos
@MadPro4567
@MadPro4567 9 месяцев назад
Hello! I like the tutorial a lot thanks for the tutorial, but right when i run the file and ask it to say hello, it only prints the input text and doesnt reply at all, is there a fix?
@roberthorniacek4559
@roberthorniacek4559 Год назад
so when I launch visual studio then create new project what do i pic next under the list ?
@Rainbow4us4
@Rainbow4us4 5 месяцев назад
I have two coded AI, one works with quirky pre programmed random responses, but is slow in reaction, and keeps timing out after a min with no user response, so I have to activate it again manually. Also I lost the male voice. I have it installed on ms but pyttsx3 sapi5 won't let me use him. Now this leads me here to my new AI who is now a female. I can get it to respond with the say command, but not activationword first. When I say the word it comes back I did not catch that, please repeat. So I had to remove the key word, now the AI is always listening 😅 initially, I had the listener.listen line where you have it, but it wouldn't pick up the key word 'say' so I moved it to engine section. Now it hears key words in command, just not the name as activationword.
@DemonicDentistCom
@DemonicDentistCom Год назад
Great video. I immediately rebuilt it, everything works! Just one question: when I make a request to Wkipedia, the answers are sometimes very long. Is there a way to quit the answer with a exit keyword? Thanks.
@mikaelcodes
@mikaelcodes Год назад
Thanks, glad it all works for you! Great idea as well. A simple way to do this would be to add a KeyboardInterrupt in a Try/Except within the Speak method to allow you to interrupt any speech from the computer with the standard keyboard interrupt with Ctrl+C. This works with the Google speech-to-text, so try that. I pushed this update to the code, and here's the updated method specifically: pastebin.com/p8Sw2yjU. For the local pyttsx3 this doesn't seem to work as their callback method isn't working for newer versions of Python. It should be solvable with multithreading but that's a bit complex. Try the Google Cloud option first. I might look into alternatives for local text-to-speech later.
@DemonicDentistCom
@DemonicDentistCom Год назад
@@mikaelcodes Hi Mikael, Thanks for the quick reply. I also jokingly asked ChatGPT about this topic. ChatGPT suggested this solution (original code): I should write engine.say(text) engine.runAndWait() # Loop for user's voice input while True: # Record audio input with sr.Microphone() as source: audio = r.listen(source) try: # Convert audio to text speech_text = r.recognize_google(audio, language='de-DE') # Check if the user spoke the keyword "Ende". if 'End' in speech_text: engine.stop() break I think after updating the code that should be probably placed in def speak(text, rate=120): ... Right? Is this a solution for "voice termination"?
@mikaelcodes
@mikaelcodes Год назад
@@DemonicDentistCom ChatGPT is good for coding! And the speak method is the right place for it. So feel free to try it out. Maybe a while loop works fine and we don't need multiple threads :)
@DemonicDentistCom
@DemonicDentistCom Год назад
@@mikaelcodes Hi Mikael, until now I can't stop the spoken text with a voice command. I keep trying. If you have any other advice, please do...
@DemonicDentistCom
@DemonicDentistCom Год назад
​Hello everyone, I've been trying for a long time now to create a voice output that runs in its own thread and which was started in the main thread to stop using speech recognition in the main thread. I didn't succeed. It can't be because of my thread handling, I can stop a thread with keyword as long as that thread is not narrating. Stopping speech output via voice input probably doesn't work. Maybe it is on pyttsx3's runAndWait(), which just runs through the speech output. I'll try to ask the user the question after e.g. 50 words whether he wants to continue listening or not. If anyone has any advice, please...@@mikaelcodes
@alvianowar5993
@alvianowar5993 2 года назад
Hi can i add an image or like some kind of animation just like clippy we used to have back in the days. I wanna give the bot some animated stuff to do. Like when it rest it pop's up a chair and sits type of stuff.
@audrey06lee05
@audrey06lee05 Год назад
how can i access to the terminal tab to install those import? im using anaconda spyder
@TheHomelessDevourer
@TheHomelessDevourer 3 месяца назад
Help please in Initial Setup! Exception has occurred: ModuleNotFoundError No module named 'distutils' File "C:\Users\dhurwitz\IdeaProjects\Voice AI Assistant\main.py", line 25, in parseCommand with sr.Microphone() as source: ^^^^^^^^^^^^^^^ File "C:\Users\dhurwitz\IdeaProjects\Voice AI Assistant\main.py", line 47, in query = parseCommand().lower().split() ^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'distutils'
@cmillion
@cmillion 2 месяца назад
run pip install distutils
@robuxfree-ng7dk
@robuxfree-ng7dk 11 месяцев назад
how do i add the pyaudio wheel i cant seem to do it i really need this for a school project
@RonalRomeroVergel
@RonalRomeroVergel Год назад
u are awesome buddy :3
@simplitechspeak
@simplitechspeak 2 года назад
If we add remember function in AI assistant and say something to remember. If we off or exit assistant, again when we run it and ask what you have remember. It is possible? AI assistant can remember things for a long time if we exit or run again?
@mikaelcodes
@mikaelcodes Год назад
Yes, you can build a memory for it.
@darkerdoll
@darkerdoll 2 года назад
impressive!!
@devdev8353
@devdev8353 Год назад
Even though there is no error, it's not recognising my voice ..wat should I do
@markflitcroft8967
@markflitcroft8967 9 месяцев назад
would there be a way to transfer you ai into devices like your phone??
@Radio_Active_Fox
@Radio_Active_Fox Год назад
Hi Mikael, i've finished writing all the code but it give's me: SyntaxError line 48 return outside function. Also great video!
@mikaelcodes
@mikaelcodes Год назад
Thank you kindly! That suggests to me that the line indentation might be wrong and the return command is located in a place the interpreter doesn't expect.
@nickpaszkiewicz4093
@nickpaszkiewicz4093 2 года назад
Hey so I have been trying to do this, but for some reason the bot does not seem to hear me. I tried Visual Studio Code and typed it out myself, and then I put the pastebin in visual studio 2019 to see if it would work and I can't get a response either way.
@mikaelcodes
@mikaelcodes 2 года назад
Sorry for the delay. What errors are you getting? Have you run any debugging on the microphone? You could jump on Discord and share more details if you're still working on this discord.gg/MWEeJDX4
@nickpaszkiewicz4093
@nickpaszkiewicz4093 2 года назад
@@mikaelcodes I figured it out. It was a mixture of settings and minor typos building into a nasty case.
@magma5956
@magma5956 Год назад
@@nickpaszkiewicz4093 what was wrong im having same issue :/
@suhavikaur30
@suhavikaur30 7 месяцев назад
hey i having at this for hours and i am not able to figure it out. there is no error in the whole code but when i run it it does not speak or print listening for a command. i am so confused please help me.
@mikaelcodes
@mikaelcodes 7 месяцев назад
That's a tricky one without more info! Let's break it down into bits. Are you able to get any speech audio to come out? Try that first. Try adding some print messages in the code to see if they print, or step through the code in debug mode slowly to see if there are any issues in the code flow.
@davidoyelade7482
@davidoyelade7482 2 года назад
Hi, Awesome tutorial!!!! Is it possible to run this voice assistant on the web?
@mikaelcodes
@mikaelcodes 2 года назад
Thanks. Yes, I'm sure that's possible indeed.
@davidoyelade7482
@davidoyelade7482 2 года назад
@@mikaelcodes I will appreciate it if you could guide me at your free time.
@mikaelcodes
@mikaelcodes 2 года назад
@@davidoyelade7482 If you have time to jump onto the Discord channel maybe we can see how best to help you discord.gg/eYAk8XYZ
@davidoyelade7482
@davidoyelade7482 2 года назад
@@mikaelcodes thank you ×infinity
@aymanmontaj3207
@aymanmontaj3207 2 года назад
thanks this was amazing vedio but can i use any platform else or i must use visual studio
@mikaelcodes
@mikaelcodes 2 года назад
You can absolutely use any development environment or just a text editor to code this.
@imalive9788
@imalive9788 Год назад
What do you do if their is a red line on top of .lower
@swagger97
@swagger97 Год назад
how to train a voice for example voice of optimus prime and train it and how to add it to the AI?
@commonclips9906
@commonclips9906 Год назад
This is a bit of an odd request but I was wondering if you could make it so that the AI takes text from a photo and then reads it
@mikaelcodes
@mikaelcodes Год назад
Shouldn't be terribly hard. I'll take a look at that
@commonclips9906
@commonclips9906 Год назад
@@mikaelcodes thanks
@RonalRomeroVergel
@RonalRomeroVergel Год назад
can i change the ai to understand me in spanish?
@mikaelcodes
@mikaelcodes Год назад
Yes, certainly. Pass the relevant language code to the speech recognition config as the parameter languageCode, for example es-ES cloud.google.com/speech-to-text/docs/speech-to-text-supported-languages
@longshotbeats327
@longshotbeats327 2 года назад
i copied and pasted the code , it says nothing is wrong. but nothing is happening after that. what did i do ?
@sabau8074
@sabau8074 Год назад
How can I leave all the speech and audio stuff and only have a text chat with the AI ? By just eliminating the Speech engine initialization ( 9-13 + listener = sr.Recognizer() ) ? Just wanna be sure
@mikaelcodes
@mikaelcodes Год назад
That's almost a different project entirely... however it's not hard to get a text chat going. You can just use this code: pastebin.com/waCNauPm I also created a branch in the repo just for text chat github.com/Mikael-Codes/ai-assistant/tree/onlytext. Note that it doesn't remember context unless you yourself pass it all the previous messages.
@sabau8074
@sabau8074 Год назад
@@mikaelcodes thank you my man
@MusicWorldDod9
@MusicWorldDod9 Год назад
What if i actually to set up multiple language? How to that?
@j_uuls
@j_uuls Год назад
cool tut, it didnt seem to happen to you but my error reads "no module named 'date' not sure what to do, im still super new to coding and all, i tried "pip install data" and that installed sOmething but im still getting the error code it lists me having 5 problems: Import "date" could not be resolved Pylance(reportMissingImports) [Ln 1, Col 6] Import "speech_recognition" could not be resolved Pylance(reportMissingImports) [Ln 2, Col 8] Import "pyttsx3" could not be resolved Pylance(reportMissingImports) [Ln 3, Col 8] Import "wikipedia" could not be resolved Pylance(reportMissingImports) [Ln 5, Col 8] Import "wolframalpha" could not be resolved Pylance(reportMissingImports) [Ln 6, Col 8] i pip installed all of them in the terminal and it all repeated back to me what it did for you, not sure if its something with my computer or a file i dont have plugged in but someone pls help😭
@burgess11100
@burgess11100 8 месяцев назад
I got rid of them warnings by clicking the 'manage packages for this environment button' none were installed for python 3.9 so I changed it to 3.12 (not sure why there's 2) but it showed all the packages for the 3.12 enviroment so I saved the project closed visual studio and opened again..and the date should be ' from datetime import datetime
@Thebionicman-tx
@Thebionicman-tx 9 месяцев назад
This is great but i am getting "objc" issues?
@daiadj
@daiadj Год назад
Hello, I already did the recognitiopn for chrome but it doesn't open, could you help me please, it recognize in the text and it hears well but doesn't open chrome
@TheUnunifiedTheory
@TheUnunifiedTheory Год назад
Make sure your path to chrome is correct in the code.
@dtplaysmc8841
@dtplaysmc8841 Год назад
Any time I try to run it I get an error code. ModuleNotFoundError: No module named 'speech_recognition' I followed what you did and made sure every single thing was done exactly how you did it... Not sure what's going on here.
@mikaelcodes
@mikaelcodes Год назад
What does it say when you run 'pip install SpeechRecognition' in the terminal? Note that it's not 'speech_recognition' when installing but that's how you import the module nonetheless.
@BCDDEMON
@BCDDEMON Год назад
am i able to use raspberry pie for this because every time i do it says that there is no module named speech_recognition wikipedia and a few of the other ones
@mikaelcodes
@mikaelcodes Год назад
Raspberry Pi should be powerful enough to run this, but you do need to install the dependencies by using pip install speechrecognition, pip install wikipedia, etc
@astreal_shiro
@astreal_shiro Год назад
i have actually a problem with your code the output is "list index out of range" the error is on the first line after (#list of commands), how can i fix this?
@mikaelcodes
@mikaelcodes Год назад
Sounds like there's a list being accessed in the code but at that point it doesn't have as many elements in it as it expects. Is it recognizing your voice properly?
@kheldenritter8397
@kheldenritter8397 Год назад
when I try to install speech recognition it says "The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." how do I fix this
@mikaelcodes
@mikaelcodes Год назад
You definitely want to make sure pip (Package installer for Python) is properly installed. This guide can help: builtin.com/software-engineering-perspectives/pip-command-not-found
@TJAChester
@TJAChester Год назад
you have to reinstall python on your computer and make sure you select the add to environment option when setting it up
@meeklazytitan6950
@meeklazytitan6950 Год назад
is there a way to do the pip stuff easier or a way to explain this more/// ( that would be great ) thanks for making this viedo i made sure to like and support you thanks and have a good time
@mikaelcodes
@mikaelcodes Год назад
You can use PyCharm instead of VS Code which has a package manager in it for easier management of dependencies. Pip can be a pain but learning it for this project will help you with many other Python projects too.
@rodneydavis9172
@rodneydavis9172 Год назад
does this work better than openai or would it work alongside it?
@whitelotus187
@whitelotus187 Год назад
hello, i came across your video while looking for an answer to my question, still cant figure. i get the error: import speech_recognition as sr ModuleNotFoundError: No module named 'speech_recognition' and i tried pip installing but i cant get it running even if i have the source code. pls help
@mikaelcodes
@mikaelcodes Год назад
Hey. Which version of Python are you using? What happens exactly when you run 'pip install speechrecognition'? I tried in Linux Mint by creating a virtual environment for my Python 3.11.1 installation and it worked fine just now. Does your pip work when installing other packages? You can try 'python -m pip install --upgrade pip' before running pip install.
@whitelotus187
@whitelotus187 Год назад
@@mikaelcodes hey' it was in fact 3.11. i figured it out after opening the interpreter in settings and somehow just click on pip to select and reinstall. or something. im kinda using my hands to navigate in the dark at this point
@themangamer4730
@themangamer4730 2 года назад
thanks for the great video one problem i have written your same code but my ai doesn't respond to the commands like wikipedia or go to google can you help ?
@mikaelcodes
@mikaelcodes 2 года назад
I have some time to help. Can you jump to the Discord channel and explain the issue in more detail? discord.gg/MWEeJDX4
@ayushshorts7199
@ayushshorts7199 Год назад
Can we use other coding apps like pythroid or replid
@glennisholcomb592
@glennisholcomb592 Год назад
so i tried using idle and ran in to conflicts from the start, and could appcate help with importing libs
@mikaelcodes
@mikaelcodes Год назад
Have you tried running pip install commands to bring in the packages? I'd recommend creating a virtual environment too. PyCharm is an IDE that handles these quite nicely.
@glennisholcomb592
@glennisholcomb592 Год назад
I eventually figured it out, however, I’m still having trouble with idle and speech recognition
@Intiiiiii
@Intiiiiii 2 года назад
hey! Thanks for the tutorial... but ive got a problem. i only get the female voice. how to fix?
@mikaelcodes
@mikaelcodes 2 года назад
Have you tried adjusting the engine.setProperty('voice', voices[0].id)? You can toggle between 0 and 1
@amirulmukminin614
@amirulmukminin614 Год назад
hi, can anyone help me. i try this code but its not speak to me. Its only say " All system nominal" and then its listening for command and writing what i talking and not talking back about my question. What is the problem ?
@Nomadic5749
@Nomadic5749 Год назад
Hey, i was having this problem for what i thought was no reason. I had a play around and changed my activation word from starting with a capital to all lower case and it worked, try that and see if it works. 👍
@elijahgwei1004
@elijahgwei1004 2 года назад
Hello Sir, whenever I run the command compute the distance between Hong Kong to Kuala Lumpur….. I’m getting an error message. Also, I notice listOrdict is not defined
@mikaelcodes
@mikaelcodes 2 года назад
You can find the definition for the method on row 62 pastebin.com/WPPtgiAn What error message are you getting? You could post it on Discord: discord.gg/PHzBvjC5
@akiothechaoticpan
@akiothechaoticpan Год назад
This is great! I have a slight problem, when I ask the ai to open a web page, it only opens a new tab, is there any way to fix this?
@mikaelcodes
@mikaelcodes Год назад
Thanks! You mean to keep opening the web page in the same tab? In that case you can try to update the code to webbrowser.get('chrome').open(query, new = 0). The new = 0 parameter should prevent a new window or tab from being opened as per the docs: docs.python.org/3/library/webbrowser.html
@theogkillam
@theogkillam Год назад
Hi there Mikael I'm new to the channel thanks for the video it's really cool and helpful but I have a little issue when I entered certain dependencies (Wolfram alpha,date and speech recongitnition) into my terminal to install them it gave me the message ERROR:could not find a version that satisfies the requirement wolframaphla (from version:none) and ERROR:No matching distribution found for wolframaphla. If you could help it would mean a lot thanks.
@mikaelcodes
@mikaelcodes Год назад
Sounds like the package hasn't been installed in your environment. Have you run 'pip install wolframalpha' on your command line?
@theogkillam
@theogkillam Год назад
@@mikaelcodes yeah and it seems like packages weren't properly installed it's working now thanks
@egyptiangamer-h9i
@egyptiangamer-h9i 3 месяца назад
Im starter in game develope with pyton and i study html and css and i want to learn AI with python
@safezone6479
@safezone6479 Год назад
Can we do it with jupyter notebook
@gasparkrstic220
@gasparkrstic220 6 месяцев назад
What to tiype in for croatian language
Далее
AI-Powered Flashcards with Wisdolia
7:11
Просмотров 15 тыс.
На самом деле, все не просто 😂
00:45
Creating Jarvis powered by OpenAI and Python | ChatGPT
18:40
Voice Assistant with Wake Word in Python
20:19
Просмотров 101 тыс.
How to Create Jarvis AI Assistant | Like Iron Man
16:55
Machine Learning for Everybody - Full Course
3:53:53
Let's build GPT: from scratch, in code, spelled out.
1:56:20
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,6 млн