pythonpython-3.xtext-to-speechgoogle-text-to-speech

Custom Python gTTS voice


I have been using the gTTS module for python 3.4 to make mp3 files of spoken text. It has been working, but all of the speech is in a certain adult female voice. Is there a way to customize the voice that gTTS reads the text in?


Solution

  • Unfortunately it does not appear you can do that. The script uses this webpage to grab voice from, and it appears all you can do is have one voice per language.

    Reading the actual source shows that your next best bet would be to try to pass a different language that is still English (for example, en-uk). It may produce a different result that is still English but with a different dialect.