helpme.py 文件源码

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

项目:raspberrypi_AI-NO-GUI 作者: Comm4nd0 项目源码 文件源码
def helpint():
    subprocess.call("runuser -l pi -c 'cvlc --play-and-exit /home/pi/computer/voice/help/intro.mp3'", shell=True)

    with sr.Microphone() as source:
        print("Waiting for initialisation")
        r.adjust_for_ambient_noise(source)
        audio = r.listen(source)
    helpreq = r.recognize_google(audio)
    response(helpreq)
    return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号