你好,我做了一个代码:
from gtts import gTTS
import os
import playsound
from pip._vendor.distlib.compat import raw_input
u = raw_input('type: ')
def player(textg):
tts = gTTS(text = textg, lang='en')
tts.save('name.mp3')
playsound('name.mp3')
player(u)
一个错误来了:
playsound('name.mp3')
TypeError: 'module' object is not callable
请帮帮我,我正在使用 Python2.7.15