def speak(say):
endProg(command='music')
print("GENERATING VOICE")
tts = gTTS(text=say, lang='en')
tts.save("voice/temp/temp.mp3")
voice = "runuser -l pi -c 'cvlc --play-and-exit /home/pi/computer/voice/temp/temp.mp3' "
subprocess.call(voice, shell=True)
endProg(command="exit")
return
评论列表
文章目录