how to play mp3

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

    I don't know the solution to all of the questions, but the issue you're having with pydub is that you don't have ffmpeg or avconv installed. There are instructions on the pydub github:

    Windows:

    1. Download and extract libav from Windows binaries provided here.
    2. Add the libav /bin folder to your PATH envvar
    3. pip install pydub

提交回复
热议问题