Open ANGELELF708 opened 1 year ago
Update! Immediately after posting this I thought "Fuck it, I'll try gTTS!" Here are the unfortunate results:
def TTSave(TTString):
TTSengine = gTTS(text=TTString, lang="en", slow=False)
TTSengine.save("TTString.mp3")
I updated the TTSave method to use gTTS instead as seen above. Here is the resulting error:
Traceback (most recent call last):
File "/Users/[redacted]/Desktop/AETOAB's Everything/AEChatBot/AETOABdiscord.py", line 7, in <module>
from gtts import gTTS
File "/Users/[redacted]/Desktop/AETOAB's Everything/env/lib/python3.8/site-packages/gtts/__init__.py", line 3, in <module>
from .tts import gTTS, gTTSError
File "/Users/[redacted]/Desktop/AETOAB's Everything/env/lib/python3.8/site-packages/gtts/tts.py", line 8, in <module>
import requests
File "/Users/[redacted]/Desktop/AETOAB's Everything/env/lib/python3.8/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/Users/[redacted]/Desktop/AETOAB's Everything/env/lib/python3.8/site-packages/urllib3/__init__.py", line 38, in <module>
raise ImportError(
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3. See: https://github.com/urllib3/urllib3/issues/2168
Also for the sake of clarity line 7 is:
from gtts import gTTS
It was worth a shot ;/
AETOAB-Chan's official server is ran off of a MacBook running Catalina version 10.15.7. However I test on a custom built Windows 10 PC. The Macbook for whatever reason doesn't work with pyttsx3 (AETOAB's TTS engine.) It works just fine on my custom. Here is the given error:
I've been working on this for like a week, I'm pretty exhausted, but I'm fairly set on using pyttsx/pyttsx3 for its versatility. If it comes to it, at this rate I'll take whatever works. I might use gTTS instead, but I'm also considering just buying a cheap thinkpad, but idk.