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
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
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
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
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
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.
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.
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.
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.
Feel free to ask Any question 👨💻?
How can I define the Models Language & Male/Female? Where can I see what options I have.?
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
Are you using MacOS?
Thanks for sharing this 👍. Can you suggest ideas on how to reduce assistant's response time ? to make the conversation more realistic
Yes. You can use local LLM. Try to search for privateGPT
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
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
Great video, thank you 👋
Thanks for sharing. Appreciated
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
Just comment this line:
# change_voice(engine, "en_US", "VoiceGenderFemale")
It will work for you after
Or git clone the repository again. I added a try & except solution. It will work for for sure :)
Subscribe to our youtube channel if it's working for you :)
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
Create the folder -> voices@@luongtran4077
You can only use this API if you have paid account with OPENAI
Thanks for sharing. Appreciated. Subscribe for more amazing tutorials
Pls if you know of any other open source model that can do this without api key. Pls tell!!
@@sv4647 We will share once we find. What kind of functions you need?
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.
Thanks for sharing. You need to add a new OpenAI Token. also make sure you added you credit card info to OpenAI too
i did it but it crashed with the same error
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.
@@ScaleUpSaaS it worked, thank you bro :]
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.
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.