how to play mp3

前端 未结 12 1705
醉酒成梦
醉酒成梦 2021-02-09 09:39

my problem starts here:

pyttsx and gTTS module errors

gTTS works well, takes text from text file, but first creates mp3 file, then if I want listen, I must call

12条回答
  •  無奈伤痛
    2021-02-09 10:17

    I think you are looking for :

    pyttsx3

    Its an offline cross-platform TTS that's compatible with python3 and python2.

    Install :

    pip install pyttsx3

    If u want an offline TTS for python unlike gTTS , pyttsx3 is your best choice in my opinion.

提交回复
热议问题