computer.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:raspberrypi_AI-NO-GUI 作者: Comm4nd0 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号