How can I define the Models Language & Male/Female? Where can I see what options I have.?
@motherload11228 ай бұрын
Traceback (most recent call last): File "f:\Jarvis\openai-jarvis\app.py", line 36, in change_voice(engine, "en_US", "VoiceGenderMale") File "f:\Jarvis\openai-jarvis\app.py", line 34, in change_voice raise RuntimeError("Language '{}' for gender '{}' not found".format(language, gender)) RuntimeError: Language 'en_US' for gender 'VoiceGenderMale' not found
@ScaleUpSaaS8 ай бұрын
Are you using MacOS?
@tarnum139 ай бұрын
Great video, thank you 👋
@ScaleUpSaaS9 ай бұрын
Thanks for sharing. Appreciated
@bi_jhoo31014 ай бұрын
Hi, nice video! do i have to use python? or I can use any programming language like nodejs. if I using nodejs i'm scared that the required packages doesn't exist in nodejs
@ScaleUpSaaS4 ай бұрын
Thanks for sharing. Appreciated. You can definitely try different programming languages. But we know for sure it’s working with the existing code base wish shared in this tutorial. Let us know if you have any more questions
@dhirajkahol7 ай бұрын
Thanks for sharing this 👍. Can you suggest ideas on how to reduce assistant's response time ? to make the conversation more realistic
@ScaleUpSaaS7 ай бұрын
Yes. You can use local LLM. Try to search for privateGPT
@vrmusic1088 ай бұрын
You can only use this API if you have paid account with OPENAI
@ScaleUpSaaS8 ай бұрын
Thanks for sharing. Appreciated. Subscribe for more amazing tutorials
@sv46478 ай бұрын
Pls if you know of any other open source model that can do this without api key. Pls tell!!
@ScaleUpSaaS8 ай бұрын
@@sv4647 We will share once we find. What kind of functions you need?
@luongtran40778 ай бұрын
Great video! But I encountered an error like the following.... Can you suggest me to fix it D:\AI\openai-jarvis>python3 app.py Traceback (most recent call last): File "D:\AI\openai-jarvis\app.py", line 36, in change_voice(engine, "en_US", "VoiceGenderFemale") File "D:\AI\openai-jarvis\app.py", line 34, in change_voice raise RuntimeError("Language '{}' for gender '{}' not found".format(language, gender)) RuntimeError: Language 'en_US' for gender 'VoiceGenderFemale' not found
@ScaleUpSaaS8 ай бұрын
Just comment this line: # change_voice(engine, "en_US", "VoiceGenderFemale") It will work for you after
@ScaleUpSaaS8 ай бұрын
Or git clone the repository again. I added a try & except solution. It will work for for sure :)
@ScaleUpSaaS8 ай бұрын
Subscribe to our youtube channel if it's working for you :)
@luongtran40778 ай бұрын
i git clone the responsitory again. I have added API key to copy.env file and changed the file name, added API key to line 13 file app.py . But i have a bug. like : (env) D:\AI\openai-jarvis>python3 app.py Language not found Press 's' to stop recording and transcribe the audio. Recording... Press 's' to stop. Traceback (most recent call last): File "D:\AI\openai-jarvis\app.py", line 121, in main() File "D:\AI\openai-jarvis\app.py", line 94, in main recorded_audio_path = new_record_audio() ^^^^^^^^^^^^^^^^^^ File "D:\AI\openai-jarvis\app.py", line 56, in new_record_audio write(f'./voices/{audio_name}.wav', fs, myrecording) # Save as WAV file ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\LUONG\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scipy\io\wavfile.py", line 766, in write fid = open(filename, 'wb') ^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: './voices/melancholic sunrise.wav' @@ScaleUpSaaS
@ScaleUpSaaS8 ай бұрын
Create the folder -> voices@@luongtran4077
@svascolapasta4 ай бұрын
Hey Nice video! But actually i got this error: Traceback (most recent call last): File "C:\Users\utente\OneDrive\Desktop\J.A.R.V.I.S\openai-jarvis-master\app.py", line 122, in main() File "C:\Users\utente\OneDrive\Desktop\J.A.R.V.I.S\openai-jarvis-master\app.py", line 104, in main transcript = speech_to_text(recorded_audio_path) File "C:\Users\utente\OneDrive\Desktop\J.A.R.V.I.S\openai-jarvis-master\app.py", line 65, in speech_to_text transcript = openai.Audio.transcribe("whisper-1", audio_file) File "C:\Users\utente\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\api_resources\audio.py", line 67, in transcribe response, _, api_key = requestor.request("post", url, files=files, params=data) File "C:\Users\utente\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\api_requestor.py", line 298, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\utente\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response self._interpret_response_line( File "C:\Users\utente\AppData\Local\Programs\Python\Python312\Lib\site-packages\openai\api_requestor.py", line 765, in _interpret_response_line raise self.handle_error_response( openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: platform.openai.com/docs/guides/error-codes/api-errors.
@ScaleUpSaaS4 ай бұрын
Thanks for sharing. You need to add a new OpenAI Token. also make sure you added you credit card info to OpenAI too
@svascolapasta4 ай бұрын
i did it but it crashed with the same error
@ScaleUpSaaS4 ай бұрын
Have you try to refresh the cache or make sure your files have access to this open ai key. Also try to add the OpenAI token hardcoded to your file. We checked this code countless of times everything work well.
@svascolapasta4 ай бұрын
@@ScaleUpSaaS it worked, thank you bro :]
@26.nguyenhongquan698 ай бұрын
Hello, thanks for your helpful video but I have some problems. Can you help me fix them? Language not found Press 's' to stop recording and transcribe the audio. Recording... Press 's' to stop. Recording stopped. Recording stopped. Transcribing audio... Recorded audio saved to: ./voices/whispering rain.wav ----end--- entered transcribe ././voices/whispering rain.wav Traceback (most recent call last): File "c:\Users\PC QUAN\Javiscode\openai-jarvis\app.py", line 121, in main() File "c:\Users\PC QUAN\Javiscode\openai-jarvis\app.py", line 103, in main transcript = speech_to_text(recorded_audio_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\PC QUAN\Javiscode\openai-jarvis\app.py", line 64, in speech_to_text transcript = openai.Audio.transcribe("whisper-1", audio_file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\PC QUAN\Javiscode\openai-jarvis\menv\Lib\site-packages\openai\api_resources\audio.py", line 67, in transcribe response, _, api_key = requestor.request("post", url, files=files, params=data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\PC QUAN\Javiscode\openai-jarvis\menv\Lib\site-packages\openai\api_requestor.py", line 298, in request resp, got_stream = self._interpret_response(result, stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\PC QUAN\Javiscode\openai-jarvis\menv\Lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response self._interpret_response_line( File "c:\Users\PC QUAN\Javiscode\openai-jarvis\menv\Lib\site-packages\openai\api_requestor.py", line 765, in _interpret_response_line raise self.handle_error_response( openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: platform.openai.com/docs/guides/error-codes/api-errors.
@ScaleUpSaaS8 ай бұрын
Thanks for sharing. Seems like your error caused by Missing OPENAI_API_KEY Check that you have a legit api key or your account have credit card. The code is fine. It’s need to work for you.