how to play mp3

前端 未结 12 1706
醉酒成梦
醉酒成梦 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:24

    You can use playsound module

    from playsound import playsound
    playsound(file.mp3)
    

    Boom that's it.it plays the audio right way works like charm

提交回复
热议问题