0
Google智能助理SDK示例要求用户在与Google智能助理交谈之前点击输入。如何在Google智能助理SDK上连接Raspberry Pi上的按钮
我想知道有没有办法将按钮连接到RPI GPIO引脚之一,并让它触发G.Assistant。
while True:
if wait_for_user_trigger:
click.pause(info='Press Enter to send a new request...')
continue_conversation = assistant.converse()
# wait for user trigger if there is no follow-up turn in
# the conversation.
wait_for_user_trigger = not continue_conversation
# If we only want one conversation, break.
if once and (not continue_conversation):
break
我想这将是我做改变连接GPIO库的区域。
我应该如何去实施它?我是Python和Raspberry Pi的新手。我确实有Java背景和自动化历史。
感谢劳尔。就是这样。也许对于Richards评论,你可以总结一下这些步骤。干杯。 – VBaarathi