I had no problems with gTTS before:
import gtts
stop = (\'My voice!\')
tts = gtts.gTTS(text=stop, lang=\'en\')
tts.save(\"D:\\\\path\\\\Voice.mp3\")
I installed the gtts
package and was able to replicate this issue. In this case, the Google Translate URL used by the gtts
package no longer works (it returns a 403 HTTP error). This should probably be reported as a bug to the gtts
package maintainers as it looks like Google’s Text to Speech API has changed (or broke).
Edit: This issue has already been reported.