(Apr-04-2019, 02:07 AM)Larz60+ Wrote: There are already packages that do this.
One of the more popular is gTTs: https://github.com/pndurette/gTTS
documentation here: https://gtts.readthedocs.io/en/latest/
The short side of this package is that it relies on Google and therefore needs an internet connection to run.
This can be installed with:
pip install gTTSAn alternative, that does not rely on Google is pyttsx3
homepage: https://github.com/nateshmbhat/pyttsx3
documentation here: https://pyttsx3.readthedocs.io/en/latest/
This can be installed with:
pip install pyttsx3
Tysm, how do I get either one to work through my mic though? I don't want to just hear the text to speech myself, I want it to output to my recording device on my computer so that I can use it on voice communication stuff. Like TeamSpeak/Discord/ect
Is that possible? If so, how? Which function on either of those do I use? I can't find anything to do that.