gTTS HTTPError: 403 Client Error: Forbidden for url

前端 未结 1 1861
情话喂你
情话喂你 2021-01-27 16:30

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\")

相关标签:
1条回答
  • 2021-01-27 16:57

    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.

    0 讨论(0)
提交回复
热议问题