I’m doing a vocal virtual assistant AI like Iron Man’s Jarvis on Python 3.12 with VS Code and couldn’t solve this for almost in the last month.
I’m imported; os, time, google gTTS, openai (with openAI’s api key), setuptools, pyaudio(by brew install pyaudio), playsound, speechrecognition, uuid.
When I ask a question, I can not get any answer back. There is no voice or sound, nothing.
It recognizes my sound and writes down my questions on terminal.
But doesn’t answer back and doesn’t speak at all.
It just types my questions or writes “Exception” on terminal when it doesn’t recognize my question.
Thank you very much for your help in advance.
I researched this issue on 6 different stackoverflow Q&A’s and couldn not found my answer on stackoverflow. Also researched on openAI community, reddit, github but can not able to find any reasonable answer close to mine.