Speak("Hold on Aldan, I will show you where " location " is.") Print("Could not request results from Google Speech Recognition service ".format(e))ĬHROME = os.path.join('C:\\', 'Program Files (x86)', 'Google', 'Chrome', 'Application', 'chrome.exe') Print("I'm Sorry, i couldn't understand what you mean. Tts = gTTS(text=audioString, Projects/Jarvis/audio.mp3') With open(savefile, 'wb') as f: PermissionError: Permission denied: 'audio.mp3' This works but I have constraints on the second sound, ie i make the first sound with audio.mp3 and it works then when my second voice uses the same filename ie audio.mp3 and i have constraints like thisįile Projects\Jarvis\Jarvis.py", line 71, inįile Projects\Jarvis\Jarvis.py", line 53, in jarvis speak(ctime())įile Projects\Jarvis\Jarvis.py", line 17, in speak tts.save("audio.mp3")įile "C:\Users\inialdan\AppData\Local\Programs\Python\Python36\lib\site-packages\gtts\tts.py", I have found a replacement with mixer.music to play the sound of the AI. And there are some tools or plugins that do not work in windows is mpg321. From the tutorial available in it shows for Ubuntu tutorial but I use Windows. I make a bot like Jarvis to help me like opening google or youtube. I just tried python some time ago and I started it from AI.
0 Comments
Leave a Reply. |