how to play mp3

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

    Same problem here. It works with playsound 1.2.1 for me.

    Install with :

    $ pip install playsound
    

    test with:

    >>>from playsound import playsound
    >>>playsound('/path/to/a/sound/file/you/want/to/play.mp3')
    

提交回复
热议问题