Text-to-speech (TTS) module that works under Python 3

前端 未结 4 1850
隐瞒了意图╮
隐瞒了意图╮ 2021-02-08 23:31

I have tried PyTTS (deprecated) and PyTTSx (the most recommended) and two Google TTS solutions (gTTS and another one by some guy named Hung Truong) but none of them worked under

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-08 23:57

    Rather than using a module, you could use Google Text-to-Speech API . You can easily use this URL to generate a wav file and get it through a simple HTTP request:

    http://www.translate.google.com/translate_tts?tl=en&q=Hello%20World

提交回复
热议问题