cozmo_voice_commands.py 文件源码

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

项目:cozmo 作者: yp7y-stu 项目源码 文件源码
def run(sdk_conn):
    '''The run method runs once the Cozmo SDK is connected.'''
    robot = sdk_conn.wait_for_robot()
    try:
        print("Say something")
        r = sr.Recognizer()
        with sr.Microphone() as source:
            while 1:
                hear(source, r, robot)
                print("say something else")
                recognized = None

    except KeyboardInterrupt:
        print("")
        print("Exit requested by user")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号