how to play mp3

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

    webbrowser should be part of you standard python install. Check if there is a webbrowser.py under C:\Your_Python_Folder\Lib.

    Below code works just fine for me as webbrowser.py is present at above mentioned folder.

    import webbrowser
    webbrowser.open("rec.mp3")
    

提交回复
热议问题