Jarvis Tutorial and code walk through Part 1
Added 2024-04-20 22:58:40 +0000 UTCThe Jarvis tutorial is finally here!
I’m thrilled to share an exciting development from my latest project: a conversational AI that mirrors the capabilities of Jarvis from Iron Man! This system combines cutting-edge technologies from OpenAI, including Whisper V3 for speech recognition, GPT-3.5 Turbo for AI responses, and OpenAI's TTS for voice output. Here’s a deep dive into how it works and the magic behind it.
How Jarvis Comes to Life
1. Speech Recognition with Whisper V3: Our journey begins with converting your spoken words into text. Whisper V3, a robust model developed by OpenAI, excels in understanding and transcribing speech in real-time. This ensures that no matter how fast or slow you speak, Jarvis hears you loud and clear. https://github.com/openai/whisper
2. Intelligent Interactions with GPT-3.5 Turbo: Once your speech is transcribed, the next step is understanding and generating a fitting response. This is where GPT-3.5 Turbo comes in. It's not just any chatbot; it's designed to understand context and subtleties in language, making interactions seamless and engaging—almost like you’re talking to a human! https://platform.openai.com/docs/assistants/overview?context=with-streaming
3. Speaking Back with OpenAI’s TTS: After crafting the perfect response, our system uses OpenAI’s Text-to-Speech technology to verbalize the answer. This isn’t a robotic voice; it’s a natural, smooth, and dynamic speech that converses with you just like Jarvis would. https://platform.openai.com/docs/guides/text-to-speech
Start here: https://platform.openai.com/docs/quickstart?context=python
Start Coding: https://github.com/Concept-Bytes/Jarvis
-Note that this is Just version 1 and that all the features in my video are not available just yet.
-Yes they will release as I am getting them ready for you guys asap.
-This is still a full Assistant pipeline that you can talk to and trigger actions.
Features at a Glance:
Real-Time Speech Recognition
Context-Aware Response Generation
High-Quality Speech Output
Customizable Hotwords
Join the Journey!
This is just the beginning of what we can achieve with AI in personal assistants. Whether you’re a tech enthusiast, a developer, or someone interested in the future of AI interactions, your support can make a significant difference.
Comments
I had the same problem. You have to google and install Git. After installing you have to reboot CMD, then the "git" and "clone" commands will work.
gerrit
2024-11-19 12:33:27 +0000 UTCHow did you fix it
Logan Ridley
2024-11-17 13:17:25 +0000 UTCfixed it!
Jordan Stroud
2024-11-07 00:32:05 +0000 UTCwhen I type git clone part in command prompt I get this 'git' is not recognized as internal or external command, operable program or batch file. What am I doing wrong?
Jordan Stroud
2024-11-06 23:54:39 +0000 UTCIn the minute 15 I put run and it says this: PS C:\Users\ivanc\Desktop\Projects\belfast> & C:/Users/ivanc/AppData/Local/Programs/Python/Python310/python.exe c:/Users/ivanc/Desktop/Projects/belfast/assist.py File "c:\Users\ivanc\Desktop\Projects\belfast\assist.py", line 25 thread.id ^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? PS C:\Users\ivanc\Desktop\Projects\belfast> what should I do?
Iván Cámpora
2024-11-04 23:58:06 +0000 UTCI got everything running! I just can't update/change the voice
Agentloc
2024-10-20 08:14:34 +0000 UTCI can’t get it to respond to the tell me a joke response. What do I do?
Logan
2024-10-12 03:18:49 +0000 UTCWhich API key do you generate for OpenAI. They have project keys, which start with sk-proj - Which don't work with your assist.py code. I always get invalid API key. The real question I have here is how do you assign the assistant to a project, so the project api key will work?
Jedd
2024-09-19 17:56:01 +0000 UTCAfter 2 weeks I couldn't figure out how to get this to speak through my speakers and had no help whatsoever, so unfortunately I'm giving up and no longer going to pay for the patreon, good luck to everyone else
Weecho Brownhawk
2024-09-08 01:45:48 +0000 UTCI actually had the same issue and i solved it by installing VS build tools.
Liam Williamsson
2024-09-05 02:46:33 +0000 UTCI have Anaconda could you send me the environment?
Sade K
2024-09-03 03:00:43 +0000 UTCYou need to install cmake and go to the pytorch website to see compatible versions and once you have that you need to download microsoft visuals c/c++ on the microsoft website
Dev Narang
2024-08-30 10:53:02 +0000 UTCI've been working at getting this to speak through the speakers for 3 days now and I cannot get it at all, I have followed this to a T but I can't seem to hear jarvis speak. Anyone have any tips??
Weecho Brownhawk
2024-08-25 01:40:20 +0000 UTCThis is probably a dumb question but I got everything else right expect I don’t know how to use the api key I generated 1 but I don’t know how to put it on python as a environment variable I’m very new to coding and it won’t speak back to me until I do
nick sala
2024-08-23 05:17:41 +0000 UTCYea I did I started over using python version 11
nick sala
2024-08-23 05:16:35 +0000 UTCDid you ever figure it out because I am having a very similar problem.
John Fitzgerald
2024-08-23 05:15:50 +0000 UTCOkay, I got up to def TTS but when I run it to tell me a joke, it won't play through the speaker, it'll answer it in text but not out loud, what do I do?
Weecho Brownhawk
2024-08-22 01:39:46 +0000 UTCI am Assuming I will Need to figure this out before moving to that tutorial as he is still using the first tutorial to run everything and without my api key issues resolved i cant even run the program correct?
Cody
2024-08-21 10:34:08 +0000 UTCsame but on the new tutorial
Alexander Jones
2024-08-21 09:50:11 +0000 UTCStruggling with getting openai api key to work can anyone help?
Cody
2024-08-19 09:15:56 +0000 UTCOk downloading 3.11 rn and anaconda thank you will follow up shortly
nick sala
2024-08-19 01:29:08 +0000 UTCHey, so I'm not sure your exact problem, but I have a few recommendations if you are looking to try some stuff. The first would be try with python 3.11. that's the version I am running. The next would be to start using an environment manager like anaconda. That will save you a bunch of headache for this project and many others. If you use anaconda I could always just send you my environment which should make it run without issues. I am also working on an application version of this so that you could just download the software and not worry about setup.
Kevin Coda
2024-08-19 01:26:21 +0000 UTCI’ve been stuck for 2 days on this and I’m honestly so close to breathing out fire from my nostrils 😭 I can’t get pygame installed it keeps saying failed building wheel for pygame and then says error failed build installable wheels for some pyproject.toml based projects (pregame) and is likely not a problem with pip I don’t know how to fix it I’ve watch 100s of YouTube vidoes and found so many Reddit chats and I can’t find anything someone please help I’m running python version 3.13 on a Mac OS 13.6.6..
nick sala
2024-08-19 01:22:45 +0000 UTCI'm getting stuck at "main loop starting" now. And when it did work i only got the listening for hotwords loop to work three times and then it errored. Any thoughts?
Jonathan Roberts
2024-08-10 07:25:27 +0000 UTCI get the same thing. It takes about a minute and then i get a whole bunch of errors: Traceback (most recent call last): File "C:\Users\Mainpc\Documents\jarvis\jarvis.py", line 109, in main() File "C:\Users\Mainpc\Documents\jarvis\jarvis.py", line 80, in main result = audio_model.transcribe(temp_file, fp16=torch.cuda.is_available()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Mainpc\AppData\Local\Programs\Python\Python312\Lib\site-packages\whisper\transcribe.py", line 133, in transcribe mel = log_mel_spectrogram(audio, model.dims.n_mels, padding=N_SAMPLES) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Mainpc\AppData\Local\Programs\Python\Python312\Lib\site-packages\whisper\audio.py", line 140, in log_mel_spectrogram audio = load_audio(audio) ^^^^^^^^^^^^^^^^^ File "C:\Users\Mainpc\AppData\Local\Programs\Python\Python312\Lib\site-packages\whisper\audio.py", line 58, in load_audio out = run(cmd, capture_output=True, check=True).stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Mainpc\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Mainpc\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\Mainpc\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the file specified
Jonathan Roberts
2024-08-03 02:51:39 +0000 UTCFixed it! Had date_queue not data!
Jonathan Roberts
2024-08-03 01:10:52 +0000 UTCHi all. Newbie here. I've managed to get the assist file up and running, but i am struggling with the jarvis file. The data_queue is coming up as undefined. I am guessing it has something to do with the import queue from Queue line. Any thoughts would be appreciated. Cheers.
Jonathan Roberts
2024-08-03 00:54:41 +0000 UTCI have been doing this for the past week and i cant do it, i dont understand most of it every time i try to do something its always says error or no module named OpenAI can someone reach out to me on discord it is military_kid08 (dont judge the name)
Unknown Person
2024-07-27 15:46:19 +0000 UTCHi, i followed every step and installed everything from the requirements.txt file but it keeps giving me this error: "ModuleNotFoundError: No module named 'torch'". i searched for any solution related to vs code online but it didn't help. could anyone please help me? thanks in advance
Federico Parisi
2024-07-27 10:01:31 +0000 UTCFor ease use state it like openai_api_key="yourkey" client = OpenAI(api_key=openai_api_key,default_headers={"OpenAI-Beta": "assistants=v2"}) That is in the assist.py script
Sheetyman Sheety
2024-07-25 19:40:33 +0000 UTCi tried doing this but everytime io try to run it, it says "The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable" even after i set my envirment
Tazer Grazer
2024-07-24 23:34:55 +0000 UTCUnfortunately no.
Mack Marchant
2024-07-21 15:47:11 +0000 UTCHow to include the shader to JARVIS
Sam R
2024-07-15 14:30:20 +0000 UTCDid you ever figure this out?
Marquis
2024-07-13 15:56:09 +0000 UTCI am running on a Raspberry PI 4 btw.
Robert E
2024-07-05 02:49:17 +0000 UTCAlso do you respond to direct messages? I sent you a few questions over a week ago and have not seen a response.
Robert E
2024-07-05 02:48:07 +0000 UTCI have Python 3.10.0 & PIP 24.1.1. I have reloaded Python & PIP several times trying to find a version that will install Torch.
Robert E
2024-07-05 02:47:09 +0000 UTCWhat version of Python and PIP are you running. I am having difficulty loading Torch.
Robert E
2024-07-05 02:45:21 +0000 UTCbut yes you can open your terminal and type the command choco install ffmpeg it will help you...
WhiteBoss Gamer
2024-07-03 04:57:36 +0000 UTCsame error message
WhiteBoss Gamer
2024-07-03 04:56:10 +0000 UTCFixed! run in the terminal choco install ffmpeg
Juan Carlos P. Melgar
2024-07-03 03:50:47 +0000 UTCJuan Carlos P. Melgar
2024-07-03 01:53:40 +0000 UTCcould you be more specific?
Ricardo Lesmes
2024-07-02 22:26:42 +0000 UTCHey can any one tell me there was an error FileNotFoundError: [WinError 2] The system cannot find the file specified but there was an file too
WhiteBoss Gamer
2024-07-02 18:36:20 +0000 UTCActually, you can ask it to change the language, the model understood me when I spoke to it in Spanish, give it a try
Juan Carlos P. Melgar
2024-07-02 02:06:11 +0000 UTCpip install speechrecognition
Matt Goeckel
2024-06-27 14:15:15 +0000 UTCits telling me there's no module named 'speech_recognition' from the Jarvis code import list
Alexander Lack
2024-06-24 18:48:33 +0000 UTCfor some reason once i get to jarvis responding nothing happens. i dont get an error or anything.
Sebastian Hidalgo
2024-06-19 02:20:26 +0000 UTCThank you so much it worked
SnappyApple7343
2024-06-17 23:52:47 +0000 UTCThe way you set your API key is within the brackets type api_key = 'actual key'
Sartaj Gill
2024-06-17 21:34:26 +0000 UTCHas anybody gotten this error when making Jarvis: INTEL MKL ERROR: The specified module could not be found. mkl_vml_def.1.dll. Intel MKL FATAL ERROR: cannot load mkl_vml_def.1.dll?
TheK-B1000
2024-06-17 19:39:37 +0000 UTCCan anyone help me with this. On line 7 it says this client = OpenAI("MY API KEY") I get an error that says TypeError: OpenAI.__init__() takes 1 positional argument but 2 were given. (Where I put MY API KEY, that's my api key I don't want to leak it)
SnappyApple7343
2024-06-14 23:34:06 +0000 UTCDid you find a fix for this?
Jayden Raby
2024-06-14 02:15:00 +0000 UTCHey, I have a thinkpad laptop with a ryzen 7. Its just a windows machine. Nothing special. Not sure why your command prompt wouldn't be working. That seems like a windows problem. Is it launching? can you type anything?
Kevin Coda
2024-06-13 21:59:38 +0000 UTCWhat computer and software do you use, my command prompt isn’t working
Gavin Pena
2024-06-13 19:46:50 +0000 UTCCan anyone help with the following? AttributeError: ‘NoneType’ object has no attribute ‘close’
Spyder Flag Check
2024-06-10 22:42:56 +0000 UTCAnyone know about this? Says it’s an issue with the file speech_recognition line 189 self.stream.close()
Spyder Flag Check
2024-06-10 18:50:48 +0000 UTCI seem to finally have made moves but I’m stuck here now AttributeError: ‘nonetype’ object has no attribute ‘close’
Spyder Flag Check
2024-06-10 18:49:53 +0000 UTCHi All, Im getting error in this line of code can you please help me out Model loaded. main loop starting e:\FutureAI\jarvis\jarvis.py:63: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = datetime.utcnow() Traceback (most recent call last): File "e:\FutureAI\jarvis\jarvis.py", line 127, in main() File "e:\FutureAI\jarvis\jarvis.py", line 89, in main result = audio_model.transcribe(temp_file, fp16=torch.cuda.is_available())
Sam R
2024-06-09 17:56:15 +0000 UTCMine doesnt go past main loop starting any help?
Jack Ross
2024-06-07 21:10:07 +0000 UTCYou can create your own python script to detect the microphones, something like this: # List audio input devices p = pyaudio.PyAudio() for i in range(p.get_device_count()): info = p.get_device_info_by_index(i) print(f"Device {i}: {info['name']}") p.terminate() this should return the index of all connected devices. Hope this helps :)
Joshua Leyva
2024-06-07 20:53:32 +0000 UTCGreat project! I finally got it working, and if I could do it believe me there is hope for everyone. I have a couple of questions though: 1-How do I know if the microphone is connected? From the way it is explained I have to mod the index, I have tried but with not great results, I have tried 0, 1 and 2. however it seems that Jarvis always has a little trouble hearing me, even if I use the headset with microphone which I am sure works # source = sr.Microphone(sample_rate=16000, device_index=0)# What happens if I change rate=16000? 2- Maybe it is related to point 1, often Jarvis to a question of mine answers before I am finished. In this case are there any values to adjust? 3- when will jarvis part 2 come out? i am very excited Overall great job, you explain super well even for a non-mother language
Giovanni Bavai
2024-06-06 14:57:40 +0000 UTCyes
Giovanni Bavai
2024-06-04 16:39:21 +0000 UTCDo we have to pay for OpenAI to use their Assistant API, or is it free
Sam R
2024-06-03 11:41:47 +0000 UTCI haven't done coding since 2005 so I'm not sure if any of this coding is system specific or if it even cares.
Christopher Smith
2024-05-30 17:20:31 +0000 UTCI am having trouble with the Torch library, I keep getting an error that the specified module could not be found.
MGScion
2024-05-30 01:43:46 +0000 UTCNvm I had while mixer.music.get.busy() when it should be get_busy() lol
MGScion
2024-05-29 18:40:10 +0000 UTCThere might be an issue where Visual Studio Code doesn’t have permissions to access or make mp3 files. Otherwise, I suggest using ChatGPT’s Python code helper. It was able to fix a lot of issues I had and change things to be more how I want them.
Owen Ehrlich
2024-05-29 18:34:40 +0000 UTCI am also having trouble converting TTS, it seems like the problem could be the python bug with the stream_to_file? My output does not convert nor stream it back to me
MGScion
2024-05-29 18:03:51 +0000 UTCI'm having an issue wherein the assistant (AKA Jarvis) responds back with my prompt for the question. For example, with the first example of Tell me a joke, I have my code setup like this: response = ask_question_memory("Tell me a joke") The result of the code is that Jarvis responds with "Tell me a joke". I can view his actual response to the joke on the OpenAI assistant browser, however this result does not get populated back to my code in Visual Studio. Same thing happens with the TTS, he responds with "Tell me a joke". I've doubled back in the video several times and I can't seem to figure out where the issue is coming from.
Mack Marchant
2024-05-28 20:56:58 +0000 UTCHey! I followed along till 22:33 of the video and everything worked fine before that. Jarvis prints the joke but does not convert it to speech. This is the error I am getting: openai.PermissionDeniedError: Error code: 403 - {'error': {'message': 'Project `proj_TAmxxxxxxxx` does not have access to model `tts-1`', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}} Can anyone help me with this?
Nihaara
2024-05-27 18:18:21 +0000 UTCDon't know if anyone has asked this yet or not but does this coding work on Pi? I know Pi is Linux based so does the coding change at all from windows to Linux to pi?
Christopher Smith
2024-05-27 03:01:28 +0000 UTCIt's working in open AI fine but idk why its not working in visual studios
Austin
2024-05-26 23:39:27 +0000 UTCThat error is actually from open AI. They return "the run has failed" if your open AI API token isn't working properly. Maybe check billing and your account to see if there are any errors
Kevin Coda
2024-05-26 21:18:35 +0000 UTCim having a problem where i tried to print a response and it tells me "the run has failed" that on line 44 'return' outside function
Austin
2024-05-26 19:59:19 +0000 UTCThank you
Christian Wadkins-white
2024-05-24 16:42:20 +0000 UTCThis is the correct answer and worked to solve this. Thank you
Seth Johnson
2024-05-24 16:40:48 +0000 UTCHey, can you do a video explaining how to have it play music, and put the components together into a box?
Oliver
2024-05-22 19:14:53 +0000 UTCFixed it, forgot to put my assistant id🤷
stefan doudin
2024-05-22 17:49:12 +0000 UTCthe openai whisper modules also requires the FFMpeg module which you can download using Chocolatey, here are 2 links to help u install both:https://chocolatey.org/install?ref=assemblyai.com https://www.assemblyai.com/blog/how-to-run-openais-whisper-speech-recognition-model/
stefan doudin
2024-05-22 17:48:39 +0000 UTCfor some reason when I launch jarvis.py it without anything else, first tells me a joke(which was one of the prompts i asked it, if not the last while testing the assist.py) then it loads the model says the date time thing is depracted, says main loop is starting and just doesnt do anything, doesnt stop, doesnt write listening just doesnt do anything? Any fix, maybe i am doing something wrong.
stefan doudin
2024-05-22 15:43:11 +0000 UTCtry pip install setuptools, worked for me
stefan doudin
2024-05-22 15:34:12 +0000 UTCin the assist.py file, the line: client = OpenAI(), do this client = OpenAI(api_key="api key"). You can create an api key when u have resgistered an account with openai and it will show it to you only once so save it somewhere.
stefan doudin
2024-05-22 15:17:16 +0000 UTCFinally got it to work and it’s awesome. Is there a way I can keep a continuous conversation with him, without having to say “Jarvis” every time?
Owen Ehrlich
2024-05-18 20:44:13 +0000 UTC^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\chris\OneDrive\Desktop\Jarvis project\jarvis\whisper\transcribe.py", line 133, in transcribe mel = log_mel_spectrogram(audio, model.dims.n_mels, padding=N_SAMPLES) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\chris\OneDrive\Desktop\Jarvis project\jarvis\whisper\audio.py", line 140, in log_mel_spectrogram audio = load_audio(audio) ^^^^^^^^^^^^^^^^^ File "c:\Users\chris\OneDrive\Desktop\Jarvis project\jarvis\whisper\audio.py", line 58, in load_audio out = run(cmd, capture_output=True, check=True).stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\chris\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\chris\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\chris\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the file specified
Christian Wadkins-white
2024-05-15 01:39:24 +0000 UTCWhen I try running it, it says the file specified could not be found even though it is all in the right location.
evan '
2024-05-15 00:36:09 +0000 UTCModuleNotFoundError: No module named 'distutils'
Christian Wadkins-white
2024-05-14 23:11:11 +0000 UTCI'm stoked to see how the new chatgpt model will enhance the jarvis experience. These builds your sharing are phenomenal! Thanks!
Sebek's Tech Trek
2024-05-14 03:50:05 +0000 UTCI am also having this same error. It won’t say it’s listening but soon as I start speaking that error pops up
Sebek's Tech Trek
2024-05-14 02:11:23 +0000 UTCGitHub Copilot if I’m not mistaken. It’s an extension in VS code. You also have to have a GitHub account
Sebek's Tech Trek
2024-05-14 02:08:29 +0000 UTChttps://platform.openai.com/settings/organization/billing/overview
Vincent
2024-05-12 20:15:37 +0000 UTCdoes it cost something ?
Cosmo
2024-05-12 09:14:11 +0000 UTCChange the Mic Input, but it is slow Im using a mac m1 with no gpu, so i change the hotword detection to picovoice.ai (for free) and the text to speach using azure cognitive service. Got a better performance
Christiano Faig
2024-05-12 08:32:09 +0000 UTChey did you find any solution stuck in same part
Kau Mu
2024-05-12 03:40:04 +0000 UTCmake sure to install ffmpeg
Koby Deuel
2024-05-09 19:44:17 +0000 UTCWhen I try to run the code it keeps saying that the data queue is empty
Anthony
2024-05-09 16:36:58 +0000 UTCI’m having trouble getting Jarvis to listen and right at the end, I have him talking up a storm but can’t get the code to start listening
Mathew Russell
2024-05-09 13:23:56 +0000 UTChow do i put in this api key it just doesn't want to work
Luke Davies
2024-05-07 05:35:47 +0000 UTChi im new to coding, does anyone know what shortcut he uses or how he generates the grey sentences cuz i rlly dont know
Edwin Hsieh
2024-04-30 12:13:08 +0000 UTChang in : pygame 2.5.2 (SDL 2.28.3, Python 3.11.7) Hello from the pygame community. https://www.pygame.org/contribute.html Model loaded. main loop starting
Christiano Faig
2024-04-29 22:54:41 +0000 UTCSo it works but when I say "hey jarvis" it gives me the same error
Kaydin Smith
2024-04-27 14:56:40 +0000 UTCI've found the solution, I've executed VS Studio as an admin and that worked.
Mael
2024-04-27 09:05:59 +0000 UTCCan you consider providing instructions to run Jarvis on a local LLM not dependent on OpenAI API? Maybe utilizing Ollama and Anything2LLM
Jonathan Luna
2024-04-26 20:49:21 +0000 UTCi'm getting that also.
Luke
2024-04-25 20:50:00 +0000 UTCI'm on a Mac too, I'm in the same boat as you, I know if my microphone is poorly detected or the model doesn't understand me, then you can test the tiny model which is multilingual.
Valkim
2024-04-24 14:20:49 +0000 UTCThat makes sense....
Juan Carlos P. Melgar
2024-04-24 01:37:43 +0000 UTCCan’t wait for part 2!
Scarlett
2024-04-24 00:22:31 +0000 UTCNo, I have not.
Kaydin Smith
2024-04-23 18:47:28 +0000 UTCI had the same problem, you have to pay for the api, openai no longer gives out free credits.
Mael
2024-04-23 10:14:53 +0000 UTCI have the same problem. Have you found a solution?
Mael
2024-04-23 10:10:32 +0000 UTCI keep getting this when i try to run "python .\jarvis.py PS C:\Users\Kaydin Smith\Desktop\Projects\jarvis> python .\jarvis.py pygame 2.5.2 (SDL 2.28.3, Python 3.12.3) Hello from the pygame community. https://www.pygame.org/contribute.html main loop starting C:\Users\Kaydin Smith\Desktop\Projects\jarvis\jarvis.py:61: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). now = datetime.utcnow() Traceback (most recent call last): File "C:\Users\Kaydin Smith\Desktop\Projects\jarvis\jarvis.py", line 121, in main() ^^^^^^ File "C:\Users\Kaydin Smith\Desktop\Projects\jarvis\jarvis.py", line 87, in main result = audio_model.transcribe(temp_file, fp16=torch.cuda.is_available()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Kaydin Smith\Desktop\Projects\jarvis\whisper\transcribe.py", line 133, in transcribe mel = log_mel_spectrogram(audio, model.dims.n_mels, padding=N_SAMPLES) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Kaydin Smith\Desktop\Projects\jarvis\whisper\audio.py", line 140, in log_mel_spectrogram audio = load_audio(audio) ^^^^^^^^^^^^^^^^^ File "C:\Users\Kaydin Smith\Desktop\Projects\jarvis\whisper\audio.py", line 58, in load_audio out = run(cmd, capture_output=True, check=True).stdout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the file specified
Kaydin Smith
2024-04-22 20:22:20 +0000 UTCThe error message says that content has not one entry. The data comes form the OpenAI Libray so I think your configuration of GitHub has a mistake. Maybe you have the wrong API key or you don't have any credits for calls anymore.
Florian Middendorf
2024-04-22 20:05:38 +0000 UTCFor my Mac guys. I have to install via brew this two things on the side of the documentation. brew install ffmpeg brew install portaudio then it works. But the model understand me really bad. Maybe because my German accent. But I will try some things.
Florian Middendorf
2024-04-22 19:57:51 +0000 UTCyou have to install apenai 0.28 i had the same issue on my last programm pip install openai==0.28
Jakob Zwingmann
2024-04-22 12:48:12 +0000 UTCKaydin Smith
2024-04-21 23:30:15 +0000 UTCCheers that worked!
Nico Dwyer
2024-04-21 22:46:28 +0000 UTCUninstall then reinstall. Pip uninstall openai Pip install openai
Theo
2024-04-21 12:47:47 +0000 UTCI have the same problem dose anyone know the solution to this? Thanks
Nico Dwyer
2024-04-21 08:34:36 +0000 UTCImportError: cannot import name 'OpenAI' from 'openai' (C:\Users\Theo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\openai\__init__.py) even though open ai is succesfully pip installed
Theo
2024-04-21 00:17:49 +0000 UTCYes, definitely, I'm also really happy about the community you're creating here. I'm personally from another country and speak a completely different language, and it makes me very happy to see people from all over the world gather together to hear you and learn more about this amazing world.
royyalbert
2024-04-21 00:04:25 +0000 UTCi have a new error. with the api. You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
Theo
2024-04-21 00:02:09 +0000 UTCYeah absolutely. However its super simple and I encourage you to try it. In the same way I look for #s I also look for ?'s. If Jarvis asks a question then the conversation is still going so I toggle a boolean to make the loop not look for hotwords the next time around and just send the next text to the ai if its not ''. I think a few people asked about this so I will include it for next time!
Kevin Coda
2024-04-20 23:50:46 +0000 UTCCan you show us in the next episode how you continue to talk to him for a whole conversation without saying HOT words?
royyalbert
2024-04-20 23:47:34 +0000 UTChttps://github.com/git-guides/install-git
Kevin Coda
2024-04-20 23:35:58 +0000 UTCgit is not recognised as an internal or external command - command promt
Theo
2024-04-20 23:28:51 +0000 UTCYaaaa
Infinite Tech
2024-04-20 22:59:22 +0000 UTC